]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Move fault context to const structure
authorMarc Zyngier <maz@kernel.org>
Sun, 8 Mar 2026 15:03:49 +0000 (15:03 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Mar 2026 11:29:41 +0000 (11:29 +0000)
commitc6f4d84643498bc855e2f6719a3233ded0e2dc63
tree15e599c5300af2fe9252ffceb894e7baefc820b2
parentf583a53c2b8a4bd77f090bb76512eb87bc80f2c4
KVM: arm64: Move fault context to const structure

In order to make it clearer what gets updated or not during fault
handling, move a set of information that losely represents the
fault context.

This gets populated early, from handle_mem_abort(), and gets passed
along as a const pointer. user_mem_abort()'s signature is majorly
improved in doing so, and kvm_s2_fault loses a bunch of fields.

gmem_abort() will get a similar treatment down the line.

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