From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgGwl-0008Dk-Jv for qemu-devel@nongnu.org; Thu, 29 Dec 2011 09:27:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgGwk-0004UB-MB for qemu-devel@nongnu.org; Thu, 29 Dec 2011 09:27:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgGwk-0004U7-EN for qemu-devel@nongnu.org; Thu, 29 Dec 2011 09:27:06 -0500 Date: Thu, 29 Dec 2011 19:56:58 +0530 From: Amit Shah Message-ID: <20111229142658.GD4576@amit.redhat.com> References: <4EE9EBB9.9020300@de.ibm.com> <4EFC616F.4060806@de.ibm.com> <20111229140407.GC4576@amit.redhat.com> <4EFC7657.5090804@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EFC7657.5090804@de.ibm.com> Subject: Re: [Qemu-devel] [PATCHv2] Fix virtio-console failure on unconnected pty List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: "qemu-devel@nongnu.org" , Alexander Graf On (Thu) 29 Dec 2011 [15:16:55], Christian Borntraeger wrote: > >> +++ b/hw/virtio-serial-bus.c > >> @@ -163,7 +163,19 @@ static void do_flush_queued_data(VirtIOS > >> abort(); > >> } > >> if (ret == -EAGAIN || (ret >= 0 && ret < buf_size)) { > >> - virtio_serial_throttle_port(port, true); > > > > I'm surprised: did you test this with upstream qemu? That codebase > > doesn't yet throttle writes, and this code path won't execute. Does > > it really not reproduce with this patch? > > I think > static void handle_output(VirtIODevice *vdev, VirtQueue *vq) > [....] > if (!port->throttled) { > do_flush_queued_data(port, vq, vdev); > return; > > makes a difference here, since we will never return the buffer to the guest, no? port->throttled never becomes true for qemu. I'm just unsure how this patch works for you :) Amit