]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: at: Use correct HA bit in TCR_EL2 when regime is EL2
authorAlexandru Elisei <alexandru.elisei@arm.com>
Fri, 28 Nov 2025 10:09:44 +0000 (10:09 +0000)
committerOliver Upton <oupton@kernel.org>
Mon, 1 Dec 2025 08:44:03 +0000 (00:44 -0800)
commite88d60c0aa0abbaade177b84f54a868c67231cd7
treee62e5c0893e9df44d92a290c2327ba50e1346dac
parent93e8d997812b315bbec946e874171a8b7d785eaf
KVM: arm64: at: Use correct HA bit in TCR_EL2 when regime is EL2

According to ARM DDI 0487L.b, the HA bit in TCR_EL2 when the translation
regime is EL2 (or !ELIsInHost(EL2)) is bit 21, not 39.

Fixes: c59ca4b5b0c3 ("KVM: arm64: Implement HW access flag management in stage-1 SW PTW")
Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Link: https://msgid.link/20251128100946.74210-3-alexandru.elisei@arm.com
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kvm/at.c