projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdea48e
)
KVM: VMX: Continue emulating after batch exhausted
author
Avi Kivity
<avi@redhat.com>
Sun, 10 Jun 2012 15:09:27 +0000
(18:09 +0300)
committer
Avi 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index 6cdb40457695ff2385817b010c0a8b2cfff4a1b5..2e51e7c6d2a86da5f3180a4171890ca7ac697dfd 100644
(file)
--- 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;
}