Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV6o1-0002bU-AH for qemu-devel@nongnu.org; Wed, 13 Jan 2010 12:14:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV6nw-0002XX-DT for qemu-devel@nongnu.org; Wed, 13 Jan 2010 12:14:52 -0500 Received: from [199.232.76.173] (port=59093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV6nv-0002XO-UM for qemu-devel@nongnu.org; Wed, 13 Jan 2010 12:14:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26300) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV6nu-0000f6-VQ for qemu-devel@nongnu.org; Wed, 13 Jan 2010 12:14:47 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 5/8] virtio-serial-bus: Add support for buffering guest output, throttling guests References: <1262849506-27132-6-git-send-email-amit.shah@redhat.com> <20100108011231.GA5011@shareable.org> <20100108050351.GB8999@amit-x200.redhat.com> <20100108133503.GA19328@shareable.org> <20100111083443.GA6061@amit-x200.redhat.com> <20100111104553.GA4746@shareable.org> <20100111110410.GA13658@amit-x200.redhat.com> <20100111233356.GB30714@shareable.org> <20100112071612.GB19438@amit-x200.redhat.com> <4B4C8EA4.9080106@codemonkey.ws> Date: Wed, 13 Jan 2010 18:14:41 +0100 In-Reply-To: <4B4C8EA4.9080106@codemonkey.ws> (Anthony Liguori's message of "Tue, 12 Jan 2010 09:00:52 -0600") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Amit Shah , qemu-devel@nongnu.org Anthony Liguori writes: > On 01/12/2010 01:16 AM, Amit Shah wrote: >> BTW I don't really want this too, I can get rid of it if everyone agrees >> we won't support clipboard writes> 4k over vnc or if there's a better >> idea. >> > > Why bother trying to preserve message boundaries? I think that's the > fundamental question. Yes. Either it's a datagram or a stream pipe. I always thought it would be a stream pipe, as the name "serial" suggests. As to the clipboard use case: same problem exists with any old stream pipe, including TCP, same solutions apply. If you told the peer "I'm going to send you 12345 bytes now", and your stream pipe chokes after 7890 bytes, you retry until everything got through. If you want to be able to abort a partial transfer and start a new one, you layer a protocol suitable for that on top of your stream pipe.