]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57a60d466822475a0135f4faf2ebac047387389e
treef3c21674d9977b3e8da895e089872d25650e9d8e
parent1cdefdfd3d7e80d126455cf5f04d39826ee2391b
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