mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
intel_iommu: Check if the input address is canonical
Stage-1 translation must fail if the address to translate is not canonical. Signed-off-by: Clément Mathieu--Drif <clement.mathieu--drif@eviden.com> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Acked-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Yi Liu <yi.l.liu@intel.com> Message-Id: <20241212083757.605022-8-zhenzhong.duan@intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
eb9da9d263
commit
305e469b71
2 changed files with 24 additions and 0 deletions
|
@ -326,6 +326,7 @@ typedef enum VTDFaultReason {
|
|||
/* Non-zero reserved field in present first-stage paging entry */
|
||||
VTD_FR_FS_PAGING_ENTRY_RSVD = 0x72,
|
||||
VTD_FR_PASID_ENTRY_FSPTPTR_INV = 0x73, /* Invalid FSPTPTR in PASID entry */
|
||||
VTD_FR_FS_NON_CANONICAL = 0x80, /* SNG.1 : Address for FS not canonical.*/
|
||||
VTD_FR_FS_PAGING_ENTRY_US = 0x81, /* Privilege violation */
|
||||
VTD_FR_SM_WRITE = 0x85, /* No write permission */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue