aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers/char/console.c
diff options
context:
space:
mode:
authorAndrew Cooper <andrew.cooper3@citrix.com>2012-01-28 13:41:42 +0000
committerAndrew Cooper <andrew.cooper3@citrix.com>2012-01-28 13:41:42 +0000
commit2ccae182ee2513d7e132fde0523206c40c159d56 (patch)
tree87b3fa63fc0a8a4639c0153ffca5e99bbb512acc /xen/drivers/char/console.c
parent90803ac5c9354fc5cb8042b494a53fa083b672e8 (diff)
downloadxen-2ccae182ee2513d7e132fde0523206c40c159d56.tar.gz
xen-2ccae182ee2513d7e132fde0523206c40c159d56.tar.bz2
xen-2ccae182ee2513d7e132fde0523206c40c159d56.zip
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> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/drivers/char/console.c')
-rw-r--r--xen/drivers/char/console.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index 89cf4f8455..a417070194 100644
--- 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 )
{