KVM: arm64: nv: Ensure Address size faults affect correct ESR
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:21 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:36:35 +0000 (11:36 -0700)
commit178ec0ae35f8a2181a60a2e7c31d8671cbb56f3a
treee97df7811f6084f28e450985dbfdbd52790b188a
parent720ef4611c46724a42aea0773248735e4fac509f
KVM: arm64: nv: Ensure Address size faults affect correct ESR

For historical reasons, Address size faults are first injected into the
guest as an SEA and ESR_EL1 is subsequently modified to reflect the
correct FSC. Of course, when dealing with a vEL2 this should poke
ESR_EL2.

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