]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: arm64: Document KVM_PGTABLE_PROT_{UX,PX}
authorAlexandru Elisei <alexandru.elisei@arm.com>
Fri, 28 Nov 2025 10:09:43 +0000 (10:09 +0000)
committerOliver Upton <oupton@kernel.org>
Mon, 1 Dec 2025 08:44:03 +0000 (00:44 -0800)
Commit 2608563b466b ("KVM: arm64: Add support for FEAT_XNX stage-2
permissions") added the KVM_PGTABLE_PROX_{UX,PX} permissions to stage 2 and
to EL2 translation regimes, but left them undocumented. Let's fix that.

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Link: https://msgid.link/20251128100946.74210-2-alexandru.elisei@arm.com
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/include/asm/kvm_pgtable.h

index c72149a607d678a21a3f3892f1965d6136e8314a..611e6233176338c25fe822b5359e2d8adbd7906f 100644 (file)
@@ -240,7 +240,9 @@ enum kvm_pgtable_stage2_flags {
 
 /**
  * enum kvm_pgtable_prot - Page-table permissions and attributes.
- * @KVM_PGTABLE_PROT_X:                Execute permission.
+ * @KVM_PGTABLE_PROT_UX:       Unprivileged execute permission.
+ * @KVM_PGTABLE_PROT_PX:       Privileged execute permission.
+ * @KVM_PGTABLE_PROT_X:                Privileged and unprivileged execute permission.
  * @KVM_PGTABLE_PROT_W:                Write permission.
  * @KVM_PGTABLE_PROT_R:                Read permission.
  * @KVM_PGTABLE_PROT_DEVICE:   Device attributes.