summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-12-08 13:11:51 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-12 07:59:43 -0600
commit22a0e04b9bb5a02e13b3e5cf5ea8abfac5f34120 (patch)
tree79c348724dd9bff41d27a11800e5270e06f2a22e /vl.c
parent88589343708f10f1ded0af100b2e11eec623bae2 (diff)
downloadhqemu-22a0e04b9bb5a02e13b3e5cf5ea8abfac5f34120.zip
hqemu-22a0e04b9bb5a02e13b3e5cf5ea8abfac5f34120.tar.gz
add new -mon switch
Add -mon switch which maps pretty straight forward into the QemuOpts internal representation: -mon chardev=<name>[,mode=[control|readline]][,[no]default] Via config file: [mon] chardev = "<name>" mode = "readline" default = "on" Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index bb9ffd3..d90975f 100644
--- a/vl.c
+++ b/vl.c
@@ -5284,6 +5284,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) {
OpenPOWER on IntegriCloud