From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: vhost-net patches Date: Wed, 28 Oct 2009 18:46:43 +0100 Message-ID: <200910281846.43741.arnd@arndb.de> References: <20091025091117.GA9270@redhat.com> <1256593067.10142.10.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Cc: "Michael S. Tsirkin" , Sridhar Samudrala , Shirley Ma , David Stevens , kvm@vger.kernel.org, sri@linux.vnet.ibm.com, mashirle@linux.vnet.ibm.com To: Shirley Ma Return-path: Received: from mtagate3.de.ibm.com ([195.212.17.163]:40094 "EHLO mtagate3.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755253AbZJ1Rql (ORCPT ); Wed, 28 Oct 2009 13:46:41 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.1/8.13.1) with ESMTP id n9SHkj0Q010165 for ; Wed, 28 Oct 2009 17:46:45 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9SHkjs81404934 for ; Wed, 28 Oct 2009 18:46:45 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n9SHki87026183 for ; Wed, 28 Oct 2009 18:46:45 +0100 In-Reply-To: <1256593067.10142.10.camel@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: On Monday 26 October 2009, Shirley Ma wrote: > On Sun, 2009-10-25 at 11:11 +0200, Michael S. Tsirkin wrote: > > What is vnet0? > > That's a tap interface. I am binding raw socket to a tap interface and > it doesn't work. Does it support? Is the tap device connected to a bridge as you'd normally do with qemu? That won't work because then the data you send to the socket will be queued at the /dev/tun chardev. You can probably connect it like this: qemu - vhost_net - vnet0 == /dev/tun - qemu To connect two guests. I've also used a bidirectional pipe before, to connect two tap interfaces to each other. However, if you want to connect to a bridge, the easier interface would be to use a veth pair, with one end on the bridge and the other end used for the packet socket. Arnd <><