From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHcx1-0005VG-O2 for qemu-devel@nongnu.org; Mon, 07 Dec 2009 07:44:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHcwr-0005Nt-J1 for qemu-devel@nongnu.org; Mon, 07 Dec 2009 07:44:24 -0500 Received: from [199.232.76.173] (port=58687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHcwp-0005Me-T4 for qemu-devel@nongnu.org; Mon, 07 Dec 2009 07:44:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1276) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHcwp-0000hJ-Ds for qemu-devel@nongnu.org; Mon, 07 Dec 2009 07:44:15 -0500 From: Gerd Hoffmann Date: Mon, 7 Dec 2009 13:42:50 +0100 Message-Id: <1260189773-20728-19-git-send-email-kraxel@redhat.com> In-Reply-To: <1260189773-20728-1-git-send-email-kraxel@redhat.com> References: <1260189773-20728-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [FOR 0.12 PATCH v3 18/21] add new -mon switch List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , agraf@suse.de, lcapitulino@redhat.com Signed-off-by: Gerd Hoffmann --- qemu-options.hx | 7 +++++++ vl.c | 8 ++++++++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index e05b2a0..7234447 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1589,6 +1589,13 @@ The default device is @code{vc} in graphical mode and @code{stdio} in non graphical mode. ETEXI +DEF("mon", HAS_ARG, QEMU_OPTION_mon, \ + "-mon chardev=[name][,mode=readline|control][,default]\n") +STEXI +@item -mon chardev=[name][,mode=readline|control][,default] +Setup monitor on chardev @var{name}. +ETEXI + DEF("pidfile", HAS_ARG, QEMU_OPTION_pidfile, \ "-pidfile file write PID to 'file'\n") STEXI diff --git a/vl.c b/vl.c index 11910ac..6411bd6 100644 --- a/vl.c +++ b/vl.c @@ -5286,6 +5286,14 @@ int main(int argc, char **argv, char **envp) monitor_parse(optarg); default_monitor = 0; break; + case QEMU_OPTION_mon: + opts = qemu_opts_parse(&qemu_mon_opts, optarg, "chardev"); + if (!opts) { + fprintf(stderr, "parse error: %s\n", optarg); + exit(1); + } + default_monitor = 0; + break; case QEMU_OPTION_chardev: opts = qemu_opts_parse(&qemu_chardev_opts, optarg, "backend"); if (!opts) { -- 1.6.5.2