diff options
author | Marc Zyngier <maz@kernel.org> | 2021-11-16 15:39:35 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-11-24 16:30:50 +0300 |
commit | 7183b2b5ae6b8d77a37069566d77cf2a74060f7e (patch) | |
tree | f3c21674d9977b3e8da895e089872d25650e9d8e /arch/arm64/kvm/hyp/vhe/switch.c | |
parent | 83bb2c1a01d7127d5adc7d69d7aaa3f7072de2b4 (diff) | |
download | linux-7183b2b5ae6b8d77a37069566d77cf2a74060f7e.tar.xz |
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>
Diffstat (limited to 'arch/arm64/kvm/hyp/vhe/switch.c')
-rw-r--r-- | arch/arm64/kvm/hyp/vhe/switch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/vhe/switch.c b/arch/arm64/kvm/hyp/vhe/switch.c index 5a2cb5d9bc4b..fbb26b93c347 100644 --- a/arch/arm64/kvm/hyp/vhe/switch.c +++ b/arch/arm64/kvm/hyp/vhe/switch.c @@ -112,6 +112,10 @@ static const exit_handler_fn *kvm_get_exit_handler_array(struct kvm_vcpu *vcpu) return hyp_exit_handlers; } +static void early_exit_filter(struct kvm_vcpu *vcpu, u64 *exit_code) +{ +} + /* Switch to the guest for VHE systems running in EL2 */ static int __kvm_vcpu_run_vhe(struct kvm_vcpu *vcpu) { |