qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, s


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 3/6] virtio-console: Add a virtio-console bus, support for multiple ports
Date: Thu, 01 Oct 2009 14:15:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

  Hi,

So we will have to spawn a console port at id 0 when the bus is
initialised.

There are a couple of problems though:
- How to identify which chardev to associate the port#0 with?

I'd suggest to give the serial-bus a chardev attribute, which is then simply passed through, i.e.

  -device virtio-serial-bus,chardev=<name>

automatically creates a virtioconsole with port=0 and chardev=<name> on the newly created bus.

- If there is a virtioconsole device specified on the command line,
   should that be used as port0? Or should that mean we spawn two
   consoles?

Two consoles.

I guess for both these cases, some special command line tweaks will be
needed? Or keep the old '-virtioconsole' parameter and put that up as
port0?

See above.

Keeping -virtioconsole for backward compatibility is easy, it would basically create a chardev with a virtio<nr> label as it does today, then create virtio-serial-bus with chardev=virtio<nr>.

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]