diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2013-04-28 08:00:41 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-05-14 05:09:02 -0400 |
commit | f1ed0450a5fac7067590317cbf027f566b6ccbca (patch) | |
tree | 42002bc4ce144baf0f57882b8b042c7fd34c87a0 /virt | |
parent | e2858b4ab1f8d7ce36ae3cd96ba650664af0db5e (diff) |
KVM: x86: Remove support for reporting coalesced APIC IRQs
Since the arrival of posted interrupt support we can no longer guarantee
that coalesced IRQs are always reported to the IRQ source. Moreover,
accumulated APIC timer events could cause a busy loop when a VCPU should
rather be halted. The consensus is to remove coalesced tracking from the
LAPIC.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/irq_comm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index e2e6b4473a96..ef1817b61cf4 100644 --- a/virt/kvm/irq_comm.c +++ b/virt/kvm/irq_comm.c | |||
@@ -91,7 +91,8 @@ int kvm_irq_delivery_to_apic(struct kvm *kvm, struct kvm_lapic *src, | |||
91 | if (!kvm_is_dm_lowest_prio(irq)) { | 91 | if (!kvm_is_dm_lowest_prio(irq)) { |
92 | if (r < 0) | 92 | if (r < 0) |
93 | r = 0; | 93 | r = 0; |
94 | r += kvm_apic_set_irq(vcpu, irq, dest_map); | 94 | kvm_apic_set_irq(vcpu, irq, dest_map); |
95 | r++; | ||
95 | } else if (kvm_lapic_enabled(vcpu)) { | 96 | } else if (kvm_lapic_enabled(vcpu)) { |
96 | if (!lowest) | 97 | if (!lowest) |
97 | lowest = vcpu; | 98 | lowest = vcpu; |
@@ -100,8 +101,10 @@ int kvm_irq_delivery_to_apic(struct kvm *kvm, struct kvm_lapic *src, | |||
100 | } | 101 | } |
101 | } | 102 | } |
102 | 103 | ||
103 | if (lowest) | 104 | if (lowest) { |
104 | r = kvm_apic_set_irq(lowest, irq, dest_map); | 105 | kvm_apic_set_irq(lowest, irq, dest_map); |
106 | r = 1; | ||
107 | } | ||
105 | 108 | ||
106 | return r; | 109 | return r; |
107 | } | 110 | } |