From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59977 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLzwe-0001ee-CS for qemu-devel@nongnu.org; Tue, 08 Jun 2010 10:38:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLzwZ-0002sh-Bq for qemu-devel@nongnu.org; Tue, 08 Jun 2010 10:38:24 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:40317) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLzwZ-0002sd-2u for qemu-devel@nongnu.org; Tue, 08 Jun 2010 10:38:19 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] configure: add an option to disable vlans Date: Tue, 8 Jun 2010 15:37:21 +0100 References: <20100607150309.GA13369@redhat.com> <4C0E3F63.6090103@codemonkey.ws> <4C0E52ED.60305@redhat.com> In-Reply-To: <4C0E52ED.60305@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006081537.22364.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, "Michael S. Tsirkin" > I see three possible options to handle this. > > (1) Write a hub (or morph the current vlan code into this). Then > you can do something like: > > qemu -netdev socket,id=p1 \ > -netdev user,id=p2 \ > -netdev dump,id=p3 \ > -switch peer=p1,peer=p2,monitor=p3,port=p4 \ > -device $nic,netdev=p4 > > (2) Implement the same as external daemon which can be combined with > -netdev socket. > > (3) Just point people who need this to the various virtual switch > projects (vde, ...) they can use and drop vlan. (2) is just a special case of (3), where we decide that the existing implementations suck and go write our own. Paul