]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Fix EL2 S1 XN handling for hVHE setups
authorMarc Zyngier <maz@kernel.org>
Wed, 10 Dec 2025 17:30:19 +0000 (17:30 +0000)
committerOliver Upton <oupton@kernel.org>
Thu, 8 Jan 2026 20:50:48 +0000 (12:50 -0800)
commit8d8e882c2b4b73a3f894c3cad74718b633e3d166
tree40dff9ffe695d3769848113c3ff6ac45705de190
parent5e8b511c39f35dcbf2e548a75d49782778c2df48
KVM: arm64: Fix EL2 S1 XN handling for hVHE setups

The current XN implementation is tied to the EL2 translation regime,
and fall flat on its face with the EL2&0 one that is used for hVHE,
as the permission bit for privileged execution is a different one.

Fixes: 6537565fd9b7f ("KVM: arm64: Adjust EL2 stage-1 leaf AP bits when ARM64_KVM_HVHE is set")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Fuad Tabba <tabba@google.com>
Link: https://msgid.link/20251210173024.561160-2-maz@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/include/asm/kvm_pgtable.h