aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/virtio-ring.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-07-05 15:49:51 +0800
committerKevin O'Connor <kevin@koconnor.net>2017-07-07 10:56:12 -0400
commitdd9bba5b9c1d5175a2757f3fdc9d554b4c8eea3a (patch)
tree803c7325ee6367ee858c2a698433a38884c53621 /src/hw/virtio-ring.h
parentb3a9f27fb1f63e9b6bf5ca424d31e23bd5b4c2f0 (diff)
downloadseabios-dd9bba5b9c1d5175a2757f3fdc9d554b4c8eea3a.tar.gz
virtio: IOMMU support
Since we don't enable IOMMU at all, we can then simply enable the IOMMU support by claiming the support of VIRITO_F_IOMMU_PLATFORM. This fixes booting failure when iommu_platform is set from qemu cli. Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'src/hw/virtio-ring.h')
-rw-r--r--src/hw/virtio-ring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hw/virtio-ring.h b/src/hw/virtio-ring.h
index 7665fd54..8604a011 100644
--- a/src/hw/virtio-ring.h
+++ b/src/hw/virtio-ring.h
@@ -18,6 +18,7 @@
/* v1.0 compliant. */
#define VIRTIO_F_VERSION_1 32
+#define VIRTIO_F_IOMMU_PLATFORM 33
#define MAX_QUEUE_NUM (128)