]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Force trap of GMID_EL1 when the guest doesn't have MTE
authorMarc Zyngier <maz@kernel.org>
Thu, 8 Jan 2026 17:32:30 +0000 (17:32 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 11:58:57 +0000 (11:58 +0000)
commit70a5ce4efc0e1194718aad6f26332c99e6a119db
treeeead1e610767c9216115559016d18852c5c778ab
parentf07ef1bef67ca08799df262cc901971ac274783d
KVM: arm64: Force trap of GMID_EL1 when the guest doesn't have MTE

If our host has MTE, but the guest doesn't, make sure we set HCR_EL2.TID5
to force GMID_EL1 being trapped. Such trap will be handled by the
FEAT_IDST handling.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Reviewed-by: Yuan Yao <yaoyuan@linux.alibaba.com>
Link: https://patch.msgid.link/20260108173233.2911955-7-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c