diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2015-10-01 10:49:45 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-10-02 13:31:52 +0200 |
commit | 7059384c7e27d68c502d8636eb711873a9a6a597 (patch) | |
tree | 236a9b1f3ffc16d262a946e5d44dc49111223c4d /dump.c | |
parent | 8a641ff60f38799a10ed44a7c5bddd386bc169ed (diff) | |
download | qemu-7059384c7e27d68c502d8636eb711873a9a6a597.zip qemu-7059384c7e27d68c502d8636eb711873a9a6a597.tar.gz qemu-7059384c7e27d68c502d8636eb711873a9a6a597.tar.bz2 |
s390x: set missing parent for hotplug and quiesce events
Existing code missed to set a parent for the quiesce and hotplug event.
While this didn't matter in practise, new introspection APIs basically now
do an object_unref(object_new(T)), which loops forever.
When trying to remove the event facility bus, the code tries to
unparent all childs on the bus, so they are properly deleted and therefore removed.
As object_unparent() on these child devices doesn't work, as there is no parent,
we loop forever.
Let's fix this by adding the event facility as a parent. Also switch from
object_initialize to object_new, so the only valid reference is in fact the
parent property. This makes it more obvious when the device (state) is actually
gone (and how the reference counting works).
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Message-Id: <1443689387-34473-4-git-send-email-jfrei@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'dump.c')
0 files changed, 0 insertions, 0 deletions