Received: from eggs.gnu.org ([2001:4830:134:3::10]:44538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQvqf-0000Il-Av for qemu-devel@nongnu.org; Thu, 07 Jun 2018 10:25:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQvqb-0005QG-Db for qemu-devel@nongnu.org; Thu, 07 Jun 2018 10:25:09 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59274 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQvqb-0005Pv-8V for qemu-devel@nongnu.org; Thu, 07 Jun 2018 10:25:05 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7CEEE401DEC2 for ; Thu, 7 Jun 2018 14:25:04 +0000 (UTC) From: Markus Armbruster References: <20180529055755.12404-1-peterx@redhat.com> <20180529055755.12404-2-peterx@redhat.com> Date: Thu, 07 Jun 2018 16:24:54 +0200 In-Reply-To: <20180529055755.12404-2-peterx@redhat.com> (Peter Xu's message of "Tue, 29 May 2018 13:57:49 +0800") Message-ID: <87lgbqu11l.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v9 1/7] monitor: rename out_lock to mon_lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: qemu-devel@nongnu.org, "Dr . David Alan Gilbert" , Stefan Hajnoczi , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Peter Xu writes: > The out_lock is protecting a few Monitor fields. In the future the > monitor code will start to run in multiple threads. We are going to > turn it into a bigger lock to protect not only the out buffer but also > most of the rest. > > Since at it, rearrange the Monitor struct a bit. > > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Peter Xu Reviewed-by: Markus Armbruster