diff options
author | Heinz Graalfs <graalfs@linux.vnet.ibm.com> | 2012-06-11 10:06:59 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-06-13 19:53:45 -0400 |
commit | cd1834591fe9564720ac4b0193bf1c790fe89f0d (patch) | |
tree | d705284edf49d5054f6558db3c1f827179984bc4 /drivers/s390/kvm | |
parent | 61bde82caee95426bf1ad53fefc8dc691b8ba37c (diff) |
KVM: s390: Perform early event mask processing during boot
For processing under KVM it is required to detect
the actual SCLP console type in order to set it as
preferred console.
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'drivers/s390/kvm')
-rw-r--r-- | drivers/s390/kvm/kvm_virtio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index d74e9ae6dfb3..d3bdae49512f 100644 --- a/drivers/s390/kvm/kvm_virtio.c +++ b/drivers/s390/kvm/kvm_virtio.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/io.h> | 25 | #include <asm/io.h> |
26 | #include <asm/kvm_para.h> | 26 | #include <asm/kvm_para.h> |
27 | #include <asm/kvm_virtio.h> | 27 | #include <asm/kvm_virtio.h> |
28 | #include <asm/sclp.h> | ||
28 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
29 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
30 | 31 | ||
@@ -468,7 +469,7 @@ static __init int early_put_chars(u32 vtermno, const char *buf, int count) | |||
468 | 469 | ||
469 | static int __init s390_virtio_console_init(void) | 470 | static int __init s390_virtio_console_init(void) |
470 | { | 471 | { |
471 | if (!MACHINE_IS_KVM) | 472 | if (sclp_has_vt220() || sclp_has_linemode()) |
472 | return -ENODEV; | 473 | return -ENODEV; |
473 | return virtio_cons_early_init(early_put_chars); | 474 | return virtio_cons_early_init(early_put_chars); |
474 | } | 475 | } |