Received: from eggs.gnu.org ([140.186.70.92]:44390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb8Ij-0000Hw-Ma for qemu-devel@nongnu.org; Mon, 27 Jun 2011 05:40:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qb8Ih-00060c-J5 for qemu-devel@nongnu.org; Mon, 27 Jun 2011 05:40:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb8Ih-00060X-5S for qemu-devel@nongnu.org; Mon, 27 Jun 2011 05:40:15 -0400 Date: Mon, 27 Jun 2011 15:10:09 +0530 From: Amit Shah Message-ID: <20110627094009.GB9369@amit-x200.redhat.com> References: <20110624002244.GB13953@laped.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110624002244.GB13953@laped.lan> Subject: Re: [Qemu-devel] serial input with -serial stdio List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: qemu-devel@nongnu.org Hello, On (Fri) 24 Jun 2011 [02:22:44], Edgar E. Iglesias wrote: > Hi, > > Tried to stream 2K of data into a guest via an emulated serial port backed > by -serial stdio but it failed. Looks like data flows for a while, then > suddenly even though the last call to can_rceive returns +, nothing comes. > It works OK through TCP ports (-serial tcp::xxx,server + nc). > > I know this used to work before, last time I tried was about a year ago > or so, maybe a little more. I suspect regression somewhere. > > I run qemu something like the following: > cat file-with-ser-data | qemu-system-cris -kernel image -serial stdio I've never used serial IO this way, so can't be sure. > The serial port is hw/etraxfs_ser.c, can't find anything wrong there. > > Unfortunately I dont have much time at the moment to debug, so I tought > I just throw this out to the list and hope that someone knows whats > going on. Otherwise I'll debug later. Let us know what you find. Amit