]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Implement HW access flag management in stage-1 SW PTW
authorOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 19:01:54 +0000 (11:01 -0800)
committerOliver Upton <oupton@kernel.org>
Mon, 1 Dec 2025 08:44:02 +0000 (00:44 -0800)
commitbff8aa213dee742b09151a34494418050afed948
treeb2886a4aa128c23afff1e4a9cfeef2b07b588736
parent92c6443222ca4289191d797ac79176c560886998
KVM: arm64: Implement HW access flag management in stage-1 SW PTW

Atomically update the Access flag at stage-1 when the guest has
configured the MMU to do so. Make the implementation choice (and liberal
interpretation of speculation) that any access type updates the Access
flag, including AT and CMO instructions.

Restart the entire walk by returning to the exception-generating
instruction in the case of a failed Access flag update.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Tested-by: Marc Zyngier <maz@kernel.org>
Link: https://msgid.link/20251124190158.177318-13-oupton@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/include/asm/kvm_nested.h
arch/arm64/kvm/at.c