From fc7a2de55c6ba0088d219a12f9825db54112e1a4 Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Thu, 3 Sep 2009 12:10:34 +0300 Subject: KVM: Fix coalesced interrupt reporting in IOAPIC commit 65a82211636f156a276cac3f8665605ae18f371f upstream. This bug was introduced by b4a2f5e723e4f7df467. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity Signed-off-by: Greg Kroah-Hartman --- virt/kvm/ioapic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 1150c6d5c7b8..5f3980525191 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -188,6 +188,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 */ } } return ret; -- cgit v1.2.3