Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-13 Thread Avi Kivity
On 09/13/2012 12:59 PM, liu ping fan wrote: > On Thu, Sep 13, 2012 at 4:45 PM, Avi Kivity wrote: >> On 09/13/2012 09:54 AM, liu ping fan wrote: >>> On Tue, Sep 11, 2012 at 5:37 PM, Avi Kivity wrote: On 09/11/2012 12:32 PM, liu ping fan wrote: > On Tue, Sep 11, 2012 at 4:32 PM, Avi Kivity

Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-13 Thread liu ping fan
On Thu, Sep 13, 2012 at 4:45 PM, Avi Kivity wrote: > On 09/13/2012 09:54 AM, liu ping fan wrote: >> On Tue, Sep 11, 2012 at 5:37 PM, Avi Kivity wrote: >>> On 09/11/2012 12:32 PM, liu ping fan wrote: On Tue, Sep 11, 2012 at 4:32 PM, Avi Kivity wrote: > On 09/11/2012 10:51 AM, Liu Ping Fa

Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-13 Thread Avi Kivity
On 09/13/2012 09:54 AM, liu ping fan wrote: > On Tue, Sep 11, 2012 at 5:37 PM, Avi Kivity wrote: >> On 09/11/2012 12:32 PM, liu ping fan wrote: >>> On Tue, Sep 11, 2012 at 4:32 PM, Avi Kivity wrote: On 09/11/2012 10:51 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > DeviceState

Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-12 Thread liu ping fan
On Tue, Sep 11, 2012 at 5:37 PM, Avi Kivity wrote: > On 09/11/2012 12:32 PM, liu ping fan wrote: >> On Tue, Sep 11, 2012 at 4:32 PM, Avi Kivity wrote: >>> On 09/11/2012 10:51 AM, Liu Ping Fan wrote: From: Liu Ping Fan DeviceState will be protected by refcnt from disappearing durin

Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-11 Thread Avi Kivity
On 09/11/2012 12:32 PM, liu ping fan wrote: > On Tue, Sep 11, 2012 at 4:32 PM, Avi Kivity wrote: >> On 09/11/2012 10:51 AM, Liu Ping Fan wrote: >>> From: Liu Ping Fan >>> >>> DeviceState will be protected by refcnt from disappearing during >>> dispatching. But when refcnt comes down to zero, Devi

Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-11 Thread liu ping fan
On Tue, Sep 11, 2012 at 4:32 PM, Avi Kivity wrote: > On 09/11/2012 10:51 AM, Liu Ping Fan wrote: >> From: Liu Ping Fan >> >> DeviceState will be protected by refcnt from disappearing during >> dispatching. But when refcnt comes down to zero, DeviceState may >> be still in use by iohandler, timer

Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-11 Thread Avi Kivity
On 09/11/2012 10:51 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > DeviceState will be protected by refcnt from disappearing during > dispatching. But when refcnt comes down to zero, DeviceState may > be still in use by iohandler, timer etc in main loop, we just delay > its free untill no reade

[Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async

2012-09-11 Thread Liu Ping Fan
From: Liu Ping Fan DeviceState will be protected by refcnt from disappearing during dispatching. But when refcnt comes down to zero, DeviceState may be still in use by iohandler, timer etc in main loop, we just delay its free untill no reader. This patch aim to build this delay reclaimer. Signe