From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufa8C-0005JF-Ux for qemu-devel@nongnu.org; Thu, 23 May 2013 14:20:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufa85-0003Wm-Pe for qemu-devel@nongnu.org; Thu, 23 May 2013 14:20:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufa85-0003Wd-Cc for qemu-devel@nongnu.org; Thu, 23 May 2013 14:20:45 -0400 From: Luiz Capitulino Date: Thu, 23 May 2013 14:20:32 -0400 Message-Id: <1369333232-24145-13-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1369333232-24145-1-git-send-email-lcapitulino@redhat.com> References: <1369333232-24145-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PULL 12/12] monitor: allow to disable the default monitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com Signed-off-by: Luiz Capitulino --- qemu-options.hx | 1 + vl.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index fb3961d..bf94862 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -2528,6 +2528,7 @@ Redirect the monitor to host device @var{dev} (same devices as the serial port). The default device is @code{vc} in graphical mode and @code{stdio} in non graphical mode. +Use @code{-monitor none} to disable the default monitor. ETEXI DEF("qmp", HAS_ARG, QEMU_OPTION_qmp, \ "-qmp dev like -monitor but opens in 'control' mode\n", diff --git a/vl.c b/vl.c index 59dc0b4..510d2c2 100644 --- a/vl.c +++ b/vl.c @@ -3366,8 +3366,10 @@ int main(int argc, char **argv, char **envp) break; } case QEMU_OPTION_monitor: - monitor_parse(optarg, "readline"); default_monitor = 0; + if (strncmp(optarg, "none", 4)) { + monitor_parse(optarg, "readline"); + } break; case QEMU_OPTION_qmp: monitor_parse(optarg, "control"); -- 1.8.1.4