Received: from eggs.gnu.org ([208.118.235.92]:48362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgFX6-0008SI-21 for qemu-devel@nongnu.org; Wed, 05 Dec 2012 09:01:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgFWx-00057I-8j for qemu-devel@nongnu.org; Wed, 05 Dec 2012 09:01:04 -0500 Received: from indium.canonical.com ([91.189.90.7]:53098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgFWx-00057E-2y for qemu-devel@nongnu.org; Wed, 05 Dec 2012 09:00:55 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TgFWu-0004Pr-PW for ; Wed, 05 Dec 2012 14:00:53 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 7E5162E80D3 for ; Wed, 5 Dec 2012 14:00:52 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Dec 2012 13:51:01 -0000 From: Lei Li Sender: bounces@canonical.com References: <20121205112012.6348.41927.malonedeb@gac.canonical.com> Message-Id: <20121205135101.1379.32023.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1086745] Re: serial port data THRE comes too early Reply-To: Bug 1086745 <1086745@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Could you please give more details, like the steps to reproduce this problems. Thanks. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1086745 Title: serial port data THRE comes too early Status in QEMU: New Bug description: When using a serial port with a Linux guest (and host) and the application uses hardware handshake, this fails because the handling of TEMT and/or THRE is not operating properly in such cases. As long as it takes _time_ for the 'real' port to output the data TEMT may not return true. After writing characters to a real port, the driver should timeout the transmission and after the total time expired, TEMT can be set. Some applications i.e. with a simplex modem do: RTS_on, WRITE_data, repea= t IOCTL(GET_LSR_INFO), RTS_off, READ_data. At the moment this fails because very early in the transmission, GET_LSR_= INFO returns true and the modem transmitter is switched off. I looked in the source (git) and found that 'char_transmit_time' is pres= ent. My skills fail to implement it myself. I build and ran the latest git version and found it to fail as decribed a= bove. I hope someone can solve it. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1086745/+subscriptions