s390/console: Make preferred console handling more consistent
commit8f50af49f564d4e57c03903ca374109bdc270ea9
authorPeter Oberparleiter <oberpar@linux.vnet.ibm.com>
Thu, 7 Jul 2016 05:52:38 +0000 (7 07:52 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 13 Jul 2016 08:58:07 +0000 (13 10:58 +0200)
tree14759aa507a258b30f9b04cdab090cf10c0b0cd5
parentf045402984404ddc11016358411e445192919047
s390/console: Make preferred console handling more consistent

Use the same code structure when determining preferred consoles for
Linux running as KVM guest as with Linux running in LPAR and z/VM
guest:

 - Extend the console_mode variable to cover vt220 and hvc consoles
 - Determine sensible console defaults in conmode_default()
 - Remove KVM-special handling in set_preferred_console()

Ensure that the sclp line mode console is also registered when the
vt220 console was selected to not change existing behavior that
someone might be relying on.

As an externally visible change, KVM guest users can now select
the 3270 or 3215 console devices using the conmode= kernel parameter,
provided that support for the corresponding driver was compiled into
the kernel.

Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/setup.h
arch/s390/kernel/setup.c
drivers/s390/char/sclp_con.c