qemu-irix/hw
Bharata B Rao 6595ab3158 spapr: prevent QEMU crash when CPU realization fails
ICPState objects were being allocated before CPU thread realization.
However commit 9ed656631d (xics: setup cpu at realize time) reversed it
by allocating ICPState objects after CPU thread is realized. But it
didn't take care to fix the error path because of which we observe
a SIGSEGV when CPU thread realization fails during cold/hotplug.

Fix this by ensuring that we do object_unparent() of ICPState object
only in case when is was created earlier.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-06-30 14:03:31 +10:00
..
9pfs 9pfs: handle transport errors in pdu_complete() 2017-06-29 15:11:51 +02:00
acpi pcihp: use get_uint() for "bsel" property 2017-06-20 14:31:32 +02:00
adc
alpha
arm bcm2835_fb: use {get, set}_uint() for "vcram-size" and "vcram-base" 2017-06-20 14:31:32 +02:00
audio
block migration/next for 20170628 2017-06-29 13:13:05 +01:00
bt
char
core accel: introduce AccelClass.global_props 2017-06-28 11:18:38 +02:00
cpu
cris
display vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
dma
gpio
i2c
i386 migration: move skip_section_footers 2017-06-28 11:18:39 +02:00
ide vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
input vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
intc xics: directly register ICPState objects to vmstate 2017-06-30 14:03:31 +10:00
ipack
ipmi
isa
lm32
m68k
mem pc-dimm: make "size" property uint64 2017-06-20 14:31:32 +02:00
microblaze
mips
misc vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
moxie
net qdev: Rename DEFINE_PROP_DEFAULT() to DEFINE_PROP_SIGNED() 2017-06-20 14:31:32 +02:00
nios2
nvram vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
openrisc
pci vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
pci-bridge
pci-host QAPI patches for 2017-06-09 2017-06-22 11:34:39 +01:00
pcmcia
ppc spapr: prevent QEMU crash when CPU realization fails 2017-06-30 14:03:31 +10:00
s390x
scsi
sd
sh4
smbios
sparc
sparc64
ssi xilinx_spips: allow mmio execution 2017-06-27 15:09:15 +02:00
timer
tpm
tricore
unicore32
usb vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
vfio
virtio
watchdog
xen migration: move skip_section_footers 2017-06-28 11:18:39 +02:00
xenpv
xtensa
Makefile.objs