]> git.proxmox.com Git - mirror_qemu.git/commit
vfio/common: Introduce vfio_container_add|del_section_window()
authorEric Auger <eric.auger@redhat.com>
Mon, 9 Oct 2023 09:09:07 +0000 (11:09 +0200)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (10:10 +0200)
commita33832b1948561bb2606371de0c5e2ef03921d93
tree8e2f92ae98781fbb69bdb1f729d41b1d942c1dae
parent77c212599d3851ebaaff435013f571f6870a00b1
vfio/common: Introduce vfio_container_add|del_section_window()

Introduce helper functions that isolate the code used for
VFIO_SPAPR_TCE_v2_IOMMU.

Those helpers hide implementation details beneath the container object
and make the vfio_listener_region_add/del() implementations more
readable. No code change intended.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c