From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GPnYA-0000MK-HY for qemu-devel@nongnu.org; Tue, 19 Sep 2006 17:54:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GPnY9-0000K7-DY for qemu-devel@nongnu.org; Tue, 19 Sep 2006 17:54:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPnY9-0000K4-AE for qemu-devel@nongnu.org; Tue, 19 Sep 2006 17:54:41 -0400 Received: from [72.64.68.173] (helo=gerbil.warthog.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GPnbI-0002aP-Gx for qemu-devel@nongnu.org; Tue, 19 Sep 2006 17:57:56 -0400 Received: from localhost (pool-71-252-167-194.dllstx.fios.verizon.net [71.252.167.194]) by gerbil.warthog.com (Postfix) with ESMTP id 71AE652F9A for ; Tue, 19 Sep 2006 16:52:03 -0500 (CDT) Date: Tue, 19 Sep 2006 16:54:24 -0500 From: Zach Metzinger Message-ID: <20060919215424.GA97954@raster> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] qemu/vl.c serial patch termios fix Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi- The serial routines do not set the proper termios flags for the serial port so that data can pass unmolested from the emulated environment to the host serial device. This simple patch fixes that. Tested on a FreeBSD 6.2 host with Windows XP as the emulated OS. --- Zach --- /usr/ports/emulators/qemu/work/qemu-0.8.2/vl.c Tue Sep 19 16:06:35 2006 +++ vl.c Tue Sep 19 16:43:38 2006 @@ -1591,8 +1591,8 @@ cfsetospeed(&tty, spd); tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP - |INLCR|IGNCR|ICRNL|IXON); - tty.c_oflag |= OPOST; + |INLCR|IGNCR|ICRNL|IXON|IMAXBEL); + tty.c_oflag &= ~OPOST; /* Don't do any output processing! */ tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN|ISIG); tty.c_cflag &= ~(CSIZE|PARENB|PARODD|CRTSCTS); switch(data_bits) {