]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: nv: Respect exception routing rules for SEAs
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:10 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:35:54 +0000 (11:35 -0700)
commit9aba641b9ec2a9f443a6c666c054c5e98ef550b5
tree6ca4c4e3d20f305b77f3d1d2ae9f3a6d2f9fa5f4
parentaae35f4ffbf20a09c5a5188ef5ddb3a4b5038df0
KVM: arm64: nv: Respect exception routing rules for SEAs

Synchronous external aborts are taken to EL2 if ELIsInHost() or
HCR_EL2.TEA=1. Rework the SEA injection plumbing to respect the imposed
routing of the guest hypervisor and opportunistically rephrase things to
make their function a bit more obvious.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250708172532.1699409-6-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/emulate-nested.c
arch/arm64/kvm/guest.c
arch/arm64/kvm/inject_fault.c
arch/arm64/kvm/mmio.c
arch/arm64/kvm/mmu.c