]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit589188663d7c9ceba0c0494cd427c7263a93bfb9
tree3448ad034ca03d86260393eafbddd3735b06e886
parentede71d11ae69414c8322f66ebc711c37bd64db65
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