summaryrefslogtreecommitdiffstats
path: root/hw/i386/acpi-build.c
diff options
context:
space:
mode:
authorXiao Guangrong2016-10-28 18:35:40 +0200
committerMichael S. Tsirkin2016-11-01 18:21:09 +0100
commitb097cc52fc9126bd1a71dae8302b8536d28104dd (patch)
tree334774fab08978bf302a83149cbf867df68d0286 /hw/i386/acpi-build.c
parentnvdimm acpi: introduce _FIT (diff)
downloadqemu-b097cc52fc9126bd1a71dae8302b8536d28104dd.tar.gz
qemu-b097cc52fc9126bd1a71dae8302b8536d28104dd.tar.xz
qemu-b097cc52fc9126bd1a71dae8302b8536d28104dd.zip
pc: memhp: enable nvdimm device hotplug
_GPE.E04 is dedicated for nvdimm device hotplug Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/acpi-build.c')
-rw-r--r--hw/i386/acpi-build.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 03a5386790..7aaa07a177 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -2069,6 +2069,13 @@ build_dsdt(GArray *table_data, BIOSLinker *linker,
method = aml_method("_E03", 0, AML_NOTSERIALIZED);
aml_append(method, aml_call0(MEMORY_HOTPLUG_HANDLER_PATH));
aml_append(scope, method);
+
+ if (pcms->acpi_nvdimm_state.is_enabled) {
+ method = aml_method("_E04", 0, AML_NOTSERIALIZED);
+ aml_append(method, aml_notify(aml_name("\\_SB.NVDR"),
+ aml_int(0x80)));
+ aml_append(scope, method);
+ }
}
aml_append(dsdt, scope);