vfio/iommufd: Introduce a VFIOIOMMU iommufd QOM interface
commitce5f6d49f5845c3b9955cc377a5223c3f8d7ba1e
authorCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 06:58:23 +0000 (19 07:58 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 5 Jan 2024 20:25:20 +0000 (5 21:25 +0100)
tree52924862c24b30b50914396e4f55cf74b183fd99
parentf221f641a2fe69c2ca3857759551470664b0bec8
vfio/iommufd: Introduce a VFIOIOMMU iommufd QOM interface

As previously done for the sPAPR and legacy IOMMU backends, convert
the VFIOIOMMUOps struct to a QOM interface. The set of of operations
for this backend can be referenced with a literal typename instead of
a C struct.

Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Tested-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c
hw/vfio/iommufd.c
include/hw/vfio/vfio-common.h
include/hw/vfio/vfio-container-base.h