mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
2137d2fd17
commit
41d698b8d6
6 changed files with 38 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue