Re: [Qemu-devel] [PATCH v7 5/7] memory: make mmio dispatch able to be out of biglock

2013-05-06 Thread Paolo Bonzini
Il 25/11/2012 03:03, Liu Ping Fan ha scritto: @@ -3550,12 +3668,11 @@ void *address_space_map(AddressSpace *as, target_phys_addr_t *plen, bool is_write) { -AddressSpaceDispatch *d = as-dispatch; target_phys_addr_t len = *plen;

Re: [Qemu-devel] [PATCH v7 5/7] memory: make mmio dispatch able to be out of biglock

2013-05-06 Thread Jan Kiszka
On 2013-05-06 13:21, Paolo Bonzini wrote: Il 25/11/2012 03:03, Liu Ping Fan ha scritto: @@ -3550,12 +3668,11 @@ void *address_space_map(AddressSpace *as, target_phys_addr_t *plen, bool is_write) { -AddressSpaceDispatch *d = as-dispatch;

Re: [Qemu-devel] [PATCH v7 5/7] memory: make mmio dispatch able to be out of biglock

2013-05-06 Thread Paolo Bonzini
Il 06/05/2013 13:25, Jan Kiszka ha scritto: On 2013-05-06 13:21, Paolo Bonzini wrote: Il 25/11/2012 03:03, Liu Ping Fan ha scritto: @@ -3550,12 +3668,11 @@ void *address_space_map(AddressSpace *as, target_phys_addr_t *plen, bool is_write) {

[Qemu-devel] [PATCH v7 5/7] memory: make mmio dispatch able to be out of biglock

2012-11-24 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com Without biglock, we try to protect the mr by increase refcnt. If we cannot inc refcnt, go backward and resort to biglock. Another point is memory radix-tree can be flushed by another thread, so we should get the copy of terminal mr to survive from