Commit d15d3d57 authored by Li Qiang's avatar Li Qiang Committed by Paolo Bonzini
Browse files

ioapic: clear irq_eoi when updating the ioapic redirect table entry



irq_eoi is used to count the number of irq injected during eoi
broadcast. It should be set to 0 when updating the ioapic's redirect
table entry.

Suggested-by: default avatarPeter Xu <peterx@redhat.com>
Signed-off-by: default avatarLi Qiang <liq3ea@163.com>
Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
Message-Id: <20190624151635.22494-1-liq3ea@163.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 9a4bb839
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -380,6 +380,7 @@ ioapic_mem_write(void *opaque, hwaddr addr, uint64_t val,
                /* restore RO bits */
                s->ioredtbl[index] &= IOAPIC_RW_BITS;
                s->ioredtbl[index] |= ro_bits;
                s->irq_eoi[index] = 0;
                ioapic_fix_edge_remote_irr(&s->ioredtbl[index]);
                ioapic_service(s);
            }