acpi, mem-hotplug: add unplug request cb for memory device
commit64fec58e8ab62490edd2638e4214d8c9f84518c9
authorTang Chen <tangchen@cn.fujitsu.com>
Mon, 27 Apr 2015 08:47:17 +0000 (27 16:47 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Apr 2015 19:07:39 +0000 (27 21:07 +0200)
treea48577cda520f091834296d18eaf6ffe0a5fb1ea
parent4aae99b63333e71b2097b106bb15a6fde7f9b55b
acpi, mem-hotplug: add unplug request cb for memory device

This patch adds unplug request cb for memory device, and adds the
is_removing boolean field to MemStatus. This field is used to indicate
whether the memory device in slot has been requested to be ejected.
This field is set to true in acpi_memory_unplug_request_cb().

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/ich9.c
hw/acpi/memory_hotplug.c
hw/acpi/piix4.c
hw/i386/pc.c
include/hw/acpi/memory_hotplug.h