]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
qdev: move deletion of children from finalize to unparent
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jan 2013 13:12:33 +0000 (14:12 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 Feb 2013 21:53:10 +0000 (15:53 -0600)
commit6853d27a1253cd29c43d08b0624e7938a48d52a7
treefd938e64d30b1e34849815993e27c06b13601a34
parent9d127820ebbdc76592e3922cbbe803533455f9a2
qdev: move deletion of children from finalize to unparent

A device will never be finalized as long as it has a reference from
other devices that sit on its buses.  To ensure that the references
go away, deassociate a bus from its children in the unparent callback
for the bus.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c