diff options
author | Bharata B Rao | 2017-04-12 10:15:07 +0200 |
---|---|---|
committer | David Gibson | 2017-04-26 04:41:56 +0200 |
commit | 8f37e54e5b9960151dfb16183fc1c530a0674c77 (patch) | |
tree | e769cf9f8eaa31f4da4a0a6027e85b44acfc11d5 | |
parent | ppc/pnv: generate an OEM SEL event on shutdown (diff) | |
download | qemu-8f37e54e5b9960151dfb16183fc1c530a0674c77.tar.gz qemu-8f37e54e5b9960151dfb16183fc1c530a0674c77.tar.xz qemu-8f37e54e5b9960151dfb16183fc1c530a0674c77.zip |
spapr-cpu-core: Release ICPState object during CPU unrealization
Recent commits that re-organized ICPState object missed to destroy
the object when CPU is unrealized. Fix this so that CPU unplug
doesn't abort QEMU.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | hw/ppc/spapr_cpu_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 2e689b542d..4389ef4c2a 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -127,6 +127,7 @@ static void spapr_cpu_core_unrealizefn(DeviceState *dev, Error **errp) PowerPCCPU *cpu = POWERPC_CPU(cs); spapr_cpu_destroy(cpu); + object_unparent(cpu->intc); cpu_remove_sync(cs); object_unparent(obj); } |