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)
commit1fcf0512c9c870e78e1c9898ecb9458593403466
tree002fa2a03688453e491f2224c31a96c1b3a47be6
parent71d70c266c84c4e708bb36b20d0c0a29af42821c
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