diff options
author | Laszlo Ersek <lersek@redhat.com> | 2015-07-24 20:16:00 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-07-27 22:44:47 +0300 |
commit | be66680e8320d612f1c96096a217e642e458f47b (patch) | |
tree | c520d90ff9840a57d74b9623c763071ef32f6ba1 /hw | |
parent | edec47cfef96209987cb7922286cb384916aae02 (diff) | |
download | qemu-be66680e8320d612f1c96096a217e642e458f47b.zip qemu-be66680e8320d612f1c96096a217e642e458f47b.tar.gz qemu-be66680e8320d612f1c96096a217e642e458f47b.tar.bz2 |
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" <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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/acpi/ich9.c | 1 |
1 files changed, 1 insertions, 0 deletions
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. */ |