summaryrefslogtreecommitdiff
path: root/drivers/virtio/virtio_pci_common.h
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2016-02-03 08:46:39 +0300
committerMichael S. Tsirkin <mst@redhat.com>2016-03-02 18:01:58 +0300
commit7a5589b240b405d55b2b395554082ec284f414bb (patch)
tree9f33193d968818ec232015ab60b191142bcb14ed /drivers/virtio/virtio_pci_common.h
parentb42111382f0e677e2e227c5c4894423cbdaed1f1 (diff)
downloadlinux-7a5589b240b405d55b2b395554082ec284f414bb.tar.xz
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.h6
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;