From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzcQ5-00043L-B2 for qemu-devel@nongnu.org; Wed, 07 Apr 2010 17:04:17 -0400 Received: from [140.186.70.92] (port=35075 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzcQ3-00042Y-Sm for qemu-devel@nongnu.org; Wed, 07 Apr 2010 17:04:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzcQ2-0003BT-5D for qemu-devel@nongnu.org; Wed, 07 Apr 2010 17:04:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26734) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzcQ1-0003BL-QF for qemu-devel@nongnu.org; Wed, 07 Apr 2010 17:04:14 -0400 From: Amit Shah Date: Thu, 8 Apr 2010 02:32:28 +0530 Message-Id: <1270674156-9345-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 0/8] (v2) chardev, virtio-console: flow control, error handling, fixes List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Amit Shah , Paul Brook , "Michael S. Tsirkin" , Gerd Hoffmann , Juan Quintela Hello, This patchset introduces flow control to virtio-console and chardev-based virtio serial ports. This series is based on the previous series I sent on Mar 31st (00/17: v4: virtio-serial fixes, new abi for port discovery) The qemu chardevs can now return -EAGAIN when a non-blocking remote isn't ready to accept more data. Comments? Changes from v1: - Remove poll() usage - Add fixes for virtio-serial throttling Amit Shah (8): virtio-serial: throttling: check for throttled status before sending any data virtio-serial: Unthrottle ports once they're closed virtio-serial: Discard unconsumed data before sending port close event virtio-serial: Bus info message for showing port's throttled status char: Let writers know how much data was written in case of errors char: unix: For files that are nonblocking, report -EAGAIN to calling functions virtio-console: Factor out common init between console and generic ports virtio-console: Throttle virtio-serial-bus if we can't consume any more guest data hw/virtio-console.c | 156 ++++++++++++++++++++++++++++++++++++++++++------ hw/virtio-serial-bus.c | 23 +++++--- qemu-char.c | 21 ++++++- 3 files changed, 172 insertions(+), 28 deletions(-)