vfio/container: Introduce vfio_address_space_insert()
authorCédric Le Goater <clg@redhat.com>
Mon, 17 Jun 2024 06:33:57 +0000 (08:33 +0200)
committerCédric Le Goater <clg@redhat.com>
Mon, 24 Jun 2024 21:15:31 +0000 (23:15 +0200)
commitb7b79588ebb365e157ec2425a4fa472a314c3ea5
treef7d3da26e1b45d1a14fe93764a775ab073d90e24
parent723f702b89b9c86058a608db9dea3b5618ff284a
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>
hw/vfio/common.c
hw/vfio/container.c
hw/vfio/iommufd.c
include/hw/vfio/vfio-common.h