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 04:06:07 +0200 |
commit | faeba830b086bc9e58748869054e994cb09693cd (patch) | |
tree | 5d2f2beb6b3ae012c7eedaa48bc1845cb156945f /include/asm-s390 | |
parent | virtio: console as a config option (diff) | |
download | linux-faeba830b086bc9e58748869054e994cb09693cd.tar.xz linux-faeba830b086bc9e58748869054e994cb09693cd.zip |
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 'include/asm-s390')
-rw-r--r-- | include/asm-s390/kvm_virtio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-s390/kvm_virtio.h b/include/asm-s390/kvm_virtio.h index 5c871a990c29..146100224def 100644 --- a/include/asm-s390/kvm_virtio.h +++ b/include/asm-s390/kvm_virtio.h @@ -50,4 +50,14 @@ struct kvm_vqconfig { #define KVM_S390_VIRTIO_RESET 1 #define KVM_S390_VIRTIO_SET_STATUS 2 +#ifdef __KERNEL__ +/* early virtio console setup */ +#ifdef CONFIG_VIRTIO_CONSOLE +extern void s390_virtio_console_init(void); +#else +static inline void s390_virtio_console_init(void) +{ +} +#endif /* CONFIG_VIRTIO_CONSOLE */ +#endif /* __KERNEL__ */ #endif |