Skip to content

Commit

Permalink
KVM: VMX: Continue emulating after batch exhausted
Browse files Browse the repository at this point in the history
If we return early from an invalid guest state emulation loop, make
sure we return to it later if the guest state is still invalid.

Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Avi Kivity committed Jul 9, 2012
1 parent bdea48e commit 7c068e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5002,7 +5002,7 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu)
schedule();
}

vmx->emulation_required = 0;
vmx->emulation_required = !guest_state_valid(vcpu);
out:
return ret;
}
Expand Down

0 comments on commit 7c068e4

Please sign in to comment.