]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: Simplify unplug path
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Jul 2017 00:45:35 +0000 (10:45 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 17 Jul 2017 05:07:05 +0000 (15:07 +1000)
commit765d1bdda5282cb38445c6dd82fa8aa0802cc904
tree6899a76e7177e12636d0d560e471ca2dcba96d8c
parent82a93a1d307064f35c363f79b04b0a0149ac53d9
spapr: Simplify unplug path

spapr_lmb_release() and spapr_core_release() call hotplug_handler_unplug()
which after a bunch of indirection calls spapr_memory_unplug() or
spapr_core_unplug().  But we already know which is the appropriate thing
to call here, so we can just fold it directly into the release function.

Once that's done, there's no need for an hc->unplug method in the spapr
machine at all: since we also have an hc->unplug_request method, the
hotplug core will never use ->unplug.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Tested-by: Daniel Barboza <danielhb@linux.vnet.ibm.com>
hw/ppc/spapr.c