From patchwork Fri Apr 15 14:58:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 710831 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3FExtIH004341 for ; Fri, 15 Apr 2011 14:59:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751750Ab1DOO7w (ORCPT ); Fri, 15 Apr 2011 10:59:52 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:43022 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266Ab1DOO7w (ORCPT ); Fri, 15 Apr 2011 10:59:52 -0400 Received: by pxi2 with SMTP id 2so1657708pxi.10 for ; Fri, 15 Apr 2011 07:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=b/xHu16C/j67Sakj2VJo1uilHPxqLY9lKZOImP/cOWw=; b=ieukFx/RNf7ZmGvs16JvhUsAeiRi6imWvT+//q1qIVzNcMBdJQ8RWCRh7lmuMnRV8a fXzrNM2Ydyb8gkoWR37CCAypD7oQbBp/rLdxBGeQ6CB7MIGlPCkttPqpaRMoQuds7H7A lwOPvSFNxoS6X4bB8tP+clsl4D4hljQMc5gU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=gHJb+IT3lBkqBVEqSKJ+TUzA+c20ZBXPFvFWdwPVBhbIHWB3pjCTPabO99cxcwbnvD o0pGoo9AoiDJW7kdBWvDDwP8ynhk66VA9YLMUhva2qyJI4vS0/6c6SdjpiCOMA7Abpx+ EetCYki1W0C5xwMddQBQW9VAYQKQrYiKaidBY= Received: by 10.142.2.3 with SMTP id 3mr900960wfb.172.1302879591576; Fri, 15 Apr 2011 07:59:51 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id w32sm3783367wfh.7.2011.04.15.07.59.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Apr 2011 07:59:50 -0700 (PDT) From: Asias He To: Pekka Enberg , Cyrill Gorcunov , Ingo Molnar Cc: kvm@vger.kernel.org, Asias He Subject: [PATCH] kvm tools: Fix virtio console input problem Date: Fri, 15 Apr 2011 22:58:27 +0800 Message-Id: <1302879507-6490-1-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.4.1 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 15 Apr 2011 14:59:55 +0000 (UTC) Signed-off-by: Asias He --- tools/kvm/term.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/term.c b/tools/kvm/term.c index 2245c8d..2bd038d 100644 --- a/tools/kvm/term.c +++ b/tools/kvm/term.c @@ -71,9 +71,9 @@ int term_getc_iov(int who, struct iovec *iov, int iovcnt) return 0; *((int *)iov[0].iov_base) = c; - iov[0].iov_len = sizeof(int); + iov[0].iov_len = sizeof(char); - return sizeof(int); + return sizeof(char); } int term_putc_iov(int who, struct iovec *iov, int iovcnt)