summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorSam Bobroff2018-08-30 07:54:40 +0200
committerDavid Gibson2018-08-30 07:58:42 +0200
commitecda255ebab14adc35731fe67f8cfa70624010e2 (patch)
treef91481833298bc232bc83d9f719465b8b349cce5 /linux-user
parentmac_newworld: implement custom FWPathProvider (diff)
downloadqemu-ecda255ebab14adc35731fe67f8cfa70624010e2.tar.gz
qemu-ecda255ebab14adc35731fe67f8cfa70624010e2.tar.xz
qemu-ecda255ebab14adc35731fe67f8cfa70624010e2.zip
spapr: Correct reference count on spapr-cpu-core
spapr_init_cpus() currently creates spapr-cpu-core objects via object_new() and setting their realized property to true. This leaves their reference count at two, because object_new() adds an initial reference and the realization attaches them to a default parent object which also increments the reference count. This causes a problem if one of these cores is hot unplugged: no delete event is generated for it because it's reference count doesn't reach zero when it is detached from it's parent. Correct this by adding a call to object_unref() in spapr_init_cpus(). Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions