From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEbO9-00037T-LP for qemu-devel@nongnu.org; Wed, 07 Dec 2016 07:32:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEbO5-00063U-HP for qemu-devel@nongnu.org; Wed, 07 Dec 2016 07:31:57 -0500 Received: from mail-ua0-f177.google.com ([209.85.217.177]:35373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cEbO5-00062y-Cw for qemu-devel@nongnu.org; Wed, 07 Dec 2016 07:31:53 -0500 Received: by mail-ua0-f177.google.com with SMTP id 12so413534562uas.2 for ; Wed, 07 Dec 2016 04:31:53 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20161207120419.GA1476@redhat.com> References: <20161207120419.GA1476@redhat.com> From: Peter Maydell Date: Wed, 7 Dec 2016 12:30:31 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] qemu -netdev tun/tap support can't handle macvtap type devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: QEMU Developers , Jason Wang On 7 December 2016 at 12:04, Daniel P. Berrange wrote: > On Wed, Dec 07, 2016 at 12:01:14PM +0000, Peter Maydell wrote: >> The usual suggested workaround is to use the -netdev fd option, like >> fd=3 3<>/dev/tap$(< /sys/class/net/tap0/ifindex) >> (which gets the shell to open the right /dev/tap device). >> Unfortunately this isn't compatible with multi-queue support >> because netdev complains >> "ifname=, script=, downscript=, vnet_hdr=, helper=, queues=, fds=, >> and vhostfds= are invalid with fd=" >> so you can't pass options like "queues=4"... > > FWIW you should be able to instead do > > fds=3 3<>/dev/tap$(< /sys/class/net/tap0/ifindex) > > note 'fds' plural, instead of 'fd' What's the difference between that and the "usual suggested workaround" I described above that doesn't work with queues=... ? thanks -- PMM