]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
acpi: ich9: allow guest to clear SCI rised by GPE
authorIgor Mammedov <imammedo@redhat.com>
Fri, 13 Dec 2013 16:22:10 +0000 (17:22 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Dec 2013 11:12:34 +0000 (13:12 +0200)
it fixes IRQ storm since guest isn't able to lower SCI IRQ
after it has been handled when it clears GPE event.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/ich9.c

index dcdef7c923ccda3884405a17428fb4e09cf7379e..30f0df871332c6dd8fd8a1948b27b72270f48157 100644 (file)
@@ -61,6 +61,7 @@ static void ich9_gpe_writeb(void *opaque, hwaddr addr, uint64_t val,
 {
     ICH9LPCPMRegs *pm = opaque;
     acpi_gpe_ioport_writeb(&pm->acpi_regs, addr, val);
+    acpi_update_sci(&pm->acpi_regs, pm->irq);
 }
 
 static const MemoryRegionOps ich9_gpe_ops = {