diff options
author | Cédric Le Goater <clg@redhat.com> | 2023-12-19 07:58:23 +0100 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-01-05 21:25:20 +0100 |
commit | ce5f6d49f5845c3b9955cc377a5223c3f8d7ba1e (patch) | |
tree | 52924862c24b30b50914396e4f55cf74b183fd99 /hw/vfio/common.c | |
parent | f221f641a2fe69c2ca3857759551470664b0bec8 (diff) | |
download | qemu-ce5f6d49f5845c3b9955cc377a5223c3f8d7ba1e.zip qemu-ce5f6d49f5845c3b9955cc377a5223c3f8d7ba1e.tar.gz qemu-ce5f6d49f5845c3b9955cc377a5223c3f8d7ba1e.tar.bz2 |
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>
Diffstat (limited to 'hw/vfio/common.c')
-rw-r--r-- | hw/vfio/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 2329d0e..89ff1c7 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -1508,7 +1508,7 @@ int vfio_attach_device(char *name, VFIODevice *vbasedev, #ifdef CONFIG_IOMMUFD if (vbasedev->iommufd) { - ops = &vfio_iommufd_ops; + ops = VFIO_IOMMU_CLASS(object_class_by_name(TYPE_VFIO_IOMMU_IOMMUFD)); } #endif |