]> git.proxmox.com Git - qemu.git/commit
Add PIIX4 properties to control PM system states.
authorGleb Natapov <gleb@redhat.com>
Mon, 4 Jun 2012 11:31:55 +0000 (14:31 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 19 Jun 2012 18:36:56 +0000 (13:36 -0500)
commit459ae5ea5ad682c2b3220beb244d4102c1a4e332
treed6959529e733678024a1be608bf65948610e8fff
parentdcff25f2cd8c11a9368cc2369aeb0319c32d9e26
Add PIIX4 properties to control PM system states.

This patch adds two things. First it allows QEMU to distinguish between
regular powerdown and S4 powerdown. Later separate QMP notification will
be added for S4 powerdown. Second it allows S3/S4 states to be disabled
from QEMU command line. Some guests known to be broken with regards to
power management, but allow to use it anyway. Using new properties
management will be able to disable S3/S4 for such guests.

Supported system state are passed to a firmware using new fw_cfg file.
The file contains  6 byte array. Each byte represents one system
state. If byte at offset X has its MSB set it means that system state
X is supported and to enter it guest should use the value from lowest 3
bits.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/acpi.c
hw/acpi.h
hw/acpi_piix4.c
hw/mips_malta.c
hw/pc.c
hw/pc.h
hw/pc_piix.c
hw/vt82c686.c