From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEeMp-0002SR-Ve for qemu-devel@nongnu.org; Sun, 10 Mar 2013 07:24:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEeMo-0002bX-PD for qemu-devel@nongnu.org; Sun, 10 Mar 2013 07:24:39 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:45143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEeMo-0002bG-J1 for qemu-devel@nongnu.org; Sun, 10 Mar 2013 07:24:38 -0400 Received: by mail-pb0-f53.google.com with SMTP id un1so2747589pbc.12 for ; Sun, 10 Mar 2013 04:24:36 -0700 (PDT) Message-ID: <513C6DB0.9080406@ozlabs.ru> Date: Sun, 10 Mar 2013 22:25:36 +1100 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <513596D7.3060307@ozlabs.ru> <20130305125614.GA2256@redhat.com> <5135F16B.2010403@ozlabs.ru> <20130305142336.GE2256@redhat.com> <51367864.6080502@ozlabs.ru> <20130306103135.GD16921@redhat.com> <51396D84.3090404@ozlabs.ru> <20130310092402.GB8163@redhat.com> In-Reply-To: <20130310092402.GB8163@redhat.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU -netdev vhost=on + -device virtio-net-pci bug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: rusty@rustcorp.com.au, "qemu-devel@nongnu.org" , David Gibson On 10/03/13 20:24, Michael S. Tsirkin wrote: > On Fri, Mar 08, 2013 at 03:48:04PM +1100, Alexey Kardashevskiy wrote: >> Michael, >> >> Thanks for the fix. >> >> There was another question which was lost in the thread. >> >> I am testing virtio-net in two ways: >> >> Old -net interface: >> -net tap,ifname=tap0,script=qemu-ifup.sh \ >> -net nic,model=virtio,addr=0:0:0 >> >> (qemu) info network >> hub 0 >> \ virtio-net-pci.0: >> index=0,type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56 >> \ tap.0: index=0,type=tap,ifname=tap0,script=qemu-ifup.sh,downscript=/etc/qemu-ifdown >> >> New -netdev interface: >> -netdev tap,id=tapnet,ifname=tap0,script=qemu-ifup.sh \ >> -device virtio-net-pci,netdev=tapnet,addr=0.0 >> >> (qemu) info network >> virtio-net-pci.0: >> index=0,type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56 >> \ tapnet: index=0,type=tap,ifname=tap0,script=qemu-ifup.sh,downscript=/etc/qemu-ifdown >> >> >> I get very different virtio0 device features and speed (70MB/s vs. >> 700MB/s). I guess somehow the "hub 0" is responsible but there is no >> way to avoid it. >> >> Is there any way to speed up the virtio-net using the old -net interface? > > Not at the moment. Why do you want to use it? It is not like I really want it, I was just trying to understand (now it is more or less clear) why exactly "not" as the documentation is saying about -net and -netdev as synonyms while they are not. -- Alexey