]> 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)
commit88d9f7ea6a20c9b80032e80dfff666535e768426
treef3c21674d9977b3e8da895e089872d25650e9d8e
parent92f56ea73176a9192db8bbacfe45b7decb76b998
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