]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: cpu core: separate child threads destruction from machine state operations
authorIgor Mammedov <imammedo@redhat.com>
Fri, 3 Feb 2017 10:51:57 +0000 (11:51 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Feb 2017 00:28:27 +0000 (11:28 +1100)
commitf844616bf6ff623fd6691b022cb5227faa269675
tree14ca29f368c42f660974191febe223d4d45cf476
parent796b288f7be875045670f963ce99991b3c8e96ac
spapr: cpu core: separate child threads destruction from machine state operations

Split off destroying VCPU threads from drc callback
spapr_core_release() into new spapr_cpu_core_unrealizefn()
which takes care of internal cpu core state cleanup (i.e.
VCPU threads) and is called when object_unparent(core)
is called.

That leaves spapr_core_release() only with board mgmt
code, which will be moved to board related file in
follow up patch along with the rest on hotplug callbacks.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c