Hi All There is the RFC to support the IOMMUFD in vdpa device any comments are welcome Thanks Cindy
Cindy Lu (7): vhost: introduce new UAPI to support IOMMUFD qapi: support iommufd in vdpa virtio : add a ptr for vdpa_iommufd in VirtIODevice net/vhost-vdpa: Add the check for iommufd vhost-vdpa: Add the iommufd support in the map/unmap function vhost-vdpa: init iommufd function in vhost_vdpa start vhost-vdpa-iommufd: Add iommufd support for vdpa hw/virtio/meson.build | 2 +- hw/virtio/vhost-vdpa-iommufd.c | 240 +++++++++++++++++++++++++++++++++ hw/virtio/vhost-vdpa.c | 74 +++++++++- include/hw/virtio/vhost-vdpa.h | 47 +++++++ include/hw/virtio/virtio.h | 5 + linux-headers/linux/vhost.h | 72 ++++++++++ net/vhost-vdpa.c | 31 +++-- qapi/net.json | 1 + 8 files changed, 451 insertions(+), 21 deletions(-) create mode 100644 hw/virtio/vhost-vdpa-iommufd.c -- 2.34.3