diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-10 10:58:52 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-11 10:19:49 -0500 |
commit | c845f401497ff0995ece2b3df628808cf6d74dbe (patch) | |
tree | 7d18514ad5264799715afa2fd4efece0612cf73a /qemu-config.c | |
parent | convert udp chardev to QemuOpts. (diff) | |
download | qemu-kvm-c845f401497ff0995ece2b3df628808cf6d74dbe.tar.gz qemu-kvm-c845f401497ff0995ece2b3df628808cf6d74dbe.tar.bz2 qemu-kvm-c845f401497ff0995ece2b3df628808cf6d74dbe.zip |
Allow -serial chardev:<name>
Lets put -chardev into use now. With this patch applied chardev:name is
accepted as chardev specification everywhere, i.e. now you can:
-chardev stdio,id=ttyS0
-serial chardev:ttyS0
which does the same as '-serial stdio".
Muxing can be done this way:
-chardev stdio,id=mux,mux=on
-serial chardev:mux
-monitor chardev:mux
You can mux more than two streams.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index 8404f1b4b..f6f4cb482 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -130,6 +130,9 @@ QemuOptsList qemu_chardev_opts = { },{ .name = "rows", .type = QEMU_OPT_NUMBER, + },{ + .name = "mux", + .type = QEMU_OPT_BOOL, }, { /* end if list */ } }, |