linux/arch/x86/xen
Markus Armbruster 9e124fe16f xen: Enable console tty by default in domU if it's not a dummy
Without console= arguments on the kernel command line, the first
console to register becomes enabled and the preferred console (the one
behind /dev/console).  This is normally tty (assuming
CONFIG_VT_CONSOLE is enabled, which it commonly is).

This is okay as long tty is a useful console.  But unless we have the
PV framebuffer, and it is enabled for this domain, tty0 in domU is
merely a dummy.  In that case, we want the preferred console to be the
Xen console hvc0, and we want it without having to fiddle with the
kernel command line.  Commit b8c2d3dfbc
did that for us.

Since we now have the PV framebuffer, we want to enable and prefer tty
again, but only when PVFB is enabled.  But even then we still want to
enable the Xen console as well.

Problem: when tty registers, we can't yet know whether the PVFB is
enabled.  By the time we can know (xenstore is up), the console setup
game is over.

Solution: enable console tty by default, but keep hvc as the preferred
console.  Change the preferred console to tty when PVFB probes
successfully, unless we've been given console kernel parameters.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-05-27 10:11:36 +02:00
..
enlighten.c xen: Enable console tty by default in domU if it's not a dummy 2008-05-27 10:11:36 +02:00
grant-table.c xen: make grant table arch portable 2008-04-24 23:57:32 +02:00
Kconfig xen: remove support for non-PAE 32-bit 2008-05-22 18:42:49 +02:00
Makefile xen: make grant table arch portable 2008-04-24 23:57:32 +02:00
manage.c i386: move xen 2007-10-11 11:16:51 +02:00
mmu.c xen: remove support for non-PAE 32-bit 2008-05-22 18:42:49 +02:00
mmu.h xen: remove support for non-PAE 32-bit 2008-05-22 18:42:49 +02:00
multicalls.c x86: coding style fixes to arch/x86/xen/multicalls.c 2008-04-17 17:40:50 +02:00
multicalls.h xen: add batch completion callbacks 2007-10-16 11:51:30 -07:00
setup.c xen: support sysenter/sysexit if hypervisor does 2008-04-24 23:57:31 +02:00
smp.c x86: use cpumask function for present, possible, and online cpus 2008-04-26 17:35:47 +02:00
time.c x86: fix sparse warning in xen/time.c 2008-02-09 23:24:08 +01:00
vdso.h i386: move xen 2007-10-11 11:16:51 +02:00
xen-asm.S xen: fold xen_sysexit into xen_iret 2008-04-24 23:57:33 +02:00
xen-head.S xen: remove support for non-PAE 32-bit 2008-05-22 18:42:49 +02:00
xen-ops.h xen: move events.c to drivers/xen for IA64/Xen support 2008-04-24 23:57:32 +02:00