vfio/iommufd: Implement the iommufd backend
commit5ee3dc7af7859e7b8aa34c10c21778101c15e812
authorYi Liu <yi.l.liu@intel.com>
Tue, 21 Nov 2023 08:44:03 +0000 (21 16:44 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 18:03:38 +0000 (19 19:03 +0100)
treeaec5bf93cff00ca176ccb23ec8d0e6224eeb9480
parent1eae5b7bd3ddd03b5591e9122b011c6520064a5a
vfio/iommufd: Implement the iommufd backend

The iommufd backend is implemented based on the new /dev/iommu user API.
This backend obviously depends on CONFIG_IOMMUFD.

So far, the iommufd backend doesn't support dirty page sync yet.

Co-authored-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c
hw/vfio/iommufd.c [new file with mode: 0644]
hw/vfio/meson.build
hw/vfio/trace-events
include/hw/vfio/vfio-common.h