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

2012-08-10 Thread liu ping fan
On Thu, Aug 9, 2012 at 4:18 PM, Avi Kivity a...@redhat.com 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

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 a...@redhat.com 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 pingf...@linux.vnet.ibm.com Collect unused object and release them at caller demand. Please explain the

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 pbonz...@redhat.com wrote: Il 08/08/2012 08:25, Liu Ping Fan ha scritto: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Collect unused object and release them at caller demand. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com ---

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 the

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 -- radix or

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

2012-08-08 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com Collect unused object and release them at caller demand. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- include/qemu/reclaimer.h | 28 ++ main-loop.c |5 qemu-tool.c |5

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 pingf...@linux.vnet.ibm.com 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

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 pingf...@linux.vnet.ibm.com 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

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 pingf...@linux.vnet.ibm.com 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

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 pingf...@linux.vnet.ibm.com Collect unused object and release them at caller demand. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- include/qemu/reclaimer.h | 28 ++ main-loop.c