summaryrefslogtreecommitdiffstats
path: root/hw/i386/q35-acpi-dsdt.dsl
diff options
context:
space:
mode:
authorGabriel L. Somlo2013-12-22 16:34:56 +0100
committerMichael S. Tsirkin2014-01-26 12:06:48 +0100
commit15bce1b7c55c69f47e13c9eb2a4b80f41da26581 (patch)
treefc8ac6ec8bfd998fee2803cd04b31c46e78bda97 /hw/i386/q35-acpi-dsdt.dsl
parentPython-lang gdb script to extract x86_64 guest vmcore from qemu coredump (diff)
downloadqemu-15bce1b7c55c69f47e13c9eb2a4b80f41da26581.tar.gz
qemu-15bce1b7c55c69f47e13c9eb2a4b80f41da26581.tar.xz
qemu-15bce1b7c55c69f47e13c9eb2a4b80f41da26581.zip
Add DSDT node for AppleSMC
AppleSMC (-device isa-applesmc) is required to boot OS X guests. OS X expects a SMC node to be present in the ACPI DSDT. This patch adds a SMC node to the DSDT, and dynamically patches the return value of SMC._STA to either 0x0B if the chip is present, or otherwise to 0x00, before booting the guest. Signed-off-by: Gabriel Somlo <somlo@cmu.edu> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/q35-acpi-dsdt.dsl')
-rw-r--r--hw/i386/q35-acpi-dsdt.dsl1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/q35-acpi-dsdt.dsl b/hw/i386/q35-acpi-dsdt.dsl
index 7934a9ddfb..ee38fd6580 100644
--- a/hw/i386/q35-acpi-dsdt.dsl
+++ b/hw/i386/q35-acpi-dsdt.dsl
@@ -171,6 +171,7 @@ DefinitionBlock (
}
}
+#define DSDT_APPLESMC_STA q35_dsdt_applesmc_sta
#include "acpi-dsdt-isa.dsl"