]> xenbits.xensource.com Git - seabios.git/commit
Get system state configuration from QEMU and patch DSDT with it.
authorGleb Natapov <gleb@redhat.com>
Sun, 20 May 2012 09:03:40 +0000 (12:03 +0300)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 22 Jun 2012 01:04:24 +0000 (21:04 -0400)
commitd51c4a0df1ae7bcb20ec3d569e409cf50f3ed760
tree90c6cdfb913c306132cb3f9178acc726da4ca64d
parent94bb3ca56aa810c784112900d08fd85500e63bc3
Get system state configuration from QEMU and patch DSDT with it.

QEMU may want to disable guest's S3/S4 support and it wants to distinguish
between regular powerdown and S4 powerdown. To support that new fw_cfg
option was added that passes supported system states and what value should
guest use to enter each state. States are passed in 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 7 bits. Patch also detects old QEMU and uses
values that work in backwards compatible way there.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/acpi-dsdt.dsl
src/acpi.c
src/ssdt-pcihp.dsl