[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/15] memory: introduce life_ops to MemoryRegio
From: |
Avi Kivity |
Subject: |
Re: [Qemu-devel] [PATCH 05/15] memory: introduce life_ops to MemoryRegion |
Date: |
Wed, 08 Aug 2012 12:18:12 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
On 08/08/2012 09:25 AM, Liu Ping Fan wrote:
> From: Liu Ping Fan <address@hidden>
>
> The types of referred object by MemoryRegion are variable, ex,
> another mr, DeviceState, or other struct defined by drivers.
> So the refer/unrefer may be different by drivers.
>
> Using this ops, we can mange the backend object.
>
Seems to be a needless abstration - we already have lifetime manangement
for objects.
I suggested previously to replace the opaque parameter with an Object,
and use Object's refcounting. That's a lot of work, but IMO is worth it
as the opaques are dangerous to live lying around.
--
error compiling committee.c: too many arguments to function
[Qemu-devel] [PATCH 05/15] memory: introduce life_ops to MemoryRegion, Liu Ping Fan, 2012/08/08
- Re: [Qemu-devel] [PATCH 05/15] memory: introduce life_ops to MemoryRegion,
Avi Kivity <=
[Qemu-devel] [PATCH 06/15] memory: use refcnt to manage MemoryRegion, Liu Ping Fan, 2012/08/08
[Qemu-devel] [PATCH 10/15] memory: change tcg related code to using PhysMap, Liu Ping Fan, 2012/08/08
[Qemu-devel] [PATCH 09/15] memory: prepare flatview and radix-tree for rcu style access, Liu Ping Fan, 2012/08/08