hw/acpi: Do not create memory hotplug method when handler is not defined
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 18 Sep 2019 13:06:24 +0000 (14:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 5 Oct 2019 21:12:08 +0000 (17:12 -0400)
commit22338fea781cd26618b775afec068bc7238ff5c6
tree4f1f0287930c63bd12c067efe679f8d5dcdb8698
parent091c466e26867656d3d650a3a5a40169b97648a1
hw/acpi: Do not create memory hotplug method when handler is not defined

With Hardware-reduced ACPI, the GED device will manage ACPI
hotplug entirely. As a consequence, make the memory specific
events AML generation optional. The code will only be added
when the method name is not NULL.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20190918130633.4872-3-shameerali.kolothum.thodi@huawei.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/memory_hotplug.c