Eric Auger cf2647a76e virtio-iommu: Compute host reserved regions
Compute the host reserved regions in virtio_iommu_set_iommu_device().
The usable IOVA regions are retrieved from the HostIOMMUDevice.
The virtio_iommu_set_host_iova_ranges() helper turns usable regions
into complementary reserved regions while testing the inclusion
into existing ones. virtio_iommu_set_host_iova_ranges() reuse the
implementation of virtio_iommu_set_iova_ranges() which will be
removed in subsequent patches. rebuild_resv_regions() is just moved.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
2024-06-24 23:15:30 +02:00
..
2024-05-03 15:47:47 +02:00
2024-05-03 15:47:47 +02:00
2024-05-03 15:47:47 +02:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-05-03 15:47:47 +02:00
2024-04-25 09:43:29 -07:00
2024-05-03 15:47:48 +02:00
2024-05-06 10:19:56 -07:00
2024-06-16 21:08:54 +02:00
2024-06-03 16:20:42 +09:00
2024-06-16 21:08:54 +02:00
2024-05-10 15:45:15 +02:00