From 69c90e98f483682d283444d5e50a7a892a82bd8e Mon Sep 17 00:00:00 2001 From: Maxime Coquelin Date: Thu, 5 Oct 2017 10:36:27 +0200 Subject: [PATCH] vhost: enable IOMMU support Signed-off-by: Maxime Coquelin Acked-by: Yuanhan Liu --- doc/guides/rel_notes/release_17_11.rst | 5 +++++ lib/librte_vhost/vhost.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/guides/rel_notes/release_17_11.rst b/doc/guides/rel_notes/release_17_11.rst index 6a75ae00a1..ae2c1ecefa 100644 --- a/doc/guides/rel_notes/release_17_11.rst +++ b/doc/guides/rel_notes/release_17_11.rst @@ -64,6 +64,11 @@ New Features * Support for Flow API * Support for Tx and Rx descriptor status functions +* **Added IOMMU support to libvhost-user** + + Implemented device IOTLB in Vhost-user backend, and enabled Virtio's IOMMU + feature. + * **Added Membership library (rte_member).** Added membership library. It provides an API for DPDK applications to insert a diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index b633abafa1..01b17ca72c 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -211,7 +211,8 @@ struct vhost_msg { (1ULL << VIRTIO_NET_F_GUEST_TSO4) | \ (1ULL << VIRTIO_NET_F_GUEST_TSO6) | \ (1ULL << VIRTIO_RING_F_INDIRECT_DESC) | \ - (1ULL << VIRTIO_NET_F_MTU)) + (1ULL << VIRTIO_NET_F_MTU) | \ + (1ULL << VIRTIO_F_IOMMU_PLATFORM)) struct guest_page { -- 2.20.1