diff options
author | Jason Wang | 2017-07-10 11:10:41 +0200 |
---|---|---|
committer | Michael Brown | 2017-07-10 12:10:45 +0200 |
commit | 6a258d8d5523c9b529ae2607d7f49e48eea8beeb (patch) | |
tree | b40055962001c19612590205cff119f767baa75b /src/drivers | |
parent | [smscusb] Add ability to read MAC address from OTP (diff) | |
download | ipxe-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/drivers')
-rw-r--r-- | src/drivers/net/virtio-net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/net/virtio-net.c b/src/drivers/net/virtio-net.c index 4151532e..fe79a92c 100644 --- a/src/drivers/net/virtio-net.c +++ b/src/drivers/net/virtio-net.c @@ -259,7 +259,8 @@ static int virtnet_open_modern ( struct net_device *netdev ) { ( 1ULL << VIRTIO_NET_F_MAC ) | ( 1ULL << VIRTIO_NET_F_MTU ) | ( 1ULL << VIRTIO_F_VERSION_1 ) | - ( 1ULL << VIRTIO_F_ANY_LAYOUT ) ) ); + ( 1ULL << VIRTIO_F_ANY_LAYOUT ) | + ( 1ULL << VIRTIO_F_IOMMU_PLATFORM ) ) ); vpm_add_status ( &virtnet->vdev, VIRTIO_CONFIG_S_FEATURES_OK ); status = vpm_get_status ( &virtnet->vdev ); |