Re: [Qemu-devel] [PATCH v4 3/5] exec: Protect map_client_list with mutex

2015-03-16 Thread Paolo Bonzini
On 16/03/2015 10:03, Fam Zheng wrote: > +void cpu_exec_init_all(void) > +{ > +#if !defined(CONFIG_USER_ONLY) > +qemu_mutex_init(&ram_list.mutex); > +memory_map_init(); > +io_mem_init(); > +#endif The #if is now unnecessary, but I can fix this. I'll queue the patch for 2.4. Paolo >

[Qemu-devel] [PATCH v4 3/5] exec: Protect map_client_list with mutex

2015-03-16 Thread Fam Zheng
So that accesses from multiple threads are safe. Signed-off-by: Fam Zheng --- exec.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/exec.c b/exec.c index 8d21eff..9f6c4f8 100644 --- a/exec.c +++ b/exec.c @@ -429,15 +429,6 @@ address_space_translate_