Commit-ID: e30eafe9f2f1f85e5ba4acdd13b84af5314b4894 Gitweb: http://git.kernel.org/tip/e30eafe9f2f1f85e5ba4acdd13b84af5314b4894 Author: Will Deacon <will.deacon@xxxxxxx> AuthorDate: Wed, 1 May 2013 16:50:16 +0100 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Tue, 14 May 2013 14:18:52 +0300 kvm tools: ARM: add 8250 console callback to periodic poll If we're using the 8250 as a fully-fledged console (i.e. not early console), then we need to allow input as well as output. Signed-off-by: Will Deacon <will.deacon@xxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/arm/kvm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/kvm/arm/kvm.c b/tools/kvm/arm/kvm.c index 1bcfce3..27e6cf4 100644 --- a/tools/kvm/arm/kvm.c +++ b/tools/kvm/arm/kvm.c @@ -1,6 +1,7 @@ #include "kvm/kvm.h" #include "kvm/term.h" #include "kvm/util.h" +#include "kvm/8250-serial.h" #include "kvm/virtio-console.h" #include "arm-common/gic.h" @@ -47,8 +48,10 @@ void kvm__arch_delete_ram(struct kvm *kvm) void kvm__arch_periodic_poll(struct kvm *kvm) { - if (term_readable(0)) + if (term_readable(0)) { + serial8250__update_consoles(kvm); virtio_console__inject_interrupt(kvm); + } } void kvm__arch_set_cmdline(char *cmdline, bool video) -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html