From: Markus Armbruster Date: Wed, 27 Feb 2008 13:56:35 +0000 (+0100) Subject: xen: make hvc0 the preferred console in domU X-Git-Tag: v3.12-rc1~22029^2~506 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8c2d3dfbc117dff26058fbac316b8acfc2cb5f7;p=kernel%2Fkernel-generic.git xen: make hvc0 the preferred console in domU 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 Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 27ee26a..198db49 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -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(); }