]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel_iommu_accel: Stick to system MR for IOMMUFD backed host device when x-flts=on
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Tue, 6 Jan 2026 06:12:53 +0000 (01:12 -0500)
committerCédric Le Goater <clg@redhat.com>
Tue, 13 Jan 2026 07:29:58 +0000 (08:29 +0100)
commitf910f1f9b0a3dafbc10a84f2b322f7bfc8d4d6a3
tree223c90881ba2f204620b012c6f69d0b589d844a5
parent42fa8991b5e3501f07f43b8f40cd8eab306164a8
intel_iommu_accel: Stick to system MR for IOMMUFD backed host device when x-flts=on

When guest enables scalable mode and setup first stage page table, we don't
want to use IOMMU MR but rather continue using the system MR for IOMMUFD
backed host device.

Then default HWPT in VFIO contains GPA->HPA mappings which could be reused
as nesting parent HWPT to construct nested HWPT in vIOMMU.

Move vtd_as_key into intel_iommu_internal.h as it's also used by accel code.

Suggested-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260106061304.314546-12-zhenzhong.duan@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_accel.c
hw/i386/intel_iommu_accel.h
hw/i386/intel_iommu_internal.h