]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Replace fault_is_perm with a helper
authorMarc Zyngier <maz@kernel.org>
Mon, 9 Mar 2026 09:59:38 +0000 (09:59 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:41 +0000 (11:29 +0000)
commitfe4b6f824f267739ef2c5f2f047c317eceb587c3
tree52354037cc048e705fddecb3ec44c72d576177c6
parentc6f4d84643498bc855e2f6719a3233ded0e2dc63
KVM: arm64: Replace fault_is_perm with a helper

Carrying a boolean to indicate that a given fault is a permission fault
is slightly odd, as this is a property of the fault itself, and we'd
better avoid duplicating state.

For this purpose, introduce a kvm_s2_fault_is_perm() predicate that
can take a fault descriptor as a parameter. fault_is_perm is therefore
dropped from kvm_s2_fault.

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