[dpdk-dev] [PATCH v4 0/2] vhost: add IOMMU support in async data path

Xuan Ding xuan.ding at intel.com
Mon Jul 5 10:19:26 CEST 2021


This patch series expands the capability of DMA devices to use IOMMU.
When application tells the library the DMA device is bound to vfio,
the IOMMU will be programmed for guest memory.

v4:
* Added the compatibility with IOVA_AS_PA.
* Revised the commit log that the IOMMU capability is added for DMA device.
* Changed single patch to patchset, added a new flag parsing in example.

v3:
* Fixed some typos.

v2:
* Fixed a format issue.
* Added the dma unmap logic when device is closed.

Xuan Ding (2):
  vhost: enable IOMMU for async vhost
  example/vhost: add dma vfio parsing

 doc/guides/prog_guide/vhost_lib.rst |  9 ++++++
 doc/guides/sample_app_ug/vhost.rst  |  7 +++++
 examples/vhost/main.c               | 16 +++++++++-
 lib/vhost/rte_vhost.h               |  1 +
 lib/vhost/socket.c                  |  9 ++++++
 lib/vhost/vhost.h                   |  1 +
 lib/vhost/vhost_user.c              | 46 ++++++++++++++++++++++++++++-
 7 files changed, 87 insertions(+), 2 deletions(-)

-- 
2.17.1



More information about the dev mailing list