Skip to content

Commit

Permalink
KVM: Fix coalesced interrupt reporting in IOAPIC
Browse files Browse the repository at this point in the history
This bug was introduced by b4a2f5e.

Cc: stable@kernel.org
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Gleb Natapov authored and avikivity committed Sep 10, 2009
1 parent a20316d commit 65a8221
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virt/kvm/ioapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ int kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level)
if ((edge && old_irr != ioapic->irr) ||
(!edge && !entry.fields.remote_irr))
ret = ioapic_service(ioapic, irq);
else
ret = 0; /* report coalesced interrupt */
}
trace_kvm_ioapic_set_irq(entry.bits, irq, ret == 0);
}
Expand Down

0 comments on commit 65a8221

Please sign in to comment.