mbox series

[v4,0/2] vhost: add IOMMU support in async data path

Message ID 20210705081928.98546-1-xuan.ding@intel.com (mailing list archive)
Headers show
Series vhost: add IOMMU support in async data path | expand


Ding, Xuan July 5, 2021, 8:19 a.m. UTC
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.

* 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.

* Fixed some typos.

* 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(-)