From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: console: introduce console=none option Date: Thu, 26 Jan 2012 12:19:58 +0000 Message-ID: <4F2144EE.9040808@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020509060709040701050600" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --------------020509060709040701050600 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit 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 --------------020509060709040701050600 Content-Type: text/x-patch; name="console-param-none.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="console-param-none.patch" Console: introduce console=none command line parameter Currenty, not specifying 'console=' 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 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 ) { --------------020509060709040701050600 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------020509060709040701050600--