Commit 7c068e45 authored by Avi Kivity's avatar Avi Kivity

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: default avatarAvi Kivity <avi@redhat.com>
parent bdea48e3
...@@ -5002,7 +5002,7 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) ...@@ -5002,7 +5002,7 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu)
schedule(); schedule();
} }
vmx->emulation_required = 0; vmx->emulation_required = !guest_state_valid(vcpu);
out: out:
return ret; return ret;
} }
......
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