Received: from eggs.gnu.org ([2001:4830:134:3::10]:40740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c87Gx-0007Vz-GM for qemu-devel@nongnu.org; Sat, 19 Nov 2016 10:09:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c87Gu-0004B8-Ba for qemu-devel@nongnu.org; Sat, 19 Nov 2016 10:09:43 -0500 Received: from indium.canonical.com ([91.189.90.7]:45164) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c87Gu-0004At-5v for qemu-devel@nongnu.org; Sat, 19 Nov 2016 10:09:40 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1c87Gq-0007Tt-Un for ; Sat, 19 Nov 2016 15:09:37 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E62372E8024 for ; Sat, 19 Nov 2016 15:09:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 19 Nov 2016 14:58:25 -0000 From: Andreas Gustafsson Reply-To: Bug 1399943 <1399943@bugs.launchpad.net> Sender: bounces@canonical.com References: <20141206152602.26252.40483.malonedeb@gac.canonical.com> Message-Id: <20161119145825.8577.81667.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1399943] Re: qemu-system-sparc loses serial console data on EAGAIN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I have now run some more tests, and I'm still seeing occasional failures in the scripted NetBSD installs that look like console data loss when using qemu 2.7.0, with maybe one in ten installs failing. I have seen no failures so far using the git master. So it looks like the bug is fixed in git, but not yet in 2.7.0. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1399943 Title: qemu-system-sparc loses serial console data on EAGAIN Status in QEMU: New Bug description: When running a guest OS with a serial console under = "qemu-system-sparc -nographic", parts of the serial console output are sometimes lost. This happens when a write() to standard output by qemu returns EAGAIN, as may be the case when the guest is generating console output faster than the tty (or pty/pipe/socket, etc.) connected to qemu's standard output accepts it. The bug affects all releases of qemu since 1.5, which was the first version to set stdout to O_NONBLOCK mode. Version 1.4.2 and earlier work correctly. To reproduce the bug, you will need a guest OS configured with a serial console, and a host with a slow tty. The attached shell script "sparc-test.sh" does this by using Aboriginal Linux as the serial console guest, and a pty controlled by a Python script and the "pexpect" Python module as the slow tty. A "seq" command is sent to the guest to generate 100,000 lines of output containing sequential integers, and the output is checked for gaps. The script limits the tty output rate by occasionally sleeping for 1/10 of a second. This bug was originally reported against qemu-system-i386 as = bug #1335444, and has since been fixed in qemu-system-i386, but remains in qemu-system-sparc as of today's git sources = (d00e6cddc220de993573dfb5fd160ac72ccd49ab). I am opening this separate bug for the sparc case because I was asked to do so by Paolo Bonzini in #1335444. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1399943/+subscriptions