mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
7e1b35b44c
commit
c845f40149
3 changed files with 20 additions and 0 deletions
|
@ -130,6 +130,9 @@ QemuOptsList qemu_chardev_opts = {
|
|||
},{
|
||||
.name = "rows",
|
||||
.type = QEMU_OPT_NUMBER,
|
||||
},{
|
||||
.name = "mux",
|
||||
.type = QEMU_OPT_BOOL,
|
||||
},
|
||||
{ /* end if list */ }
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue