]> git.proxmox.com Git - qemu.git/commit
qdev: move bus removal to object_unparent
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Nov 2012 08:47:13 +0000 (09:47 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 26 Nov 2012 19:41:00 +0000 (13:41 -0600)
commit667d22d1ae59da46b4c1fbd094ca61145f19b8c3
treedb6acb0b6dce798eb5588ef8d05a9873e8114ddc
parent764b63125a77dab54ed405d493452a4e05679c2e
qdev: move bus removal to object_unparent

Add an ObjectClass method that is done at object_unparent time.  It
should remove any backlinks to the object in the composition tree,
so that object_delete will be able to drop the last reference and
free the object.

Use it for qdev buses.

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c
include/qemu/object.h
qom/object.c