]> Git Repo - linux.git/commitdiff
KVM: Fix coalesced interrupt reporting in IOAPIC
authorGleb Natapov <[email protected]>
Thu, 3 Sep 2009 09:10:34 +0000 (12:10 +0300)
committerAvi Kivity <[email protected]>
Thu, 10 Sep 2009 07:46:59 +0000 (10:46 +0300)
This bug was introduced by b4a2f5e723e4f7df467.

Cc: [email protected]
Signed-off-by: Gleb Natapov <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
virt/kvm/ioapic.c

index fa05f67423ab6c703846068a3f19e41125ad4dbf..9fe140bb38ec2ae53151478bcbf1092f7f35d979 100644 (file)
@@ -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);
        }
This page took 0.052971 seconds and 4 git commands to generate.