aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio/common.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2024-06-17 08:34:06 +0200
committerCédric Le Goater <clg@redhat.com>2024-06-24 23:15:31 +0200
commit41d698b8d63b719c5b32bd056109be272f6dd740 (patch)
treeaa4725ee5cc779d087897b927fb00ff20e5cd82b /hw/vfio/common.c
parent2137d2fd1779df61ae011186b0f3a8ecb9ca0a69 (diff)
downloadqemu-41d698b8d63b719c5b32bd056109be272f6dd740.zip
qemu-41d698b8d63b719c5b32bd056109be272f6dd740.tar.gz
qemu-41d698b8d63b719c5b32bd056109be272f6dd740.tar.bz2
vfio/container: Remove VFIOContainerBase::ops
Instead, use VFIO_IOMMU_GET_CLASS() to get the class pointer. Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/common.c')
-rw-r--r--hw/vfio/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 1686a0b..7cdb969 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -1573,5 +1573,5 @@ void vfio_detach_device(VFIODevice *vbasedev)
return;
}
object_unref(vbasedev->hiod);
- vbasedev->bcontainer->ops->detach_device(vbasedev);
+ VFIO_IOMMU_GET_CLASS(vbasedev->bcontainer)->detach_device(vbasedev);
}