diff options
| author | Cédric Le Goater <clg@redhat.com> | 2024-06-17 08:33:57 +0200 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2024-06-24 23:15:31 +0200 |
| commit | b7b79588ebb365e157ec2425a4fa472a314c3ea5 (patch) | |
| tree | f7d3da26e1b45d1a14fe93764a775ab073d90e24 /hw/vfio/iommufd.c | |
| parent | 723f702b89b9c86058a608db9dea3b5618ff284a (diff) | |
| download | focaccia-qemu-b7b79588ebb365e157ec2425a4fa472a314c3ea5.tar.gz focaccia-qemu-b7b79588ebb365e157ec2425a4fa472a314c3ea5.zip | |
vfio/container: Introduce vfio_address_space_insert()
It prepares ground for a future change initializing the 'space' pointer of VFIOContainerBase. The goal is to replace vfio_container_init() by an .instance_init() handler when VFIOContainerBase is QOMified. 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/iommufd.c')
| -rw-r--r-- | hw/vfio/iommufd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/iommufd.c b/hw/vfio/iommufd.c index e502081c2a..9f8f33e383 100644 --- a/hw/vfio/iommufd.c +++ b/hw/vfio/iommufd.c @@ -358,7 +358,7 @@ static bool iommufd_cdev_attach(const char *name, VFIODevice *vbasedev, bcontainer = &container->bcontainer; vfio_container_init(bcontainer, space, iommufd_vioc); - QLIST_INSERT_HEAD(&space->containers, bcontainer, next); + vfio_address_space_insert(space, bcontainer); if (!iommufd_cdev_attach_container(vbasedev, container, errp)) { goto err_attach_container; |