Re: [Qemu-devel] [RFC PATCH 0/9] qom: improve reference counting and hotplug

2012-10-09 Thread Vasilis Liaskovitis
Hi, On Sun, Aug 26, 2012 at 10:51:29AM -0500, Anthony Liguori wrote: > Right now, you need to pair up object_new with object_delete. This is > impractical when using reference counting because we would like to ensure that > object_unref() also frees memory when needed. > > The first few patches

Re: [Qemu-devel] [RFC PATCH 0/9] qom: improve reference counting and hotplug

2012-08-27 Thread Anthony Liguori
Paolo Bonzini writes: > Il 27/08/2012 13:46, Andreas Färber ha scritto: >> >> Since link and child properties all hold references, in order to >> actually free >> an object, we need to break those links. User created devices end up as >> children of a container. But ch

Re: [Qemu-devel] [RFC PATCH 0/9] qom: improve reference counting and hotplug

2012-08-27 Thread Paolo Bonzini
Il 27/08/2012 13:46, Andreas Färber ha scritto: >>> >> >>> >> Since link and child properties all hold references, in order to >>> >> actually free >>> >> an object, we need to break those links. User created devices end up as >>> >> children of a container. But child properties cannot be remove

Re: [Qemu-devel] [RFC PATCH 0/9] qom: improve reference counting and hotplug

2012-08-27 Thread Andreas Färber
Am 27.08.2012 09:22, schrieb liu ping fan: > On Sun, Aug 26, 2012 at 11:51 PM, Anthony Liguori wrote: >> Right now, you need to pair up object_new with object_delete. This is >> impractical when using reference counting because we would like to ensure >> that >> object_unref() also frees memory

Re: [Qemu-devel] [RFC PATCH 0/9] qom: improve reference counting and hotplug

2012-08-27 Thread liu ping fan
On Sun, Aug 26, 2012 at 11:51 PM, Anthony Liguori wrote: > Right now, you need to pair up object_new with object_delete. This is > impractical when using reference counting because we would like to ensure that > object_unref() also frees memory when needed. > > The first few patches fix this prob

[Qemu-devel] [RFC PATCH 0/9] qom: improve reference counting and hotplug

2012-08-26 Thread Anthony Liguori
Right now, you need to pair up object_new with object_delete. This is impractical when using reference counting because we would like to ensure that object_unref() also frees memory when needed. The first few patches fix this problem by introducing a release callback so that objects that need spe