From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49316 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu1tf-0003B7-EO for qemu-devel@nongnu.org; Mon, 28 Feb 2011 07:08:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu1te-0000Li-Am for qemu-devel@nongnu.org; Mon, 28 Feb 2011 07:08:15 -0500 Received: from mail-vw0-f45.google.com ([209.85.212.45]:52273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu1te-0000LZ-8S for qemu-devel@nongnu.org; Mon, 28 Feb 2011 07:08:14 -0500 Received: by vws19 with SMTP id 19so3339161vws.4 for ; Mon, 28 Feb 2011 04:08:13 -0800 (PST) Message-ID: <4D6B902B.7040601@codemonkey.ws> Date: Mon, 28 Feb 2011 06:08:11 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1298497114-7436-1-git-send-email-aliguori@us.ibm.com> <4D65945A.3090106@codemonkey.ws> <4D6680E3.8010802@redhat.com> <4D669476.2030601@codemonkey.ws> <4D6A3679.1010009@redhat.com> <4D6B1E1D.2050801@codemonkey.ws> <4D6B5AC2.8050004@redhat.com> <4D6B6362.5070301@redhat.com> <4D6B6746.6060605@redhat.com> In-Reply-To: <4D6B6746.6060605@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Split machine creation from the main loop List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Paolo Bonzini , qemu-devel@nongnu.org, quintela@redhat.com On 02/28/2011 03:13 AM, Avi Kivity wrote: > On 02/28/2011 10:57 AM, Paolo Bonzini wrote: >> On 02/28/2011 09:20 AM, Avi Kivity wrote: >>>> >>>> We should have another abstraction for connection based backend. I'll >>>> take a go at this when I'm ready to try to get those patches in. >>> >>> Shouldn't each new connection return a chardev? >> >> You would need a kind of "factory" interface that knows how to create >> a new {monitor,serial port,you name it} for each new connection. >> Actually it doesn't make much sense except for monitors. > > Monitors and vnc. VNC also does it's own buffering when reading and writing to a file descriptor. The chardev layer doesn't really have a concept of flow control. Regards, Anthony Liguori