[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj
From: |
liu ping fan |
Subject: |
Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj |
Date: |
Thu, 9 Aug 2012 15:33:18 +0800 |
On Wed, Aug 8, 2012 at 5:15 PM, Avi Kivity <address@hidden> 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 <address@hidden>
>>>> >
>>>> > 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 to defer destructors (finalizers) to a more
> suitable context. But why is the unref context unsuitable?
>
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 reclaimer --phys_map_release(PhysMap *map)
If we have rcu, it could be elegant to do this.
I think, I should write the commit comment here too, not until the
followed patch.
Regards, pingfan
> I don't see how it relates to RCU, where is the C and the U?
>
> Anyway the list eagerly awaits the explanation.
>
> --
> error compiling committee.c: too many arguments to function
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, (continued)
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Stefan Hajnoczi, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Paolo Bonzini, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Peter Maydell, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Paolo Bonzini, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Avi Kivity, 2012/08/08
[Qemu-devel] [PATCH 02/15] qom: using atomic ops to re-implement object_ref, Liu Ping Fan, 2012/08/08
[Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Liu Ping Fan, 2012/08/08
- Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Avi Kivity, 2012/08/08
- Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Paolo Bonzini, 2012/08/08
- Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Avi Kivity, 2012/08/08
- Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj,
liu ping fan <=
- Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Paolo Bonzini, 2012/08/09
- Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Avi Kivity, 2012/08/09
- Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, liu ping fan, 2012/08/10
Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Paolo Bonzini, 2012/08/08
[Qemu-devel] [PATCH 04/15] memory: MemoryRegion topology must be stable when updating, Liu Ping Fan, 2012/08/08