qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC] 2nd serial port by default
@ 2008-12-07 21:05 Hervé Poussineau
  2008-12-08 12:26 ` Paul Brook
  0 siblings, 1 reply; 3+ messages in thread
From: Hervé Poussineau @ 2008-12-07 21:05 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

Hi,

Most computers have 0 or 2 serial ports, but Qemu only allocates one by 
default.
Attached patch defines 2 serial ports by default, instead of one.
Previous behaviour can be done with "-serial vc:80Cx24C -serial none" 
argument.

Please comment

Hervé

[-- Attachment #2: 2serial_ports.diff --]
[-- Type: plain/text, Size: 412 bytes --]

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

* Re: [Qemu-devel] [RFC] 2nd serial port by default
  2008-12-07 21:05 [Qemu-devel] [RFC] 2nd serial port by default Hervé Poussineau
@ 2008-12-08 12:26 ` Paul Brook
  2008-12-12 23:10   ` Stuart Brady
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Brook @ 2008-12-08 12:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Hervé Poussineau

On Sunday 07 December 2008, Hervé Poussineau wrote:
> Hi,
>
> Most computers have 0 or 2 serial ports, but Qemu only allocates one by
> default.
> Attached patch defines 2 serial ports by default, instead of one.
> Previous behaviour can be done with "-serial vc:80Cx24C -serial none"
> argument.
>
> Please comment

I'm not sure where you're getting "most" from, or your justification for this 
change.

A quick survey here indicates that most workstation/server class hardware has 
a single accessible serial port, and embedded boards commonly have 3 or 4.

In practice I'd expect that by far the most common use for serial ports is a 
serial console, and one is more than sufficient for that. If you want to do 
anything else then you're probably going to need special -serial options 
anyway.

Paul

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

* Re: [Qemu-devel] [RFC] 2nd serial port by default
  2008-12-08 12:26 ` Paul Brook
@ 2008-12-12 23:10   ` Stuart Brady
  0 siblings, 0 replies; 3+ messages in thread
From: Stuart Brady @ 2008-12-12 23:10 UTC (permalink / raw)
  To: qemu-devel

On Mon, Dec 08, 2008 at 12:26:40PM +0000, Paul Brook wrote:
> In practice I'd expect that by far the most common use for serial ports is a 
> serial console, and one is more than sufficient for that. If you want to do 
> anything else then you're probably going to need special -serial options 
> anyway.

The issue here is that the MIPS Magnum has two serial ports, and its
firmware checks that both serial ports are functioning and complains
if either of them is not.  If the user only needs a single serial port,
then they currently have to pass '-serial null' for the second port.

IMO, the default number of ports that are emulated should depend on the
machine that is being emulated.

Cheers,
-- 
Stuart Brady

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

end of thread, other threads:[~2008-12-12 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-07 21:05 [Qemu-devel] [RFC] 2nd serial port by default Hervé Poussineau
2008-12-08 12:26 ` Paul Brook
2008-12-12 23:10   ` Stuart Brady

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).