Received: from eggs.gnu.org ([2001:4830:134:3::10]:44959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XebED-0004E9-5l for qemu-devel@nongnu.org; Wed, 15 Oct 2014 22:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XebE7-0005Rp-2H for qemu-devel@nongnu.org; Wed, 15 Oct 2014 22:55:49 -0400 Received: from indium.canonical.com ([91.189.90.7]:50402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XebE6-0005RM-Rc for qemu-devel@nongnu.org; Wed, 15 Oct 2014 22:55:42 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1XebE5-00041t-UP for ; Thu, 16 Oct 2014 02:55:41 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id CCFBB2E80C0 for ; Thu, 16 Oct 2014 02:55:41 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Oct 2014 02:49:56 -0000 From: Adam Goode Sender: bounces@canonical.com References: <20141016024956.508.83550.malonedeb@gac.canonical.com> Message-Id: <20141016024956.508.83550.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1381846] [NEW] Data sent to parallel port in guest is lost if host buffer fills up Reply-To: Bug 1381846 <1381846@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: It appears that qemu will blindly write characters out to the chardev and drop them on the floor if a write fails with EAGAIN, without initiating flow control (via BUSY and ACK) back to the guest. If the host buffer is too small, or is talking to a hardware device that is too slow, data will be lost. I notice this problem when I run a DOS program with this on the qemu comman= d line: -parallel /dev/usb/lp0 I can work around this problem by buffering via a pipe, but this looks like a general problem. Is there a way to wire up the readiness of the output chardev to the parallel port ACK and BUSY lines, and signal an ISA interrupt? I don't know the code well enough to tell. ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1381846 Title: Data sent to parallel port in guest is lost if host buffer fills up Status in QEMU: New Bug description: It appears that qemu will blindly write characters out to the chardev and drop them on the floor if a write fails with EAGAIN, without initiating flow control (via BUSY and ACK) back to the guest. If the host buffer is too small, or is talking to a hardware device that is too slow, data will be lost. I notice this problem when I run a DOS program with this on the qemu comm= and line: -parallel /dev/usb/lp0 I can work around this problem by buffering via a pipe, but this looks like a general problem. Is there a way to wire up the readiness of the output chardev to the parallel port ACK and BUSY lines, and signal an ISA interrupt? I don't know the code well enough to tell. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1381846/+subscriptions