How to create multiplexed chardevs?
Hi Gerd,
I think you mostly worked on this:
How to specify -serial mon:stdio using the new syntax? I just ran into the problem having to define a serial port via -device isa-serial but wanting its terminal multiplexed with a monitor. -chardev mon:stdio is not understood.
BTW, there is are thousand ways of shooting yourself into the foot (up to crashing qemu) by accidentally combining old and new-style options. I think we should catch and forbid any mixture instead of generating error messages like this:
qemu-system-x86_64 -mon monitor -chardev stdio,id=monitor -monitor vc tried to create id "monitor" twice for "chardev"
parse error: vc
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 8 lines · Jan Kiszka
Hi Gerd,
I think you mostly worked on this:
How to specify -serial mon:stdio using the new syntax? I just ran into the problem having to define a serial port via -device isa-serial but wanting its terminal multiplexed with a monitor. -chardev mon:stdio is not understood.
-chardev stdio,id=x,mux=on
-device isa-serial,chardev=x
-mon chardev=x
Isn't limited to serial+monitor btw, you can mux everything with up to four users.
HTH,
Gerd
Quoted 14 lines · Gerd Hoffmann
Quoted 8 lines · Jan Kiszka
Hi Gerd,
I think you mostly worked on this:
How to specify -serial mon:stdio using the new syntax? I just ran into the problem having to define a serial port via -device isa-serial but wanting its terminal multiplexed with a monitor. -chardev mon:stdio is not understood.
(quoted diff) +0
-3-chardev stdio,id=x,mux=on -device isa-serial,chardev=x -mon chardev=x
Quoted 2 lines
Isn't limited to serial+monitor btw, you can mux everything with up to four users.
Almost perfect. I missed it as I was too lazy to look into the sources (aka: documentation missing :) ). And it starts the monitor enabled which should be fixed to keep it off until CTRL-A-C just like it used to be with "mon:".
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux