|
@@ -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;
|