]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Make fault_ipa immutable
authorMarc Zyngier <maz@kernel.org>
Sun, 8 Mar 2026 12:18:29 +0000 (12:18 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:41 +0000 (11:29 +0000)
commitf583a53c2b8a4bd77f090bb76512eb87bc80f2c4
tree4fde70720207a22272a98261fea03f787ae086ad
parent5729560e2c3cb67a22a1d72688e0bb8e96798313
KVM: arm64: Make fault_ipa immutable

Updating fault_ipa is conceptually annoying, as it changes something
that is a property of the fault itself.

Stop doing so and instead use fault->gfn as the sole piece of state
that can be used to represent the faulting IPA.

At the same time, introduce get_canonical_gfn() for the couple of case
we're we are concerned with the memslot-related IPA and not the faulting
one.

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