All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Knorr <kraxel@bytesex.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jeff Dike <jdike@addtoit.com>,
	uml devel <user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] [2.6 patch] terminal/console cleanups
Date: Mon, 7 Jun 2004 16:55:04 +0200	[thread overview]
Message-ID: <20040607145504.GB28285@bytesex.org> (raw)
In-Reply-To: <Pine.GSO.4.58.0406071311230.18235@waterleaf.sonytel.be>

On Mon, Jun 07, 2004 at 01:13:56PM +0200, Geert Uytterhoeven wrote:
> On Mon, 7 Jun 2004, Gerd Knorr wrote:
> > I'm not sure how to deal with that best.
> >
> > Right now in UML /dev/tty[0-8] are simple terminal lines.  /dev/tty0
> > hasn't the special meaning of "current foreground console" as there are
> > simply no virtual consoles.  It is possible to use screen to build a
> > virtual-console like setup in a pure text-based environment, which works
> > pretty good.
> 
> Wouldn't it be more logical to have a separate type of device for UML virtual
> consoles using xterms?

The point of the uml console is that existing apps expecting
/dev/tty[0-8] being present don't cry for help because they don't exist ;)

Creating a separate device type (and thus separate special files) for
them doesn't make much sense.  You can already use virtual serial lines
to get that if you want, and it works better than something completely
new because most distributions know how to handle a serial console.

There are still issues with some apps as they expect several ioctls()
work on /dev/tty[0-9] which don't work inside a UML machine.  Some of
these would likely go away when switching over to ...

> > It likely would also be possible to use CONFIG_VT and create a
> > CONFIG_VT_UMLCON driver instead.  Havn't looked at that.  I hope going
> > that route doesn't mean we'll have to implement something like screen
> > inside the uml kernel ...
> 
> Indeed.

... such a setup.

> > By moving the stderr console code to another source file it should at
> > least be possible to make the uml consoles a compile time option and
> > then be able to use fbcon instead.
> 
> Good. As long as I can have a stderr console and CONFIG_VT, I'm happy.

While thinking about it:  A kernel parameter to disable that at runtime
should work fine as well.  With my patch the uml console is in no way
special any more, it's just a tty driver, skipping the register and
unregister calls when some variable is set should be no problem.

  Gerd

-- 
Smoking Crack Organization


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-06-07 15:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-28 13:58 [uml-devel] [2.6 patch] terminal/console cleanups Gerd Knorr
2004-05-28 16:36 ` [uml-devel] " Jeff Dike
2004-06-06 17:20 ` [uml-devel] " Geert Uytterhoeven
2004-06-07  9:03   ` Gerd Knorr
2004-06-07 11:13     ` Geert Uytterhoeven
2004-06-07 14:55       ` Gerd Knorr [this message]
2004-06-07 22:58     ` Henrik Nordstrom
2004-06-08  8:08       ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040607145504.GB28285@bytesex.org \
    --to=kraxel@bytesex.org \
    --cc=geert@linux-m68k.org \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.