summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJason Wang2017-07-10 11:10:41 +0200
committerMichael Brown2017-07-10 12:10:45 +0200
commit6a258d8d5523c9b529ae2607d7f49e48eea8beeb (patch)
treeb40055962001c19612590205cff119f767baa75b /src/include
parent[smscusb] Add ability to read MAC address from OTP (diff)
downloadipxe-6a258d8d5523c9b529ae2607d7f49e48eea8beeb.tar.gz
ipxe-6a258d8d5523c9b529ae2607d7f49e48eea8beeb.tar.xz
ipxe-6a258d8d5523c9b529ae2607d7f49e48eea8beeb.zip
[virtio] Support VIRTIO_NET_F_IOMMU_PLATFORM
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. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/virtio-ring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/virtio-ring.h b/src/include/ipxe/virtio-ring.h
index e608e624..852769f2 100644
--- a/src/include/ipxe/virtio-ring.h
+++ b/src/include/ipxe/virtio-ring.h
@@ -20,6 +20,7 @@
#define VIRTIO_F_ANY_LAYOUT 27
/* v1.0 compliant. */
#define VIRTIO_F_VERSION_1 32
+#define VIRTIO_F_IOMMU_PLATFORM 33
#define MAX_QUEUE_NUM (256)