xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* console: introduce console=none option
@ 2012-01-26 12:19 Andrew Cooper
  2012-01-26 14:41 ` Jan Beulich
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cooper @ 2012-01-26 12:19 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

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

XenServer by default boots without a serial console (buggy hardware
reasons) and dom0 displays a splash screen.  Unfortunately, having Xen
writing to the vga text area looks ugly whilst dom0 is trying to set up
non-text mode and display  the splash screen.

We have been using "console=" to prevent this behavior for a while, but
presented herewith is a patch to fix the problem correctly.

~Andrew


[-- Attachment #2: console-param-none.patch --]
[-- Type: text/x-patch, Size: 1098 bytes --]

Console: introduce console=none command line parameter

Currenty, not specifying 'console=<foo>' on the command line causes
Xen to default to 'vga'.  Alternativly, the user can explicitly
specifiy 'console=vga|com1|com2'.

However, there is no way to specify that neither vga nor serial should
be used.  Specifying 'console=' does have the effect that neither vga
nor serial is set up, but at the cost of an "Bad console= option ''"
warning.

Therefore, expliticly support a 'console=none' option which does not
set up vga and does not set up serial, but does not trigger the bad
console warning.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

diff -r a2a8089b1ffb xen/drivers/char/console.c
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -549,6 +549,8 @@ void __init console_init_preirq(void)
             p++;
         if ( !strncmp(p, "vga", 3) )
             vga_init();
+        else if ( !strncmp(p, "none", 4) )
+            continue;
         else if ( strncmp(p, "com", 3) ||
                   (sercon_handle = serial_parse_handle(p)) == -1 )
         {

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2012-01-26 16:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 12:19 console: introduce console=none option Andrew Cooper
2012-01-26 14:41 ` Jan Beulich
2012-01-26 14:58   ` Andrew Cooper
2012-01-26 16:00     ` Jan Beulich
2012-01-26 16:08       ` Tim Deegan
2012-01-26 16:09       ` Ian Campbell
2012-01-26 16:33       ` Andrew Cooper

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