diff options
| author | Cédric Le Goater <clg@redhat.com> | 2024-06-17 08:34:03 +0200 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2024-06-24 23:15:31 +0200 |
| commit | 504d297e10fdfe1b1243274e334abb0074ee69f4 (patch) | |
| tree | 8945e18123d6830160957e1afc6b0ff01157c769 /hw/vfio/container-base.c | |
| parent | 9550fdfd29f52d548d99aed2b1a002308ad6175a (diff) | |
| download | focaccia-qemu-504d297e10fdfe1b1243274e334abb0074ee69f4.tar.gz focaccia-qemu-504d297e10fdfe1b1243274e334abb0074ee69f4.zip | |
vfio/container: Change VFIOContainerBase to use QOM
VFIOContainerBase was made a QOM interface because we believed that a QOM object would expose all the IOMMU backends to the QEMU machine and human interface. This only applies to user creatable devices or objects. Change the VFIOContainerBase nature from interface to object and make the necessary adjustments in the VFIO_IOMMU hierarchy. 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/container-base.c')
| -rw-r--r-- | hw/vfio/container-base.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/vfio/container-base.c b/hw/vfio/container-base.c index 280f0dd2db..98c15e174d 100644 --- a/hw/vfio/container-base.c +++ b/hw/vfio/container-base.c @@ -102,8 +102,10 @@ void vfio_container_destroy(VFIOContainerBase *bcontainer) static const TypeInfo types[] = { { .name = TYPE_VFIO_IOMMU, - .parent = TYPE_INTERFACE, + .parent = TYPE_OBJECT, + .instance_size = sizeof(VFIOContainerBase), .class_size = sizeof(VFIOIOMMUClass), + .abstract = true, }, }; |