mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
KVM: Fix coalesced interrupt reporting in IOAPIC
This bug was introduced by b4a2f5e723
.
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>
This commit is contained in:
parent
a20316d2aa
commit
65a8221163
1 changed files with 2 additions and 0 deletions
|
@ -193,6 +193,8 @@ int kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level)
|
||||||
if ((edge && old_irr != ioapic->irr) ||
|
if ((edge && old_irr != ioapic->irr) ||
|
||||||
(!edge && !entry.fields.remote_irr))
|
(!edge && !entry.fields.remote_irr))
|
||||||
ret = ioapic_service(ioapic, irq);
|
ret = ioapic_service(ioapic, irq);
|
||||||
|
else
|
||||||
|
ret = 0; /* report coalesced interrupt */
|
||||||
}
|
}
|
||||||
trace_kvm_ioapic_set_irq(entry.bits, irq, ret == 0);
|
trace_kvm_ioapic_set_irq(entry.bits, irq, ret == 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue