]> www.infradead.org Git - users/dwmw2/qemu.git/commit
virtio-iommu: Revert transient enablement of IOMMU MR in bypass mode
authorEric Auger <eric.auger@redhat.com>
Mon, 1 Jul 2024 08:48:59 +0000 (10:48 +0200)
committerCédric Le Goater <clg@redhat.com>
Tue, 9 Jul 2024 09:50:37 +0000 (11:50 +0200)
commit956b30b9cf856470612e8d2c2c4985fb7e40a970
treef73109a0dd89df96faa8ed85c1f66c52edeadad7
parent2457343d05a168963b52ab6d5c2932dd29b93f46
virtio-iommu: Revert transient enablement of IOMMU MR in bypass mode

In 94df5b2180d6 ("virtio-iommu: Fix 64kB host page size VFIO device
assignment"), in case of bypass mode, we transiently enabled the
IOMMU MR to allow the set_page_size_mask() to be called and pass
information about the page size mask constraint of cold plugged
VFIO devices. Now we do not use the IOMMU MR callback anymore, we
can just get rid of this hack.

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/virtio/virtio-iommu.c