Received: from [140.186.70.92] (port=56172 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIOIT-0004LU-V6 for qemu-devel@nongnu.org; Sat, 29 May 2010 11:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIHD6-0002vu-T2 for qemu-devel@nongnu.org; Sat, 29 May 2010 04:16:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50328) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIHD6-0002vh-LO for qemu-devel@nongnu.org; Sat, 29 May 2010 04:16:00 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH v3 13/17] monitor: Allow to exclude commands from QMP References: <5d0139dc62706a1efcbb6a63d5936484ad279916.1274612367.git.jan.kiszka@web.de> <20100527173147.304ee68b@redhat.com> Date: Sat, 29 May 2010 10:15:51 +0200 In-Reply-To: <20100527173147.304ee68b@redhat.com> (Luiz Capitulino's message of "Thu, 27 May 2010 17:31:47 -0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Anthony Liguori , Juan Quintela , Jan Kiszka , qemu-devel@nongnu.org, Blue Swirl , Jan Kiszka , Avi Kivity , Markus@redhat.com Luiz Capitulino writes: > On Sun, 23 May 2010 12:59:26 +0200 > Jan Kiszka wrote: > >> From: Jan Kiszka >> >> Ported commands that are marked 'user_only' will not be considered for >> QMP monitor sessions. This allows to implement new commands that do not >> (yet) provide a sufficiently stable interface for QMP use (e.g. >> device_show). > > This is fine for me, but two things I've been wondering: > > 1. Isn't a 'flags' struct member better? So that we can do (in the > qemu-monitor.hx entry): > > .flags = MONITOR_USER_ONLY | MONITOR_HANDLER_ASYNC, > > I'm not suggesting this is an async handler, just exemplifying multiple > flags. We also have at least one command that makes only sense in QMP: qmp_capabilities. Maybe we could use separate flags controlling command availability in human monitor and QMP. [...]