All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm tools: Fix virtio console input problem
@ 2011-04-15 14:58 Asias He
  2011-04-15 18:23 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Asias He @ 2011-04-15 14:58 UTC (permalink / raw)
  To: Pekka Enberg, Cyrill Gorcunov, Ingo Molnar; +Cc: kvm, Asias He

Signed-off-by: Asias He <asias.hejun@gmail.com>
---
 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)
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-16  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15 14:58 [PATCH] kvm tools: Fix virtio console input problem Asias He
2011-04-15 18:23 ` Ingo Molnar
2011-04-16  1:45   ` Asias He
2011-04-16  7:42     ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.