Skip to content

Commit

Permalink
KVM: x86: In DM_LOWEST, only deliver interrupts to vcpus with enabled…
Browse files Browse the repository at this point in the history
… LAPIC's

Otherwise we might try to deliver a timer interrupt to a cpu that
can't possibly handle it.

Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
  • Loading branch information
Chris Lalancette authored and avikivity committed Aug 1, 2010
1 parent e7dca5c commit aefd18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/irq_comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int kvm_irq_delivery_to_apic(struct kvm *kvm, struct kvm_lapic *src,
if (r < 0)
r = 0;
r += kvm_apic_set_irq(vcpu, irq);
} else {
} else if (kvm_lapic_enabled(vcpu)) {
if (!lowest)
lowest = vcpu;
else if (kvm_apic_compare_prio(vcpu, lowest) < 0)
Expand Down

0 comments on commit aefd18f

Please sign in to comment.