diff options
author | David Hildenbrand | 2018-06-08 14:48:15 +0200 |
---|---|---|
committer | David Gibson | 2018-06-12 02:44:36 +0200 |
commit | 3ec71474cad1066865b3c2059add208794a418da (patch) | |
tree | e787a83ea5abddf52727e6b931710c67f1f72a2c /hw/core/qdev.c | |
parent | spapr: introduce machine unplug handler (diff) | |
download | qemu-3ec71474cad1066865b3c2059add208794a418da.tar.gz qemu-3ec71474cad1066865b3c2059add208794a418da.tar.xz qemu-3ec71474cad1066865b3c2059add208794a418da.zip |
spapr: handle pc-dimm unplug via hotplug handler chain
Factor out memory unplug into separate function from spapr_lmb_release().
Then use generic hotplug_handler_unplug() to trigger memory unplug,
which will call spapr_machine_device_unplug() -> spapr_memory_unplug()
in the end.
This way unplug operation is not buried in lmb internals and located in
the same place like in other targets, following similar logic/call chain
across targets.
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/core/qdev.c')
0 files changed, 0 insertions, 0 deletions