From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NISNm-0006hM-A1 for qemu-devel@nongnu.org; Wed, 09 Dec 2009 14:39:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NISNh-0006fw-Rw for qemu-devel@nongnu.org; Wed, 09 Dec 2009 14:39:30 -0500 Received: from [199.232.76.173] (port=59870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NISNh-0006fo-Kv for qemu-devel@nongnu.org; Wed, 09 Dec 2009 14:39:25 -0500 Received: from mail-iw0-f197.google.com ([209.85.223.197]:58067) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NISNh-00051O-GO for qemu-devel@nongnu.org; Wed, 09 Dec 2009 14:39:25 -0500 Received: by iwn35 with SMTP id 35so194632iwn.4 for ; Wed, 09 Dec 2009 11:39:24 -0800 (PST) Message-ID: <4B1FFCE9.9040103@codemonkey.ws> Date: Wed, 09 Dec 2009 13:39:21 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <200912081841.45075.arnd@arndb.de> In-Reply-To: <200912081841.45075.arnd@arndb.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH, try 2] qemu/tap: add -net tap,dev= option List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arnd Bergmann Cc: qemu-devel@nongnu.org Arnd Bergmann wrote: > In order to support macvtap, we need a way to select the actual > tap endpoint. While it would be nice to pass it by network interface > name, passing the character device is more flexible, and we can > easily do both in the long run. > > Signed-off-by: Arnd Bergmann > This isn't really a generic thing and I dislike pretending it is. This is specifically for macvtap. If we were going to do this, I'd rather introduce a -net macvtap that actually allocated the interfaces (similar to how tap works). The problem with this interface is that it's a two stage process. You have to create an interface, then hand the name to qemu. It would be just as easy to hand qemu an fd with a helper. What's nice about -net tap is that with a little bit of setup (/etc/qemu-ifup), it Just Works. -net tap,dev= does not share this property. I think this is a good place where an exec helper would be a natural fit. Regards, Anthony Liguori