aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2024-06-14 11:52:57 +0200
committerCédric Le Goater <clg@redhat.com>2024-06-24 23:15:31 +0200
commit44079a9839bc0a682db7c0ab6093fce79c73d261 (patch)
treec55f6ac18f3b800610e0132ecdca28ebeecc3a41
parent3ba100b41946b10efc12c2493997f7074081707f (diff)
downloadqemu-44079a9839bc0a682db7c0ab6093fce79c73d261.zip
qemu-44079a9839bc0a682db7c0ab6093fce79c73d261.tar.gz
qemu-44079a9839bc0a682db7c0ab6093fce79c73d261.tar.bz2
hw/vfio: Remove memory_region_iommu_set_iova_ranges() call
As we have just removed the only implementation of iommu_set_iova_ranges IOMMU MR callback in the virtio-iommu, let's remove the call to the memory wrapper. Usable IOVA ranges are now conveyed through the PCIIOMMUOps in VFIO-PCI. 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>
-rw-r--r--hw/vfio/common.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index f20a7b5..9e4c0cc 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -630,16 +630,6 @@ static void vfio_listener_region_add(MemoryListener *listener,
goto fail;
}
- if (bcontainer->iova_ranges) {
- ret = memory_region_iommu_set_iova_ranges(giommu->iommu_mr,
- bcontainer->iova_ranges,
- &err);
- if (ret) {
- g_free(giommu);
- goto fail;
- }
- }
-
ret = memory_region_register_iommu_notifier(section->mr, &giommu->n,
&err);
if (ret) {