From: Avi Kivity Date: Sun, 10 Jun 2012 15:09:27 +0000 (+0300) Subject: KVM: VMX: Continue emulating after batch exhausted X-Git-Tag: upstream/snapshot3+hdmi~6996^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c068e45587a83d4235dda55d35a7d305c58e0e5;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git KVM: VMX: Continue emulating after batch exhausted 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 --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6cdb404..2e51e7c 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -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; }