[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [FOR 0.12 PATCH v3 18/21] add new -mon switch
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [FOR 0.12 PATCH v3 18/21] add new -mon switch |
Date: |
Mon, 7 Dec 2009 13:42:50 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
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
address@hidden -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
- [Qemu-devel] Re: [FOR 0.12 PATCH v3 20/21] default devices: virtio consoles., (continued)
- [Qemu-devel] [FOR 0.12 PATCH v3 16/21] un-static qemu_chr_parse_compat(), Gerd Hoffmann, 2009/12/07
- [Qemu-devel] [FOR 0.12 PATCH v3 17/21] rework -monitor handling, switch to QemuOpts, Gerd Hoffmann, 2009/12/07
- [Qemu-devel] [FOR 0.12 PATCH v3 21/21] Set default console to virtio on S390x, Gerd Hoffmann, 2009/12/07
- [Qemu-devel] [FOR 0.12 PATCH v3 19/21] add -qmp convinience switch, Gerd Hoffmann, 2009/12/07
- [Qemu-devel] [FOR 0.12 PATCH v3 14/21] qdev: add command line option to set global defaults for properties., Gerd Hoffmann, 2009/12/07
- [Qemu-devel] [FOR 0.12 PATCH v3 18/21] add new -mon switch,
Gerd Hoffmann <=