[PATCH 2/9] KVM: VMX - fix interrupt checking on light-exit

Gregory Haskins
2007-05-09T15:19:07Z

drivers/kvm/vmx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 19edb34..c701ead 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1855,9 +1855,6 @@ preempted:
vmcs_writel(HOST_GS_BASE, segment_base(gs_sel));
#endif

- if (!vcpu->mmio_read_completed)
- do_interrupt_requests(vcpu, kvm_run);
-
if (vcpu->guest_debug.enabled)
kvm_guest_debug_pre(vcpu);

@@ -1874,6 +1871,9 @@ preempted:
#endif

again:
+ if (!vcpu->mmio_read_completed)
+ do_interrupt_requests(vcpu, kvm_run);
+
asm (
/* Store host registers */
"pushf \n\t"