]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Split S1 permission evaluation into direct and hierarchical parts
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:27 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:44:20 +0000 (02:44 +0000)
commit4967b87a9ff7cb19bd85dd985616e08d0f08b07b
tree13b7ec16848b13756a9cfec1e24015948e7d2a54
parent23e7a34c8397d1ecff430b3500ad5c8bdea10a5c
KVM: arm64: Split S1 permission evaluation into direct and hierarchical parts

The AArch64.S1DirectBasePermissions() pseudocode deals with both
direct and hierarchical S1 permission evaluation. While this is
probably convenient in the pseudocode, we would like a bit more
flexibility to slot things like indirect permissions.

To that effect, split the two permission check parts out of
handle_at_slow() and into their own functions. The permissions
are passed around as part of the walk_result structure.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241023145345.1613824-20-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/at.c