diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-02-03 06:46:39 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-03-02 16:01:58 +0100 |
commit | 7a5589b240b405d55b2b395554082ec284f414bb (patch) | |
tree | 9f33193d968818ec232015ab60b191142bcb14ed /drivers/virtio/virtio_pci_common.h | |
parent | virtio_mmio: Use the DMA API if enabled (diff) | |
download | linux-7a5589b240b405d55b2b395554082ec284f414bb.tar.xz linux-7a5589b240b405d55b2b395554082ec284f414bb.zip |
virtio_pci: Use the DMA API if enabled
This switches to vring_create_virtqueue, simplifying the driver and
adding DMA API support.
This fixes virtio-pci on platforms and busses that have IOMMUs. This
will break the experimental QEMU Q35 IOMMU support until QEMU is
fixed. In exchange, it fixes physical virtio hardware as well as
virtio-pci running under Xen.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_pci_common.h')
-rw-r--r-- | drivers/virtio/virtio_pci_common.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/virtio/virtio_pci_common.h b/drivers/virtio/virtio_pci_common.h index 2cc252270b2d..28263200ed42 100644 --- a/drivers/virtio/virtio_pci_common.h +++ b/drivers/virtio/virtio_pci_common.h @@ -35,12 +35,6 @@ struct virtio_pci_vq_info { /* the actual virtqueue */ struct virtqueue *vq; - /* the number of entries in the queue */ - int num; - - /* the virtual address of the ring queue */ - void *queue; - /* the list node for the virtqueues list */ struct list_head node; |