]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: VMX: Continue emulating after batch exhausted
authorAvi Kivity <avi@redhat.com>
Sun, 10 Jun 2012 15:09:27 +0000 (18:09 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jul 2012 11:19:03 +0000 (14:19 +0300)
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>
arch/x86/kvm/vmx.c

index 6cdb40457695ff2385817b010c0a8b2cfff4a1b5..2e51e7c6d2a86da5f3180a4171890ca7ac697dfd 100644 (file)
@@ -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;
 }