From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MM5gY-0000sI-VL for qemu-devel@nongnu.org; Wed, 01 Jul 2009 15:41:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MM5gU-0000pG-9Z for qemu-devel@nongnu.org; Wed, 01 Jul 2009 15:41:38 -0400 Received: from [199.232.76.173] (port=58832 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MM5gU-0000p6-4K for qemu-devel@nongnu.org; Wed, 01 Jul 2009 15:41:34 -0400 Received: from mx2.redhat.com ([66.187.237.31]:37078) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MM5gT-0005Ds-KS for qemu-devel@nongnu.org; Wed, 01 Jul 2009 15:41:33 -0400 Message-ID: <4A4BBBE6.2070601@redhat.com> Date: Wed, 01 Jul 2009 21:41:26 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 0/2] Tunnel character device data over VNC (v1) References: <20090701162114.GB24296@redhat.com> <4A4B91F7.9010206@redhat.com> <20090701165039.GF24296@redhat.com> <4A4B9D2F.5000607@redhat.com> <4A4BB038.7050401@codemonkey.ws> In-Reply-To: <4A4BB038.7050401@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On 07/01/09 20:51, Anthony Liguori wrote: > Allowing multiple readers/writers for character devices is much more > complex to get right though. The current chardev API does not have good > semantics for just handling one client that connects and disconnects. It > certainly wouldn't gracefully handle multiple client states at once. > > You could do something like a mirrored mode but things get really ugly > when dealing with multiple read-write clients. I'm thinking about mirrored mode of course. Everything else doesn't make sense for guest devices. And you have that issue with Dan's current code already: -serial unix:, then connect via socket and via vnc. Voila, two read-write clients. > Think of how that would > behave with the monitor for instance. > I agree that for something like -monitor tcp::1025,server,nowait, you > want to be able to connect multiple times and get multiple monitor > sessions. Monitor is a special case. Multiple connections to the same session are not very useful there. Multiple sessions are a different (albeit related) problem. cheers, Gerd