summaryrefslogtreecommitdiffstats
path: root/hw/acpi_ich9.c
diff options
context:
space:
mode:
authorBruce Rogers2013-04-02 20:41:40 +0200
committerAnthony Liguori2013-04-03 22:06:44 +0200
commit560e63965232e37d1916a447125cf91c18a96930 (patch)
tree9580094bf8c1d109f25be620e086dd6291bb37d0 /hw/acpi_ich9.c
parenttarget-i386: Check for host features before filter_features_for_kvm() (diff)
downloadqemu-560e63965232e37d1916a447125cf91c18a96930.tar.gz
qemu-560e63965232e37d1916a447125cf91c18a96930.tar.xz
qemu-560e63965232e37d1916a447125cf91c18a96930.zip
acpi: initialize s4_val used in s4 shutdown
While investigating why a 32 bit Windows 2003 guest wasn't able to successfully perform a shutdown /h, it was discovered that commit afafe4bbe0cf7d3318e1ac7b40925561f86a6bd4 inadvertently dropped the initialization of the s4_val used to handle s4 shutdown. Initialize the value as before. Signed-off-by: Bruce Rogers <brogers@suse.com> Message-id: 1364928100-487-1-git-send-email-brogers@suse.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/acpi_ich9.c')
-rw-r--r--hw/acpi_ich9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c
index 29f84ffb45..7b34a03866 100644
--- a/hw/acpi_ich9.c
+++ b/hw/acpi_ich9.c
@@ -212,7 +212,7 @@ void ich9_pm_init(PCIDevice *lpc_pci, ICH9LPCPMRegs *pm,
acpi_pm_tmr_init(&pm->acpi_regs, ich9_pm_update_sci_fn, &pm->io);
acpi_pm1_evt_init(&pm->acpi_regs, ich9_pm_update_sci_fn, &pm->io);
- acpi_pm1_cnt_init(&pm->acpi_regs, &pm->io);
+ acpi_pm1_cnt_init(&pm->acpi_regs, &pm->io, 2);
acpi_gpe_init(&pm->acpi_regs, ICH9_PMIO_GPE0_LEN);
memory_region_init_io(&pm->io_gpe, &ich9_gpe_ops, pm, "apci-gpe0",