Files
xemu/include/hw
Eric Auger 3966bca539 vfio-container-base: Introduce vfio_container_get_iova_ranges() helper
Introduce vfio_container_get_iova_ranges() to retrieve the usable
IOVA regions of the base container and use it in the Host IOMMU
device implementations of get_iova_ranges() callback.

We also fix a UAF bug as the list was shallow copied while
g_list_free_full() was used both on the single call site, in
virtio_iommu_set_iommu_device() but also in
vfio_container_instance_finalize(). Instead use g_list_copy_deep.

Fixes: cf2647a76e ("virtio-iommu: Compute host reserved regions")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Suggested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
2024-07-09 11:50:37 +02:00
..
…
…
2024-04-30 16:02:43 +01:00
…
…
2024-01-30 21:20:20 +03:00
2024-01-05 16:20:15 +01:00
2024-02-21 08:16:43 +03:00
2024-07-01 12:48:55 +01:00
…
…
2024-06-16 21:08:54 +02:00
…
…
…
2024-06-30 19:51:44 +03:00
…
…
…
…
…
2024-02-27 09:37:21 +01:00