Make cpu core hotunplug use the same (expected) unplug_request/unplug call flow like spapr memory unplug and mem/cpu unplug on x86.
While doing it separate internal cpu core handling and machine wiring code and move machine related callbacks close to related machine code in spapr.c. Series applies on top of tags/ppc-for-2.9-20170202 pull req. repo for testing: g...@github.com:imammedo/qemu.git spapr_cpu_unplug_cleanup CC: David Gibson <da...@gibson.dropbear.id.au> (supporter:sPAPR) CC: Alexander Graf <ag...@suse.de> (supporter:sPAPR) CC: qemu-...@nongnu.org CC: Bharata B Rao <bhar...@linux.vnet.ibm.com> Igor Mammedov (3): spapr: cpu core: separate child threads destruction from machine state operations spapr: move spapr_core_[foo]plug() callbacks close to machine code in spapr.c spapr: make cpu core unplug follow expected hotunplug call flow include/hw/ppc/spapr_cpu_core.h | 6 -- hw/ppc/spapr.c | 150 +++++++++++++++++++++++++++++++++++++++- hw/ppc/spapr_cpu_core.c | 137 +----------------------------------- 3 files changed, 151 insertions(+), 142 deletions(-) -- 2.7.4