qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to create multiplexed chardevs?
@ 2010-03-22 16:39 Jan Kiszka
  2010-03-22 17:06 ` [Qemu-devel] " Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2010-03-22 16:39 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

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

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: How to create multiplexed chardevs?
  2010-03-22 16:39 [Qemu-devel] How to create multiplexed chardevs? Jan Kiszka
@ 2010-03-22 17:06 ` Gerd Hoffmann
  2010-03-22 17:15   ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2010-03-22 17:06 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

On 03/22/10 17:39, Jan Kiszka wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] Re: How to create multiplexed chardevs?
  2010-03-22 17:06 ` [Qemu-devel] " Gerd Hoffmann
@ 2010-03-22 17:15   ` Jan Kiszka
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2010-03-22 17:15 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

Gerd Hoffmann wrote:
> On 03/22/10 17:39, Jan Kiszka wrote:
>> 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.

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

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-22 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-22 16:39 [Qemu-devel] How to create multiplexed chardevs? Jan Kiszka
2010-03-22 17:06 ` [Qemu-devel] " Gerd Hoffmann
2010-03-22 17:15   ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).