Received: from eggs.gnu.org ([2001:4830:134:3::10]:58387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxBTH-0006fY-PZ for qemu-devel@nongnu.org; Tue, 26 May 2015 05:48:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxBTE-00086R-Jn for qemu-devel@nongnu.org; Tue, 26 May 2015 05:48:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxBTE-00086F-CC for qemu-devel@nongnu.org; Tue, 26 May 2015 05:48:24 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4Q9mKju017699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 26 May 2015 05:48:22 -0400 From: Markus Armbruster References: <1432294585-5984-1-git-send-email-armbru@redhat.com> <1432294585-5984-17-git-send-email-armbru@redhat.com> <555FB345.3070402@redhat.com> Date: Tue, 26 May 2015 11:48:18 +0200 In-Reply-To: <555FB345.3070402@redhat.com> (Eric Blake's message of "Fri, 22 May 2015 16:52:53 -0600") Message-ID: <87siajd5zx.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 16/20] monitor: Unbox Monitor member mc and rename to qmp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, lcapitulino@redhat.com Eric Blake writes: > On 05/22/2015 05:36 AM, Markus Armbruster wrote: >> While there, rename its type as well, from MonitorControl to >> MonitorQMP. >> >> Signed-off-by: Markus Armbruster >> --- >> monitor.c | 35 ++++++++++++++++------------------- >> 1 file changed, 16 insertions(+), 19 deletions(-) >> > >> @@ -5255,14 +5255,11 @@ void monitor_init(CharDriverState *chr, int flags) >> monitor_read_command(mon, 0); >> } >> >> - if (monitor_ctrl_mode(mon)) { >> - mon->mc = g_malloc0(sizeof(MonitorControl)); >> - /* Control mode requires special handlers */ >> + if (flags & MONITOR_USE_CONTROL) { > > You also inlined this use of monitor_ctrl_mode; worth mentioning in the > commit message? Or should it have been swapped to monitor_is_qmp() in > patch 19? I'll do either one or the other. > Reviewed-by: Eric Blake Thanks!