]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_pci: modern driver
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Dec 2014 11:59:51 +0000 (13:59 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:53 +0000 (16:28 +1030)
commit677927ddde70b5d4cd958607c7a53df01e441cdf
tree002fa2a03688453e491f2224c31a96c1b3a47be6
parent676a780e2956a278a551ba7ea8f6c3aeddd3c8ee
virtio_pci: modern driver

Lightly tested against qemu.

One thing *not* implemented here is separate mappings
for descriptor/avail/used rings. That's nice to have,
will be done later after we have core support.

This also exposes the PCI layout to userspace, and
adds macros for PCI layout offsets:

QEMU wants it, so why not?  Trust, but verify.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/Makefile
drivers/virtio/virtio_pci_common.c
drivers/virtio/virtio_pci_common.h
drivers/virtio/virtio_pci_modern.c [new file with mode: 0644]
include/uapi/linux/virtio_pci.h