From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCHv4 6/6] qemu-kvm: vhost-net implementation Date: Thu, 5 Nov 2009 10:23:41 +0200 Message-ID: <20091105082341.GC5774@redhat.com> References: <20091102222433.GG15153@redhat.com> <1257380527.30511.677.camel@w-sridhar.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, gregory.haskins@gmail.com, David Stevens , Shirley Ma To: Sridhar Samudrala Return-path: Received: from mx1.redhat.com ([209.132.183.28]:24870 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754797AbZKEI0Q (ORCPT ); Thu, 5 Nov 2009 03:26:16 -0500 Content-Disposition: inline In-Reply-To: <1257380527.30511.677.camel@w-sridhar.beaverton.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Nov 04, 2009 at 04:22:07PM -0800, Sridhar Samudrala wrote: > On Tue, 2009-11-03 at 00:24 +0200, Michael S. Tsirkin wrote: > > This adds support for vhost-net virtio kernel backend. > > > > This patch is not intended to being merged yet. > > I'm posting it for the benefit of people testing > > the backend. > > > > Usage instructions: > > vhost currently requires MSI-X support in guest virtio. > > This means guests kernel version should be >= 2.6.31. > > > > To enable vhost, simply add ",vhost" flag to nic options. > > Example with tap backend: > > qemu-system-x86_64 -m 1G disk-c.qcow2 \ > > -net tap,ifname=msttap0,script=/home/mst/ifup,downscript=no \ > > -net nic,model=virtio,vhost > > > > Example with raw socket backend: > > ifconfig eth3 promisc > > qemu-system-x86_64 -m 1G disk-c.qcow2 \ > > -net raw,ifname=eth3 \ > > -net nic,model=virtio,vhost > > As the vhost is a backend feature, i think the 'vhost' flag should > be added to the -net tap or -net raw option rather than the -net nic > which specifies the guest options. > > Thanks > Sridhar Yes. -- MST