pc: acpi-build: generate _S[345] packages dynamically
commitebc3028f7a2a164e442d734868e4168aa6040c81
authorIgor Mammedov <imammedo@redhat.com>
Wed, 18 Feb 2015 19:14:29 +0000 (18 19:14 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 12:04:13 +0000 (26 13:04 +0100)
tree5c1e5cdae990b9b9168e1e33c7f61a071cf5cd70
parent3bfa74a7e8c0787877e0f23a873413ad8817c66c
pc: acpi-build: generate _S[345] packages dynamically

Replaces template patching with packages composed
using AML API.

Note on behavior change:
If S3 or S4 is disabled, respective packages won't
be created and put into SSDT. Which saves us some
space in SSDT and doesn't confuse guest OS with
mangled package names as it was done originally.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/i386/ssdt-misc.dsl