diff options
author | Zhu Guihua | 2015-04-27 10:47:21 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2015-04-27 21:09:07 +0200 |
commit | c06b2ffb02bfcc642c67300d2c4dffd5aa54932b (patch) | |
tree | 92df290e7b207f928e8e50cf298be347a391294e /include/hw/qdev-core.h | |
parent | acpi: fix "Memory device control fields" register (diff) | |
download | qemu-c06b2ffb02bfcc642c67300d2c4dffd5aa54932b.tar.gz qemu-c06b2ffb02bfcc642c67300d2c4dffd5aa54932b.tar.xz qemu-c06b2ffb02bfcc642c67300d2c4dffd5aa54932b.zip |
acpi: add hardware implementation for memory hot unplug
- implements QEMU hardware part of memory hot unplug protocol
described at "docs/spec/acpi_mem_hotplug.txt"
- handles memory remove notification event
- handles device eject notification
Reviewed-by: Igor Mammedov <imammedo@redhat.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>
Diffstat (limited to 'include/hw/qdev-core.h')
-rw-r--r-- | include/hw/qdev-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index 4e673f9d29..5b7acf19fa 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -266,6 +266,7 @@ int qdev_init(DeviceState *dev) QEMU_WARN_UNUSED_RESULT; void qdev_init_nofail(DeviceState *dev); void qdev_set_legacy_instance_id(DeviceState *dev, int alias_id, int required_for_version); +HotplugHandler *qdev_get_hotplug_handler(DeviceState *dev); void qdev_unplug(DeviceState *dev, Error **errp); void qdev_simple_device_unplug_cb(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp); |