Commit 38c0b192 authored by Paolo Bonzini's avatar Paolo Bonzini

KVM: SVM: leave halted state on vmexit

Similar to VMX, we need to leave the halted state when performing a vmexit.
Failure to do so will cause a hang after vmexit.
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent f74f9414
...@@ -473,6 +473,9 @@ int nested_svm_vmexit(struct vcpu_svm *svm) ...@@ -473,6 +473,9 @@ int nested_svm_vmexit(struct vcpu_svm *svm)
leave_guest_mode(&svm->vcpu); leave_guest_mode(&svm->vcpu);
svm->nested.vmcb = 0; svm->nested.vmcb = 0;
/* in case we halted in L2 */
svm->vcpu.arch.mp_state = KVM_MP_STATE_RUNNABLE;
/* Give the current vmcb to the guest */ /* Give the current vmcb to the guest */
disable_gif(svm); disable_gif(svm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment