aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/hyp/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kvm/hyp/switch.c')
-rw-r--r--arch/arm64/kvm/hyp/switch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/kvm/hyp/switch.c b/arch/arm64/kvm/hyp/switch.c
index 951f3ebaff26..525c01f48867 100644
--- a/arch/arm64/kvm/hyp/switch.c
+++ b/arch/arm64/kvm/hyp/switch.c
@@ -304,7 +304,7 @@ int __hyp_text __kvm_vcpu_run(struct kvm_vcpu *vcpu)
304 __activate_vm(vcpu); 304 __activate_vm(vcpu);
305 305
306 __vgic_restore_state(vcpu); 306 __vgic_restore_state(vcpu);
307 __timer_restore_state(vcpu); 307 __timer_enable_traps(vcpu);
308 308
309 /* 309 /*
310 * We must restore the 32-bit state before the sysregs, thanks 310 * We must restore the 32-bit state before the sysregs, thanks
@@ -374,7 +374,7 @@ again:
374 374
375 __sysreg_save_guest_state(guest_ctxt); 375 __sysreg_save_guest_state(guest_ctxt);
376 __sysreg32_save_state(vcpu); 376 __sysreg32_save_state(vcpu);
377 __timer_save_state(vcpu); 377 __timer_disable_traps(vcpu);
378 __vgic_save_state(vcpu); 378 __vgic_save_state(vcpu);
379 379
380 __deactivate_traps(vcpu); 380 __deactivate_traps(vcpu);
@@ -442,7 +442,7 @@ void __hyp_text __noreturn __hyp_panic(void)
442 442
443 vcpu = (struct kvm_vcpu *)read_sysreg(tpidr_el2); 443 vcpu = (struct kvm_vcpu *)read_sysreg(tpidr_el2);
444 host_ctxt = kern_hyp_va(vcpu->arch.host_cpu_context); 444 host_ctxt = kern_hyp_va(vcpu->arch.host_cpu_context);
445 __timer_save_state(vcpu); 445 __timer_disable_traps(vcpu);
446 __deactivate_traps(vcpu); 446 __deactivate_traps(vcpu);
447 __deactivate_vm(vcpu); 447 __deactivate_vm(vcpu);
448 __sysreg_restore_host_state(host_ctxt); 448 __sysreg_restore_host_state(host_ctxt);