On Thu, Jul 26, 2012 at 9:15 PM, Avi Kivity <a...@redhat.com> wrote: > On 07/26/2012 04:14 PM, liu ping fan wrote: >>> >>> From the description above, I don't see why it can't be a mutex. >>> >> Searching in the device tree (or MemoryRegion view) can be often in >> parallel, especially in mmio-dispatch code path > > In mmio dispatch we have a pointer to the object, we don't need to > search anything. Is device tree search a hot path? > I think, we need lock to protect searching --phys_page_find() from deleter--DeviceClass:unmap, so rwlock? > > -- > error compiling committee.c: too many arguments to function > >
- [Qemu-devel] [PATCH 0/5] prepare unplug out of protection ... Liu Ping Fan
- [Qemu-devel] [PATCH 1/5] qom: adopt rwlock to protect... Liu Ping Fan
- Re: [Qemu-devel] [PATCH 1/5] qom: adopt rwlock to... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 1/5] qom: adopt rwloc... liu ping fan
- Re: [Qemu-devel] [PATCH 1/5] qom: adopt r... Avi Kivity
- Re: [Qemu-devel] [PATCH 1/5] qom: ad... liu ping fan
- Re: [Qemu-devel] [PATCH 1/5] qom... Avi Kivity
- Re: [Qemu-devel] [PATCH 1/5]... liu ping fan
- Re: [Qemu-devel] [PATCH 1/5]... Avi Kivity
- [Qemu-devel] [PATCH 2/5] exec.c: use refcnt to protec... Liu Ping Fan
- Re: [Qemu-devel] [PATCH 2/5] exec.c: use refcnt t... Stefan Hajnoczi
- Re: [Qemu-devel] [PATCH 2/5] exec.c: use refc... liu ping fan
- Re: [Qemu-devel] [PATCH 2/5] exec.c: use ... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 2/5] exec.c:... liu ping fan
- Re: [Qemu-devel] [PATCH 2/5] exec.c: use refcnt t... Avi Kivity
- Re: [Qemu-devel] [PATCH 2/5] exec.c: use refc... Avi Kivity
- Re: [Qemu-devel] [PATCH 2/5] exec.c: use ... liu ping fan
- Re: [Qemu-devel] [PATCH 2/5] exec.c:... Avi Kivity