]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel_iommu: Make PASID-cache and PIOTLB type invalid in legacy mode
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Wed, 14 Aug 2024 07:13:20 +0000 (15:13 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Sep 2024 13:46:14 +0000 (09:46 -0400)
commit3b52cea829d873706ff86913ae99b4bd621c20e6
treebb533d582f50f9007a6c8e05baeecfc53478101e
parent663168943d3db6d9b51d3dfa0998848a6e6eda71
intel_iommu: Make PASID-cache and PIOTLB type invalid in legacy mode

In vtd_process_inv_desc(), VTD_INV_DESC_PC and VTD_INV_DESC_PIOTLB are
bypassed without scalable mode check. These two types are not valid
in legacy mode and we should report error.

Fixes: 4a4f219e8a10 ("intel_iommu: add scalable-mode option to make scalable mode work")
Suggested-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Clément Mathieu--Drif<clement.mathieu--drif@eviden.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Message-Id: <20240814071321.2621384-3-zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c