KVM: arm64: Inject AArch32 exceptions from HYP
authorMarc Zyngier <maz@kernel.org>
Wed, 14 Oct 2020 18:53:49 +0000 (19:53 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 10 Nov 2020 08:34:26 +0000 (08:34 +0000)
commit41613b519ce78bfe1328b8bd693944e80fc8b6c3
tree0b879a28b631f82840721f624226f27220858ddc
parentbb666c472ca25efb38d1163131cc01546b3a653a
KVM: arm64: Inject AArch32 exceptions from HYP

Similarly to what has been done for AArch64, move the AArch32 exception
injection to HYP.

In order to not use the regmap selection code at EL2, simplify the code
populating the target mode's LR register by useing the compatibility
aliases for LR_abt and LR_und.

We also introduce new accessors for SPSR_abt and SPSR_und, and
move VBAR/SCTLR to using the AArch64 accessors (the use of the AArch32
names was an ARMv7 leftover).

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/aarch32.c
arch/arm64/kvm/hyp/exception.c