Re: [Qemu-devel] [PATCH 04/11] qdev: add reference count to a device for the BusChild

2013-01-09 Thread Paolo Bonzini
Il 07/01/2013 21:26, Anthony Liguori ha scritto: >> > +object_ref(OBJECT(kid->child)); >> > >> > QTAILQ_INSERT_HEAD(&bus->children, kid, sibling); >> > >> > +/* This transfers ownership of kid->child to the property. */ >> > snprintf(name, sizeof(name), "child[%d]", kid->inde

Re: [Qemu-devel] [PATCH 04/11] qdev: add reference count to a device for the BusChild

2013-01-07 Thread Anthony Liguori
Paolo Bonzini writes: > Each device has a reference through the BusChild. This reference > was not accounted for, add it now. > > Signed-off-by: Paolo Bonzini > --- > hw/qdev.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/hw/qdev.c b/hw/qdev.c > index e758131..87dfcb5 100644 >

[Qemu-devel] [PATCH 04/11] qdev: add reference count to a device for the BusChild

2012-12-05 Thread Paolo Bonzini
Each device has a reference through the BusChild. This reference was not accounted for, add it now. Signed-off-by: Paolo Bonzini --- hw/qdev.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/qdev.c b/hw/qdev.c index e758131..87dfcb5 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -65,7 +6