vfio/container: Switch to QOM
commit938026053f43031319d5e2159dcf4f993519afef
authorCédric Le Goater <clg@redhat.com>
Mon, 17 Jun 2024 06:34:04 +0000 (17 08:34 +0200)
committerCédric Le Goater <clg@redhat.com>
Mon, 24 Jun 2024 21:15:31 +0000 (24 23:15 +0200)
tree8a4a8e0d7b02475305e8d923153f01dce133870c
parent504d297e10fdfe1b1243274e334abb0074ee69f4
vfio/container: Switch to QOM

Instead of allocating the container struct, create a QOM object of the
appropriate type.

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>
hw/vfio/container.c
hw/vfio/iommufd.c