diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2008-06-20 15:24:18 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-25 12:06:07 +1000 |
commit | faeba830b086bc9e58748869054e994cb09693cd (patch) | |
tree | 5d2f2beb6b3ae012c7eedaa48bc1845cb156945f /arch/s390/kernel/setup.c | |
parent | 7721c494a28e06543a3d6aa412957aa783a4a531 (diff) | |
download | kernel_samsung_smdk4412-faeba830b086bc9e58748869054e994cb09693cd.zip kernel_samsung_smdk4412-faeba830b086bc9e58748869054e994cb09693cd.tar.gz kernel_samsung_smdk4412-faeba830b086bc9e58748869054e994cb09693cd.tar.bz2 |
s390: use virtio_console for KVM on s390
This patch enables virtio_console as the default console on kvm for
s390. We currently use the same notify hack as lguest for early
console output. I will try to address this for lguest and s390 later.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/s390/kernel/setup.c')
-rw-r--r-- | arch/s390/kernel/setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index b358e18..62122ba 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c @@ -54,6 +54,7 @@ #include <asm/sections.h> #include <asm/ebcdic.h> #include <asm/compat.h> +#include <asm/kvm_virtio.h> long psw_kernel_bits = (PSW_BASE_BITS | PSW_MASK_DAT | PSW_ASC_PRIMARY | PSW_MASK_MCHECK | PSW_DEFAULT_KEY); @@ -766,7 +767,8 @@ setup_arch(char **cmdline_p) printk("We are running under VM (64 bit mode)\n"); else if (MACHINE_IS_KVM) { printk("We are running under KVM (64 bit mode)\n"); - add_preferred_console("ttyS", 1, NULL); + add_preferred_console("hvc", 0, NULL); + s390_virtio_console_init(); } else printk("We are running native (64 bit mode)\n"); #endif /* CONFIG_64BIT */ |