Re: [Qemu-devel] [PATCH v3 19/23] memory: per-AddressSpace dispatch

2012-10-11 Thread Avi Kivity
On 10/11/2012 10:45 AM, liu ping fan wrote: > On Thu, Oct 11, 2012 at 4:31 PM, Avi Kivity wrote: >> On 10/11/2012 05:38 AM, liu ping fan wrote: +void address_space_init_dispatch(AddressSpace *as) +{ +AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1); + +

Re: [Qemu-devel] [PATCH v3 19/23] memory: per-AddressSpace dispatch

2012-10-11 Thread liu ping fan
On Thu, Oct 11, 2012 at 4:31 PM, Avi Kivity wrote: > On 10/11/2012 05:38 AM, liu ping fan wrote: >>> >>> +void address_space_init_dispatch(AddressSpace *as) >>> +{ >>> +AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1); >>> + >>> +d->phys_map = (PhysPageEntry) { .ptr = PHYS_MAP_NOD

Re: [Qemu-devel] [PATCH v3 19/23] memory: per-AddressSpace dispatch

2012-10-11 Thread Avi Kivity
On 10/11/2012 05:38 AM, liu ping fan wrote: >> >> +void address_space_init_dispatch(AddressSpace *as) >> +{ >> +AddressSpaceDispatch *d = g_new(AddressSpaceDispatch, 1); >> + >> +d->phys_map = (PhysPageEntry) { .ptr = PHYS_MAP_NODE_NIL, .is_leaf = 0 >> }; >> +d->listener = (MemoryList

Re: [Qemu-devel] [PATCH v3 19/23] memory: per-AddressSpace dispatch

2012-10-10 Thread liu ping fan
On Wed, Oct 10, 2012 at 12:32 AM, Avi Kivity wrote: > Currently we use a global radix tree to dispatch memory access. This only > works with a single address space; to support multiple address spaces we > make the radix tree a member of AddressSpace (via an intermediate structure > AddressSpaceDi