diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-01-31 11:49:15 +0000 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-01-31 11:49:15 +0000 |
commit | 5cd86e82a03fddc95a81aa1427a67ec0398b47bf (patch) | |
tree | 88b4298c247d9911b65c41319f2438de53de60b4 | |
parent | ec2b1132a15a91975a23dc7dc91f23c71cab6ec5 (diff) | |
download | xen-5cd86e82a03fddc95a81aa1427a67ec0398b47bf.tar.gz xen-5cd86e82a03fddc95a81aa1427a67ec0398b47bf.tar.bz2 xen-5cd86e82a03fddc95a81aa1427a67ec0398b47bf.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>
xen-unstable changeset: 24614:f8c2cf24a26c
xen-unstable date: Sat Jan 28 13:41:42 2012 +0000
-rw-r--r-- | xen/drivers/char/console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 92ab60d282..bd574612c5 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -557,6 +557,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 ) { |