From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLyq2-0000Ip-B5 for qemu-devel@nongnu.org; Thu, 24 Jul 2008 07:18:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLypz-0000Eg-7z for qemu-devel@nongnu.org; Thu, 24 Jul 2008 07:18:24 -0400 Received: from [199.232.76.173] (port=54307 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLypz-0000EN-2m for qemu-devel@nongnu.org; Thu, 24 Jul 2008 07:18:23 -0400 Received: from mx1.redhat.com ([66.187.233.31]:45424) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLypy-0001PP-9H for qemu-devel@nongnu.org; Thu, 24 Jul 2008 07:18:22 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m6OBILvK020754 for ; Thu, 24 Jul 2008 07:18:21 -0400 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m6OBIKQb004244 for ; Thu, 24 Jul 2008 07:18:20 -0400 Received: from zweiblum.travel.kraxel.org (vpn-4-161.str.redhat.com [10.32.4.161]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id m6OBIJCr001540 for ; Thu, 24 Jul 2008 07:18:19 -0400 Message-ID: <488864F5.4040606@redhat.com> Date: Thu, 24 Jul 2008 13:18:13 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/3] Always use nonblocking mode for qemu_chr_open_fd. References: <20080723121510.GJ2291@redhat.com> <48872979.4050107@redhat.com> <48873F17.4030101@redhat.com> <48874D4A.8000604@codemonkey.ws> <20080723153133.GL2291@redhat.com> <48874F0B.3040609@codemonkey.ws> <4887598B.8070405@redhat.com> <48875D48.8030906@codemonkey.ws> <48883543.3070509@redhat.com> <20080724092403.GA9545@shareable.org> <20080724093302.GA4755@implementation.uk.xensource.com> In-Reply-To: <20080724093302.GA4755@implementation.uk.xensource.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 Samuel Thibault wrote: > Jamie Lokier, le Thu 24 Jul 2008 10:24:03 +0100, a =E9crit : >> Gerd Hoffmann wrote: >>> (2) Run ptys in non-blocking mode. Drawback: we risk loosing data >>> in case the pty reader is slow (also when nobody is connected o= f >>> course, but that is intentional ...). >> (4) Run ptys in non-blocking mode, but use a small output buffer in >> QEMU so nothing is lost. It's not that hard. >=20 > Err, there's _already_ a small buffer in the kernel pty layer :) Yep, one page (aka 4k on x86) in size. Of course we can buffer in qemu too. That doesn't solve the fundamental issue though (unless we don't limit the buffer size, which would be insane IMHO). cheers, Gerd --=20 http://kraxel.fedorapeople.org/xenner/