From: Eric Auger Date: Fri, 14 Jun 2024 09:52:57 +0000 (+0200) Subject: hw/vfio: Remove memory_region_iommu_set_iova_ranges() call X-Git-Tag: qemu-xen-4.20.0~100^2~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=44079a9839bc0a682db7c0ab6093fce79c73d261;p=qemu-xen.git 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 Reviewed-by: Zhenzhong Duan Reviewed-by: Michael S. Tsirkin --- diff --git a/hw/vfio/common.c b/hw/vfio/common.c index f20a7b5bba..9e4c0cc95f 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) {