]> www.infradead.org Git - users/dwmw2/qemu.git/commit
memory: remove IOMMU MR iommu_set_page_size_mask() callback
authorEric Auger <eric.auger@redhat.com>
Mon, 1 Jul 2024 08:48:58 +0000 (10:48 +0200)
committerCédric Le Goater <clg@redhat.com>
Tue, 9 Jul 2024 09:50:37 +0000 (11:50 +0200)
commit2457343d05a168963b52ab6d5c2932dd29b93f46
tree524267db84da4981140a4b7a57b9bd6e8bba368b
parentd7c8c95fbca2e07d11b98fb1b191d7194d084c7e
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>
hw/vfio/common.c
hw/virtio/trace-events
hw/virtio/virtio-iommu.c
include/exec/memory.h
system/memory.c