Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157469
b: refs/heads/master
c: c4de0c1
h: refs/heads/master
i:
  157467: d52bdf6
v: v3
  • Loading branch information
Hendrik Brueckner authored and Martin Schwidefsky committed Sep 11, 2009
1 parent a23af49 commit a66e7f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68d36bdbf6377d36129b2c6bcbe9d24c5fb1739a
refs/heads/master: c4de0c1a18237c2727dde8ad392e333539b0af3c
10 changes: 0 additions & 10 deletions trunk/arch/s390/include/asm/kvm_virtio.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,4 @@ struct kvm_vqconfig {
* This is pagesize for historical reasons. */
#define KVM_S390_VIRTIO_RING_ALIGN 4096

#ifdef __KERNEL__
/* early virtio console setup */
#ifdef CONFIG_S390_GUEST
extern void s390_virtio_console_init(void);
#else
static inline void s390_virtio_console_init(void)
{
}
#endif /* CONFIG_VIRTIO_CONSOLE */
#endif /* __KERNEL__ */
#endif
10 changes: 3 additions & 7 deletions trunk/arch/s390/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,11 @@ __setup("condev=", condev_setup);

static void __init set_preferred_console(void)
{
if (MACHINE_IS_KVM) {
if (MACHINE_IS_KVM)
add_preferred_console("hvc", 0, NULL);
s390_virtio_console_init();
return;
}

if (CONSOLE_IS_3215 || CONSOLE_IS_SCLP)
else if (CONSOLE_IS_3215 || CONSOLE_IS_SCLP)
add_preferred_console("ttyS", 0, NULL);
if (CONSOLE_IS_3270)
else if (CONSOLE_IS_3270)
add_preferred_console("tty3270", 0, NULL);
}

Expand Down
8 changes: 6 additions & 2 deletions trunk/drivers/s390/kvm/kvm_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,14 @@ static __init int early_put_chars(u32 vtermno, const char *buf, int count)
return len;
}

void __init s390_virtio_console_init(void)
static int __init s390_virtio_console_init(void)
{
virtio_cons_early_init(early_put_chars);
if (!MACHINE_IS_KVM)
return -ENODEV;
return virtio_cons_early_init(early_put_chars);
}
console_initcall(s390_virtio_console_init);


/*
* We do this after core stuff, but before the drivers.
Expand Down

0 comments on commit a66e7f1

Please sign in to comment.