diff options
author | Chris Lalancette <clalance@redhat.com> | 2010-06-16 17:11:13 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-07-25 11:57:53 +0300 |
commit | 252d11feb343c7346ca68a48c3692292b24a3271 (patch) | |
tree | 86642432d7b66ed1b85551b5f5a0dc5ec2a6735b /virt | |
parent | 7ceac3be364e51ae8b79d6e38dc2c8dd70a375ab (diff) |
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>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/irq_comm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index 52f412f16be3..06cf61e729d2 100644 --- a/virt/kvm/irq_comm.c +++ b/virt/kvm/irq_comm.c @@ -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) |