diff options
| author | Lorenzo Stoakes (ARM) <ljs@kernel.org> | 2026-09-23 16:15:46 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-09-24 23:28:13 +0100 |
| commit | 18b94675b1fb22b5ce9b607f9de818d916b3da16 (patch) | |
| tree | 4adadbc7b00d0ebd932819ecca68057b54728fad /tools/perf/scripts/python/stackcollapse.py | |
| parent | eb2eb48c8d72b19a7163cfc9e4b416e60f5b9e2d (diff) | |
KVM: arm64: Use ESR helpers in guest abort handling
Convert kvm_vcpu_* ESR wrappers in kvm_emulate.h and the stage-2 abort
handling logic in mmu.c to use the newly introduced ESR helpers.
kvm_is_write_fault() is split in two, with esr_abt_is_write_fault()
handling the esr parts of the operation and kvm_is_write_fault() wrapping
it.
Introduce/modify kvm_s2_fault_is_{perm,exec,write}(),
kvm_s2_perm_fault_granule() so the abort path reads the ESR from a single
place.
This is to allow a later change to permit stage 2 pre-faulting via a
synthetic ESR value.
Remove now-unused kvm_vcpu_dabt_is_cm(), kvm_vcpu_trap_is_exec_fault() and
kvm_vcpu_trap_get_perm_fault_granule().
No functional change intended.
Reviewed-by: Oliver Upton <oupton@kernel.org>
Signed-off-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20260923-kvm-arm-prefault-v4-3-d4b0b4dfa8c3@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
