From be66680e8320d612f1c96096a217e642e458f47b Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 24 Jul 2015 20:16:00 +0200 Subject: hw/acpi/ich9: clear smi_en on reset 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" Cc: Igor Mammedov Cc: Gerd Hoffmann Cc: Paolo Bonzini Cc: qemu-trivial@nongnu.org Signed-off-by: Laszlo Ersek Reviewed-by: Igor Mammedov Signed-off-by: Michael Tokarev --- hw/acpi/ich9.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/acpi') diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index f04f6dc..8da5a2d 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -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. */ -- cgit v1.1