Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-09 Thread liu ping fan
On Thu, May 9, 2013 at 10:50 PM, Paolo Bonzini wrote: > Il 09/05/2013 02:53, liu ping fan ha scritto: >> On Wed, May 8, 2013 at 11:44 PM, Paolo Bonzini wrote: >>> Il 08/05/2013 08:20, liu ping fan ha scritto: On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini wrote: > Hi, > > this i

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-09 Thread Paolo Bonzini
Il 09/05/2013 02:53, liu ping fan ha scritto: > On Wed, May 8, 2013 at 11:44 PM, Paolo Bonzini wrote: >> Il 08/05/2013 08:20, liu ping fan ha scritto: >>> On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini wrote: Hi, this is an alternative approach to refactoring of dataplane's HostMem

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-08 Thread liu ping fan
On Wed, May 8, 2013 at 11:44 PM, Paolo Bonzini wrote: > Il 08/05/2013 08:20, liu ping fan ha scritto: >> On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini wrote: >>> Hi, >>> >>> this is an alternative approach to refactoring of dataplane's HostMem >>> code. Here, I take Ping Fan's idea of RCU-style

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-08 Thread Paolo Bonzini
Il 08/05/2013 08:20, liu ping fan ha scritto: > On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini wrote: >> Hi, >> >> this is an alternative approach to refactoring of dataplane's HostMem >> code. Here, I take Ping Fan's idea of RCU-style updating of the >> region list and apply it to the AddressSpa

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-08 Thread Stefan Hajnoczi
On Mon, May 06, 2013 at 04:25:13PM +0200, Paolo Bonzini wrote: > this is an alternative approach to refactoring of dataplane's HostMem > code. Here, I take Ping Fan's idea of RCU-style updating of the > region list and apply it to the AddressSpace's FlatView. With this > change, dataplane can sim

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-08 Thread Stefan Hajnoczi
On Mon, May 06, 2013 at 04:25:13PM +0200, Paolo Bonzini wrote: > this is an alternative approach to refactoring of dataplane's HostMem > code. Here, I take Ping Fan's idea of RCU-style updating of the > region list and apply it to the AddressSpace's FlatView. With this > change, dataplane can sim

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-07 Thread liu ping fan
On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini wrote: > Hi, > > this is an alternative approach to refactoring of dataplane's HostMem > code. Here, I take Ping Fan's idea of RCU-style updating of the > region list and apply it to the AddressSpace's FlatView. With this In fact, I am worrying abo

[Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-06 Thread Paolo Bonzini
Hi, this is an alternative approach to refactoring of dataplane's HostMem code. Here, I take Ping Fan's idea of RCU-style updating of the region list and apply it to the AddressSpace's FlatView. With this change, dataplane can simply use memory_region_find instead of hostmem. This is a somewhat