From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9ekI-0008Aq-FR for qemu-devel@nongnu.org; Wed, 05 May 2010 09:34:38 -0400 Received: from [140.186.70.92] (port=47758 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9ekF-00081Q-Pp for qemu-devel@nongnu.org; Wed, 05 May 2010 09:34:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9ek4-0003hp-F5 for qemu-devel@nongnu.org; Wed, 05 May 2010 09:34:29 -0400 Received: from mx20.gnu.org ([199.232.41.8]:58252) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9ek4-0003hl-CW for qemu-devel@nongnu.org; Wed, 05 May 2010 09:34:24 -0400 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1O9ek3-0001xU-S7 for qemu-devel@nongnu.org; Wed, 05 May 2010 09:34:24 -0400 From: Paul Brook Date: Wed, 5 May 2010 14:34:19 +0100 References: <1273009170-17530-1-git-send-email-amit.shah@redhat.com> <1273009170-17530-5-git-send-email-amit.shah@redhat.com> <4BE16FB5.6040708@codemonkey.ws> In-Reply-To: <4BE16FB5.6040708@codemonkey.ws> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201005051434.20020.paul@codesourcery.com> Subject: [Qemu-devel] Re: [PATCH v7 4/6] char: Add qemu_chr_write_nb() for nonblocking writes List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Amit Shah , Juan Quintela , qemu list , Gerd Hoffmann > I really dislike the idea of adding another function for this. Can you > explain why you need this functionality for virtio-console and why this > functionality isn't needed for everything else? This functionality should (in principle) be used by all serial port implementations. Physical serial ports are sufficiently crufty and low-performance that noone actually uses them nowadays. I expect that the only significant real-world use is for serial consoles, which never send enough data to care that writes stall the whole machine. With virtio-serial we've made serial ports a viable solution to a whole range of problems. It's likely that applications that may send nontrivial amounts of data, or clients will not be ready to process the data immediately. Paul