diff options
-rw-r--r-- | virt/kvm/ioapic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 0b4914147b9d..25e16a6898ed 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c | |||
@@ -288,6 +288,9 @@ static int ioapic_service(struct kvm_ioapic *ioapic, int irq, bool line_status) | |||
288 | irqe.level = 1; | 288 | irqe.level = 1; |
289 | irqe.shorthand = 0; | 289 | irqe.shorthand = 0; |
290 | 290 | ||
291 | if (irqe.trig_mode == IOAPIC_EDGE_TRIG) | ||
292 | ioapic->irr &= ~(1 << irq); | ||
293 | |||
291 | if (irq == RTC_GSI && line_status) { | 294 | if (irq == RTC_GSI && line_status) { |
292 | BUG_ON(ioapic->rtc_status.pending_eoi != 0); | 295 | BUG_ON(ioapic->rtc_status.pending_eoi != 0); |
293 | ret = kvm_irq_delivery_to_apic(ioapic->kvm, NULL, &irqe, | 296 | ret = kvm_irq_delivery_to_apic(ioapic->kvm, NULL, &irqe, |