]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Simplify integration of adjust_nested_*_perms()
authorMarc Zyngier <maz@kernel.org>
Sun, 15 Mar 2026 14:58:44 +0000 (14:58 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:42 +0000 (11:29 +0000)
commitfb9888fdfada0b5ad977f08f7550432a08aacbb1
tree0206125f8e5b49e587e458992e26c9d1bba4be8c
parentadb70b3a8b31e9eb05f2ec3c76d85f9a7a8c8cbc
KVM: arm64: Simplify integration of adjust_nested_*_perms()

Instead of passing pointers to adjust_nested_*_perms(), allow
them to return a new set of permissions.

With some careful moving around so that the canonical permissions
are computed before the nested ones are applied, we end-up with
a bit less code, and something a bit more readable.

Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/mmu.c