acpi, mem-hotplug: add acpi_memory_slot_status() to get MemStatus
commit4aae99b63333e71b2097b106bb15a6fde7f9b55b
authorTang Chen <tangchen@cn.fujitsu.com>
Mon, 27 Apr 2015 08:47:16 +0000 (27 16:47 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Apr 2015 19:07:39 +0000 (27 21:07 +0200)
tree936dcc6538877b34b1e5b75a4fcbfd695be6caa6
parent4fccb4834d0455519ff6d7a81551a8dfd360fefa
acpi, mem-hotplug: add acpi_memory_slot_status() to get MemStatus

Add a new API named acpi_memory_slot_status() to obtain a single memory
slot status. Doing this is because this procedure will be used by other
functions in the next coming patches.

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/memory_hotplug.c