Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-09 Thread liu ping fan
On Thu, Aug 9, 2012 at 4:18 PM, Avi Kivity wrote: > On 08/09/2012 10:49 AM, Paolo Bonzini wrote: >> Il 09/08/2012 09:33, liu ping fan ha scritto: >>> Yes, it is to defer destructors. >>> See 0009-memory-prepare-flatview-and-radix-tree-for-rcu-style.patch >>> When MemoryRegion is _del_subregion fro

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-09 Thread Avi Kivity
On 08/09/2012 10:49 AM, Paolo Bonzini wrote: > Il 09/08/2012 09:33, liu ping fan ha scritto: >> Yes, it is to defer destructors. >> See 0009-memory-prepare-flatview-and-radix-tree-for-rcu-style.patch >> When MemoryRegion is _del_subregion from mem in updater, it may be >> still in use by reader --

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-09 Thread Paolo Bonzini
Il 09/08/2012 09:33, liu ping fan ha scritto: > Yes, it is to defer destructors. > See 0009-memory-prepare-flatview-and-radix-tree-for-rcu-style.patch > When MemoryRegion is _del_subregion from mem in updater, it may be > still in use by reader -- radix or flatview, so defer its destructors > to th

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-09 Thread liu ping fan
On Wed, Aug 8, 2012 at 5:35 PM, Paolo Bonzini wrote: > Il 08/08/2012 08:25, Liu Ping Fan ha scritto: >> From: Liu Ping Fan >> >> Collect unused object and release them at caller demand. >> >> Signed-off-by: Liu Ping Fan >> --- >> include/qemu/reclaimer.h | 28 ++ >> main-l

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-09 Thread liu ping fan
On Wed, Aug 8, 2012 at 5:15 PM, Avi Kivity wrote: > On 08/08/2012 12:07 PM, Paolo Bonzini wrote: >> Il 08/08/2012 11:05, Avi Kivity ha scritto: > From: Liu Ping Fan > > Collect unused object and release them at caller demand. > >>> Please explain the motivation for this patch.

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-08 Thread Paolo Bonzini
Il 08/08/2012 08:25, Liu Ping Fan ha scritto: > From: Liu Ping Fan > > Collect unused object and release them at caller demand. > > Signed-off-by: Liu Ping Fan > --- > include/qemu/reclaimer.h | 28 ++ > main-loop.c |5 > qemu-tool.c |

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-08 Thread Avi Kivity
On 08/08/2012 12:07 PM, Paolo Bonzini wrote: > Il 08/08/2012 11:05, Avi Kivity ha scritto: >>> > From: Liu Ping Fan >>> > >>> > Collect unused object and release them at caller demand. >>> > >> Please explain the motivation for this patch. > > It's poor man RCU, I think? I thought that it was

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-08 Thread Paolo Bonzini
Il 08/08/2012 11:05, Avi Kivity ha scritto: >> > From: Liu Ping Fan >> > >> > Collect unused object and release them at caller demand. >> > > Please explain the motivation for this patch. It's poor man RCU, I think? Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the

Re: [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-08 Thread Avi Kivity
On 08/08/2012 09:25 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > Collect unused object and release them at caller demand. > Please explain the motivation for this patch. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubs