intel_iommu: Check if the input address is canonical
authorClément Mathieu--Drif <clement.mathieu--drif@eviden.com>
Thu, 12 Dec 2024 08:37:44 +0000 (16:37 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 15 Jan 2025 18:06:14 +0000 (13:06 -0500)
commit305e469b7188e5f1a896c40853d84fa158ee6ba4
tree31dead0e48990d5dd7e0c4a2599ffd759f551b01
parenteb9da9d2632839c386ecbfc50f78032c9f3a75a4
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>
hw/i386/intel_iommu.c
hw/i386/intel_iommu_internal.h