]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: Move VFIOAddressSpace helpers into container-base.c
authorCédric Le Goater <clg@redhat.com>
Wed, 26 Mar 2025 07:50:59 +0000 (08:50 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 25 Apr 2025 07:01:37 +0000 (09:01 +0200)
commitd158ed092332d8c79193921112ea5e7b5e62cd6d
tree21ca75691a6b95727b776d40584ce210df2f2f7e
parent0778f9b3bef0438530e1dd0d277571405637d880
vfio: Move VFIOAddressSpace helpers into container-base.c

VFIOAddressSpace is a common object used by VFIOContainerBase which is
declared in "hw/vfio/vfio-container-base.h". Move the VFIOAddressSpace
related services into "container-base.c".

While at it, rename :

  vfio_get_address_space -> vfio_address_space_get
  vfio_put_address_space -> vfio_address_space_put

to better reflect the namespace these routines belong to.

Reviewed-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-15-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/ppc/spapr_pci_vfio.c
hw/vfio/common.c
hw/vfio/container-base.c
hw/vfio/container.c
hw/vfio/iommufd.c
include/hw/vfio/vfio-common.h
include/hw/vfio/vfio-container-base.h