Skip to content

Commit

Permalink
KVM: VMX: Fix interrupt checking on lightweight exit
Browse files Browse the repository at this point in the history
With kernel-injected interrupts, we need to check for interrupts on
lightweight exits too.

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Gregory Haskins authored and Avi Kivity committed Jul 16, 2007
1 parent 2eeb2e9 commit ff1dc79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1992,13 +1992,13 @@ static int vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
int r;

preempted:
if (!vcpu->mmio_read_completed)
do_interrupt_requests(vcpu, kvm_run);

if (vcpu->guest_debug.enabled)
kvm_guest_debug_pre(vcpu);

again:
if (!vcpu->mmio_read_completed)
do_interrupt_requests(vcpu, kvm_run);

vmx_save_host_state(vcpu);
kvm_load_guest_fpu(vcpu);

Expand Down

0 comments on commit ff1dc79

Please sign in to comment.