]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/acpi/ich9: clear smi_en on reset
authorLaszlo Ersek <lersek@redhat.com>
Fri, 24 Jul 2015 18:16:00 +0000 (20:16 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 27 Jul 2015 19:44:47 +0000 (22:44 +0300)
Otherwise on reboot firmware might think (due to APMC_EN remaining set
from the previous boot) that SMI support is absent.

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-trivial@nongnu.org
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/acpi/ich9.c

index f04f6dc8c30925381581959aee47e53e47ff9e47..8da5a2dfe31588f3b3de60fdb7b6f34180fd5578 100644 (file)
@@ -221,6 +221,7 @@ static void pm_reset(void *opaque)
     acpi_pm_tmr_reset(&pm->acpi_regs);
     acpi_gpe_reset(&pm->acpi_regs);
 
+    pm->smi_en = 0;
     if (!pm->smm_enabled) {
         /* Mark SMM as already inited to prevent SMM from running. KVM does not
          * support SMM mode. */