diff options
author | Eric Auger <eric.auger@redhat.com> | 2024-06-14 11:52:58 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-06-24 23:15:31 +0200 |
commit | 71386c6efd7d57cc549b1c3caff889e7506c54a9 (patch) | |
tree | 6e6e65eac527e92ed34c21c41cb179c9dd3a65d7 /system | |
parent | 44079a9839bc0a682db7c0ab6093fce79c73d261 (diff) | |
download | qemu-71386c6efd7d57cc549b1c3caff889e7506c54a9.zip qemu-71386c6efd7d57cc549b1c3caff889e7506c54a9.tar.gz qemu-71386c6efd7d57cc549b1c3caff889e7506c54a9.tar.bz2 |
memory: Remove IOMMU MR iommu_set_iova_range API
Since the host IOVA ranges are now passed through the
PCIIOMMUOps set_host_resv_regions and we have removed
the only implementation of iommu_set_iova_range() in
the virtio-iommu and the only call site in vfio/common,
let's retire the IOMMU MR API and its memory wrapper.
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>
Diffstat (limited to 'system')
-rw-r--r-- | system/memory.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/system/memory.c b/system/memory.c index 47c600d..2d69521 100644 --- a/system/memory.c +++ b/system/memory.c @@ -1914,19 +1914,6 @@ int memory_region_iommu_set_page_size_mask(IOMMUMemoryRegion *iommu_mr, return ret; } -int memory_region_iommu_set_iova_ranges(IOMMUMemoryRegion *iommu_mr, - GList *iova_ranges, - Error **errp) -{ - IOMMUMemoryRegionClass *imrc = IOMMU_MEMORY_REGION_GET_CLASS(iommu_mr); - int ret = 0; - - if (imrc->iommu_set_iova_ranges) { - ret = imrc->iommu_set_iova_ranges(iommu_mr, iova_ranges, errp); - } - return ret; -} - int memory_region_register_iommu_notifier(MemoryRegion *mr, IOMMUNotifier *n, Error **errp) { |