From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYf6W-0007H6-9d for qemu-devel@nongnu.org; Thu, 08 Dec 2011 09:37:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYf6V-0005SR-1V for qemu-devel@nongnu.org; Thu, 08 Dec 2011 09:37:44 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:50831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYf6U-0005S5-Np for qemu-devel@nongnu.org; Thu, 08 Dec 2011 09:37:42 -0500 Received: by iafj26 with SMTP id j26so3044347iaf.4 for ; Thu, 08 Dec 2011 06:37:41 -0800 (PST) Message-ID: <4EE0CBB2.8010402@codemonkey.ws> Date: Thu, 08 Dec 2011 08:37:38 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <20111205222208.31271.65662.stgit@ginnungagap.bsc.es> <20111205222312.31271.66303.stgit@ginnungagap.bsc.es> <4EDE7343.3010305@codemonkey.ws> <87ty5d1gfw.fsf@ginnungagap.bsc.es> <4EDE98BA.9070902@codemonkey.ws> <4EDF6EFE.3040303@codemonkey.ws> <4EDFC20B.8010604@linux.vnet.ibm.com> <4EDFC41C.9030003@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Insane virtio-serial semantics List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Blue Swirl , Michael Roth , qemu-devel@nongnu.org, Zhi Yong Wu , amit.shah@redhat.com, Cam Macdonell , =?ISO-8859-1?Q?Llu=EDs_Vilanova?= On 12/08/2011 04:11 AM, Markus Armbruster wrote: > Anthony Liguori writes: >> And yes, I can't help but think of Dave Millers comments long ago that >> any PV transport is eventually going to reinvent TCP, poorly. > > No doubt then, no doubt now. But if I remember correctly, we didn't > create virtio-serial because we thought we could do better than TCP/IP. > We thought we need a zero-config communication channel that doesn't > interfere in any way with the guest's networking. Since the network > folks were unwilling to give us one ("use TCP already"), we looked for > another bare metal thing to imitate, and chose serial lines. > > Now, comparing serial lines to TCP/IP makes no sense. Different layers. virtio-serial is not a serial line. It attempts to have connection semantics (like a socket) which is what the fundamental problem is. It probably makes sense to have a virtio-serial2 that is exposed to the guest as a tty device and stick strictly to serial semantics. > Layering a real network protocol on top of serial line is possible; SLIP > exists. But as long as we insist on "don't interfere in any way with > the guest's networking", we can't use TCP, and thus are doomed to > reinvent it, poorly. I think we just got too clever. Regards, Anthony Liguori