From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXS29-0007PH-Aw for qemu-devel@nongnu.org; Mon, 16 Mar 2015 06:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXS23-0006C0-BX for qemu-devel@nongnu.org; Mon, 16 Mar 2015 06:14:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXS23-0006Bi-43 for qemu-devel@nongnu.org; Mon, 16 Mar 2015 06:13:59 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2GADwjk003989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 16 Mar 2015 06:13:58 -0400 Message-ID: <5506ACE2.2070002@redhat.com> Date: Mon, 16 Mar 2015 11:13:54 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1426496617-10702-1-git-send-email-famz@redhat.com> <1426496617-10702-4-git-send-email-famz@redhat.com> In-Reply-To: <1426496617-10702-4-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 3/5] exec: Protect map_client_list with mutex List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org 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_mutex_init(&map_client_list_lock);