KVM: arm64: Move pkvm's special 32bit handling into a generic infrastructure
authorMarc Zyngier <maz@kernel.org>
Tue, 16 Nov 2021 12:39:35 +0000 (12:39 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 24 Nov 2021 13:30:50 +0000 (13:30 +0000)
commit7183b2b5ae6b8d77a37069566d77cf2a74060f7e
treef3c21674d9977b3e8da895e089872d25650e9d8e
parent83bb2c1a01d7127d5adc7d69d7aaa3f7072de2b4
KVM: arm64: Move pkvm's special 32bit handling into a generic infrastructure

Protected KVM is trying to turn AArch32 exceptions into an illegal
exception entry. Unfortunately, it does that in a way that is a bit
abrupt, and too early for PSTATE to be available.

Instead, move it to the fixup code, which is a more reasonable place
for it. This will also be useful for the NV code.

Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/vhe/switch.c