Loading
vhost: enable `RTE_VHOST_USER_ASYNC_COPY` flag based on IOMMU
DPDK vhost-user library will try to register external VM memory when flag `RTE_VHOST_USER_ASYNC_COPY` is set and `vfio` module loaded, but SPDK always registers the external memory region to kernel vfio container when IOMMU is enabled, the same memory region will be registered to vfio twice for this case, here we only set this flag based on IOMMU, then DPDK will not register this memory region, and it can cover both vfio and uio bindings. Fix issue #3061. Change-Id: I4e71ee4b33ca8140a3f194d0e350809d5c6ca88b Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19783 Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@gmail.com> Community-CI: Mellanox Build Bot