From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCHv3 0/4] qemu-kvm: vhost net support Date: Wed, 19 Aug 2009 00:04:11 +0300 Message-ID: <20090818210411.GD20393@redhat.com> References: <20090817123701.GA10700@redhat.com> <7162ab20908181354g653ecd2ch3b3dc36ca16babff@mail.gmail.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 To: Alex Williamson Return-path: Received: from mx2.redhat.com ([66.187.237.31]:35571 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750717AbZHRVFe (ORCPT ); Tue, 18 Aug 2009 17:05:34 -0400 Content-Disposition: inline In-Reply-To: <7162ab20908181354g653ecd2ch3b3dc36ca16babff@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Aug 18, 2009 at 02:54:23PM -0600, Alex Williamson wrote: > On Mon, Aug 17, 2009 at 6:37 AM, Michael S. Tsirkin wrote: > > This adds support for vhost-net virtio kernel backend. > > > > This is RFC, but works without issues for me. > > I got this to build by syncing up some headers in kvm/include/linux, > but it doesn't seem to be working quite right. I have an unused > e1000e nic in my system (eth10,00:17:a4:77:a4:08) that I ifconfig up, > then launch a VM with the option: > > -net nic,model=virtio,macaddr=00:17:a4:77:a4:08,vhost=eth10 > > The virtio nic is functional in the guest, but it gets packet dupes on > ping, which is likely contributing to the poor performance, roughly > 1/3rd of virtio-net userspace for tcp_stream and tcp_rr. I think I > have all the offload option disabled on the nic in the host. Any idea > what I might be doing wrong? This seems quite a bit off of the udp_rr > results you posted. Thanks, > > Alex Did you assign ip address in host by any chance? You don't want that. -- MST