KVM: arm64: Inject AArch64 exceptions from HYP
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Oct 2020 18:52:29 +0000 (19:52 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 10 Nov 2020 08:34:26 +0000 (08:34 +0000)
commitbb666c472ca25efb38d1163131cc01546b3a653a
tree3448ad034ca03d86260393eafbddd3735b06e886
parente650b64f1a56cbc700f0a2d2ab8d23155757e2f3
KVM: arm64: Inject AArch64 exceptions from HYP

Move the AArch64 exception injection code from EL1 to HYP, leaving
only the ESR_EL1 updates to EL1. In order to come with the differences
between VHE and nVHE, two set of system register accessors are provided.

SPSR, ELR, PC and PSTATE are now completely handled in the hypervisor.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/hyp/exception.c
arch/arm64/kvm/inject_fault.c