Commit aefd18f01ee848448d834c80e601ccff61515811

Authored by Chris Lalancette
Committed by Avi Kivity
1 parent e7dca5c0eb

KVM: x86: In DM_LOWEST, only deliver interrupts to vcpus with enabled 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 <clalance@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -100,7 +100,7 @@
100 100 if (r < 0)
101 101 r = 0;
102 102 r += kvm_apic_set_irq(vcpu, irq);
103   - } else {
  103 + } else if (kvm_lapic_enabled(vcpu)) {
104 104 if (!lowest)
105 105 lowest = vcpu;
106 106 else if (kvm_apic_compare_prio(vcpu, lowest) < 0)