Skip to content

Commit

Permalink
xen: make hvc0 the preferred console in domU
Browse files Browse the repository at this point in the history
This makes the Xen console just work.  Before, you had to ask for it
on the kernel command line with console=hvc0

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Markus Armbruster authored and Ingo Molnar committed Apr 17, 2008
1 parent 78a9909 commit b8c2d3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/mm.h>
#include <linux/page-flags.h>
#include <linux/highmem.h>
#include <linux/console.h>

#include <xen/interface/xen.h>
#include <xen/interface/physdev.h>
Expand Down Expand Up @@ -1228,6 +1229,9 @@ asmlinkage void __init xen_start_kernel(void)
? __pa(xen_start_info->mod_start) : 0;
boot_params.hdr.ramdisk_size = xen_start_info->mod_len;

if (!is_initial_xendomain())
add_preferred_console("hvc", 0, NULL);

/* Start the world */
start_kernel();
}

0 comments on commit b8c2d3d

Please sign in to comment.