02a5c4c974
The qdev_free() function name is misleading since all the function does is unlink the device from its parent. The device is not necessarily freed. The device will be freed when its QObject refcount reaches zero. It is usual for the parent (bus) to hold the final reference but there are cases where something else holds a reference so "free" is a misleading name. Call object_unparent(obj) directly instead of having a qdev wrapper function. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de> |
||
---|---|---|
.. | ||
Makefile.objs | ||
xen_apic.c | ||
xen_backend.c | ||
xen_devconfig.c | ||
xen_platform.c | ||
xen_pt_config_init.c | ||
xen_pt_msi.c | ||
xen_pt.c | ||
xen_pt.h | ||
xen_pvdevice.c | ||
xen-host-pci-device.c | ||
xen-host-pci-device.h |