From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFrPR-00060U-BL for qemu-devel@nongnu.org; Wed, 02 Dec 2009 10:46:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFrPM-0005tU-Ho for qemu-devel@nongnu.org; Wed, 02 Dec 2009 10:46:28 -0500 Received: from [199.232.76.173] (port=40338 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFrPM-0005tC-AG for qemu-devel@nongnu.org; Wed, 02 Dec 2009 10:46:24 -0500 Received: from mail-pz0-f173.google.com ([209.85.222.173]:53896) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFrPL-0006ud-V9 for qemu-devel@nongnu.org; Wed, 02 Dec 2009 10:46:24 -0500 Received: by pzk3 with SMTP id 3so219679pzk.20 for ; Wed, 02 Dec 2009 07:46:23 -0800 (PST) Message-ID: <4B168BCA.4010602@codemonkey.ws> Date: Wed, 02 Dec 2009 09:46:18 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH, RFC] tap-linux: support opening arbitrary char devices References: <200911262034.04440.arnd@arndb.de> In-Reply-To: <200911262034.04440.arnd@arndb.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: > With the upcoming macvtap, we will want to open devices other than > /dev/net/tun but no longer need to call TUNSETIFF. > What are the names of these devices and how do you the character devices get created in the first place? This really isn't an "arbitrary" char device as it doesn't implement the same interface as tap. Creation is done in a different manner. > This makes it possible to do 'qemu -net tap,ifname=/dev/tap/macvtap0' > to refer to a chardev in addition to the current way of doing > 'qemu -net tap,ifname=tap0' to refer to a tap network interface > set with TUNSETIFF. This is consistent with what we do on BSD. > We definitely don't want to overload ifname like this. /dev/tap/macvtap0 is clearly not the interface name. Regards, Anthony Liguori