While reading the code _again_ I spotted a memory leak and I realized we can simplify some paths that deal with vCPU removal.
--- Greg Kurz (4): spapr: Fix leak of CPU machine specific data spapr: Drop spapr_delete_vcpu() unused argument spapr: Introduce an .instance_finalize hook for TYPE_SPAPR_CPU_CORE spapr: Make spapr_cpu_core_unrealize() idempotent hw/ppc/spapr_cpu_core.c | 65 +++++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 30 deletions(-) -- Greg