]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Honor UX/PX attributes for EL2 S1 mappings
authorMarc Zyngier <maz@kernel.org>
Wed, 10 Dec 2025 17:30:24 +0000 (17:30 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 15 Jan 2026 10:58:21 +0000 (10:58 +0000)
commit80cbfd7174f31010982f065e8ae73bf337992105
tree1726812723c46d248876817508797c09853e9188
parent9d2de51825598fc8e76f596c16368362753d8021
KVM: arm64: Honor UX/PX attributes for EL2 S1 mappings

Now that we potentially have two bits to deal with when setting
execution permissions, make sure we correctly handle them when both
when building the page tables and when reading back from them.

Reported-by: Alexandru Elisei <alexandru.elisei@arm.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20251210173024.561160-7-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/pgtable.c