aboutsummaryrefslogtreecommitdiff
path: root/hw/vfio/common.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2024-07-01 10:48:58 +0200
committerCédric Le Goater <clg@redhat.com>2024-07-09 11:50:37 +0200
commit2457343d05a168963b52ab6d5c2932dd29b93f46 (patch)
tree524267db84da4981140a4b7a57b9bd6e8bba368b /hw/vfio/common.c
parentd7c8c95fbca2e07d11b98fb1b191d7194d084c7e (diff)
downloadqemu-2457343d05a168963b52ab6d5c2932dd29b93f46.zip
qemu-2457343d05a168963b52ab6d5c2932dd29b93f46.tar.gz
qemu-2457343d05a168963b52ab6d5c2932dd29b93f46.tar.bz2
memory: remove IOMMU MR iommu_set_page_size_mask() callback
Everything is now in place to use the Host IOMMU Device callbacks to retrieve the page size mask usable with a given assigned device. This new method brings the advantage to pass the info much earlier to the virtual IOMMU and before the IOMMU MR gets enabled. So let's remove the call to memory_region_iommu_set_page_size_mask in vfio common.c and remove the single implementation of the IOMMU MR callback in the virtio-iommu.c Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/vfio/common.c')
-rw-r--r--hw/vfio/common.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 7cdb969..6d15b36 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -622,14 +622,6 @@ static void vfio_listener_region_add(MemoryListener *listener,
int128_get64(llend),
iommu_idx);
- ret = memory_region_iommu_set_page_size_mask(giommu->iommu_mr,
- bcontainer->pgsizes,
- &err);
- if (ret) {
- g_free(giommu);
- goto fail;
- }
-
ret = memory_region_register_iommu_notifier(section->mr, &giommu->n,
&err);
if (ret) {