vhost: enable IOMMU for async vhost
authorXuan Ding <xuan.ding@intel.com>
Mon, 11 Oct 2021 07:59:42 +0000 (07:59 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 21 Oct 2021 12:24:21 +0000 (14:24 +0200)
commit7c61fa08b716babcbb7d1375f6aa8b0ef644e9ae
tree523a31975a6b01c4992b355ba0856f7d437a7bca
parent56259f7fc0104ca73f776b76cfd056ccf0470e4c
vhost: enable IOMMU for async vhost

The use of IOMMU has many advantages, such as isolation and address
translation. This patch extends the capability of DMA engine to use
IOMMU if the DMA engine is bound to vfio.

When set memory table, the guest memory will be mapped
into the default container of DPDK.

Signed-off-by: Xuan Ding <xuan.ding@intel.com>
Tested-by: Yvonne Yang <yvonnex.yang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/vhost.h
lib/vhost/vhost_user.c