qemu-e2k/hw
Greg Kurz 8e758dee66 spapr: drop reference on child object during core realization
When a core is being realized, we create a child object for each thread
of the core.

The child is first initialized with object_initialize() which sets its ref
count to 1, and then added to the core with object_property_add_child()
which bumps the ref count to 2.

When the core gets released, object_unparent() decreases the ref count to 1,
and we g_free() the object: we hence loose the reference on an unfinalized
object. This is likely to cause random crashes.

Let's drop the extra reference as soon as we don't need it, after the
thread is added to the core.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2016-07-01 13:41:47 +10:00
..
9pfs
acpi pc: use new CPU hotplug interface since 2.7 machine type 2016-06-24 05:21:38 +03:00
alpha
arm palmetto-bmc: Configure the SCU's hardware strapping register 2016-06-27 15:37:33 +01:00
audio pcspk: fix KVM 2016-06-30 19:00:02 +01:00
block * serial port fixes (Paolo) 2016-06-29 19:14:48 +01:00
bt
char * serial port fixes (Paolo) 2016-06-29 19:14:48 +01:00
core
cpu
cris
display
dma
gpio
i2c ICH9 SMB: make TYPE_ICH9_SMB_DEVICE macro public 2016-06-29 14:03:46 +02:00
i386 pci-assign: Move "Invalid ROM" error message to pci-assign-load-rom.c 2016-06-29 14:03:47 +02:00
ide * serial port fixes (Paolo) 2016-06-29 19:14:48 +01:00
input pckbd: handle A20 IRQ as GPIO 2016-06-29 14:03:46 +02:00
intc ppc/xics: Replace "icp" with "xics" in most places 2016-07-01 13:41:47 +10:00
ipack
ipmi
isa ich9: implement SCI_IRQ_SEL register 2016-06-29 14:03:48 +02:00
lm32
m68k
mem nvdimm: support nvdimm label 2016-06-24 05:13:57 +03:00
microblaze
mips
misc * serial port fixes (Paolo) 2016-06-29 19:14:48 +01:00
moxie
net vmxnet3: Fix reading/writing guest memory specially when behind an IOMMU 2016-06-28 10:13:57 +08:00
nvram
openrisc
pci
pci-bridge
pci-host Q35: implement property interfece to several parameters 2016-06-29 14:03:46 +02:00
pcmcia
ppc spapr: drop reference on child object during core realization 2016-07-01 13:41:47 +10:00
s390x virtio-ccw: convert to ioeventfd callbacks 2016-06-24 08:47:35 +03:00
scsi * serial port fixes (Paolo) 2016-06-29 19:14:48 +01:00
sd
sh4 hw/sh4/sh_pci.c: Use ldl_le_p() and stl_le_p() 2016-06-28 15:09:32 +01:00
smbios ipmi: Add SMBIOS table entry 2016-06-24 05:13:57 +03:00
sparc
sparc64
ssi
timer MC146818 RTC: add GPIO access to output IRQ 2016-06-29 14:03:46 +02:00
tpm
tricore
unicore32
usb usb-uas: hotplug support 2016-06-22 12:53:26 +02:00
vfio
virtio virtio-bus: remove old set_host_notifier callback 2016-06-24 08:47:35 +03:00
watchdog
xen
xenpv
xtensa
Makefile.objs