[Qemu-devel] [PATCH 1/1] spapr: Correct reference count on spapr-cpu-core

2018-08-30 Thread Sam Bobroff
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 re

Re: [Qemu-devel] [PATCH 1/1] spapr: Correct reference count on spapr-cpu-core

2018-08-29 Thread David Gibson
On Thu, Aug 30, 2018 at 03:54:40PM +1000, Sam Bobroff wrote: 11;rgb://> 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 > referenc