From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYFLI-0008Vc-7S for qemu-devel@nongnu.org; Wed, 18 Mar 2015 10:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYFLF-0001II-2l for qemu-devel@nongnu.org; Wed, 18 Mar 2015 10:53:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYFLE-0001IE-Uh for qemu-devel@nongnu.org; Wed, 18 Mar 2015 10:53:05 -0400 Message-ID: <5509914C.5010902@redhat.com> Date: Wed, 18 Mar 2015 15:53:00 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1426684909-95030-1-git-send-email-pbonzini@redhat.com> <1426684909-95030-7-git-send-email-pbonzini@redhat.com> <55098CBE.8030003@siemens.com> In-Reply-To: <55098CBE.8030003@siemens.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 6/8] exec: mark unassigned_io_ops as unlocked List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka , qemu-devel@nongnu.org On 18/03/2015 15:33, Jan Kiszka wrote: > On 2015-03-18 14:21, Paolo Bonzini wrote: >> Signed-off-by: Paolo Bonzini > > A commit log should briefly state why we can do this safely (no state > dependency, no need for locking). Yes, it's trivial in this case but > already a little bit less trivial in case of the PM timer. Guilty as charged... Paolo >> --- >> exec.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/exec.c b/exec.c >> index d60abfc..c1a2e9e 100644 >> --- a/exec.c >> +++ b/exec.c >> @@ -2197,6 +2197,7 @@ static void memory_map_init(void) >> system_io = g_malloc(sizeof(*system_io)); >> memory_region_init_io(system_io, NULL, &unassigned_io_ops, NULL, "io", >> 65536); >> + memory_region_clear_global_locking(system_io); >> address_space_init(&address_space_io, system_io, "I/O"); >> >> memory_listener_register(&core_memory_listener, &address_space_memory); >> > > Jan >