All of lore.kernel.org
 help / color / mirror / Atom feed
* xen: Make hvc0 the preferred console in domU
@ 2008-02-27 13:56 Markus Armbruster
  2008-03-31  6:36 ` Jeremy Fitzhardinge
  2008-03-31  6:36 ` Jeremy Fitzhardinge
  0 siblings, 2 replies; 12+ messages in thread
From: Markus Armbruster @ 2008-02-27 13:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: virtualization, Jeremy Fitzhardinge, mingo

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>

---
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 49e5358..df63185 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -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>
@@ -1209,6 +1210,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();
 }

^ permalink raw reply related	[flat|nested] 12+ messages in thread
* xen: Make hvc0 the preferred console in domU
@ 2008-02-27 13:56 Markus Armbruster
  0 siblings, 0 replies; 12+ messages in thread
From: Markus Armbruster @ 2008-02-27 13:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, virtualization

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>

---
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 49e5358..df63185 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -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>
@@ -1209,6 +1210,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();
 }

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-04-02 17:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-27 13:56 xen: Make hvc0 the preferred console in domU Markus Armbruster
2008-03-31  6:36 ` Jeremy Fitzhardinge
2008-03-31  8:27   ` Markus Armbruster
2008-03-31  8:27   ` Markus Armbruster
2008-04-02 14:56   ` Markus Armbruster
2008-04-02 16:21     ` Jeremy Fitzhardinge
2008-04-02 17:01       ` Markus Armbruster
2008-04-02 17:01       ` Markus Armbruster
2008-04-02 16:21     ` Jeremy Fitzhardinge
2008-04-02 14:56   ` Markus Armbruster
2008-03-31  6:36 ` Jeremy Fitzhardinge
  -- strict thread matches above, loose matches on Subject: below --
2008-02-27 13:56 Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.