From: Ingo Molnar Subject: Re: [PATCH] kvm tools: Fix virtio console input problem Date: Sat, 16 Apr 2011 09:42:24 +0200 Message-ID: <20110416074224.GA19063@elte.hu> References: <1302879507-6490-1-git-send-email-asias.hejun@gmail.com> <20110415182313.GA13961@elte.hu> <4DA8F4BD.2050903@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pekka Enberg , Cyrill Gorcunov , kvm@vger.kernel.org To: Asias He Return-path: Received: from mx2.mail.elte.hu ([157.181.151.9]:60605 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751493Ab1DPHma (ORCPT ); Sat, 16 Apr 2011 03:42:30 -0400 Content-Disposition: inline In-Reply-To: <4DA8F4BD.2050903@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: * Asias He wrote: > On 04/16/2011 02:23 AM, Ingo Molnar wrote: > > > > * Asias He wrote: > > > >> Signed-off-by: Asias He > >> --- > >> tools/kvm/term.c | 4 ++-- > >> 1 files changed, 2 insertions(+), 2 deletions(-) > > > > Mind explaining in the changelog what input problem this is about? > > Sure. See attached patch. > > -- > Best Regards, > Asias He > >From 6a123c8001c3c36ae5cc08d2980588491a6ef1ef Mon Sep 17 00:00:00 2001 > From: Asias He > Date: Fri, 15 Apr 2011 22:55:04 +0800 > Subject: [PATCH] kvm tools: Fix virtio console input problem > > term_getc only get one char at a time, so term_getc_iov should > send one char back to guest. > > Otherwise, you will get four input chars when you only type one like bewlow: > > sid login: r^@^@^@o^@^@^@o^@^@^@t^@^@^@ > > Signed-off-by: Asias He > --- > tools/kvm/term.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) Ok, that changelog is much more informative, thanks! Small typo: s/bewlow/below. Ingo