From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Friesen Subject: Re: help? need to enable VT-d for 2.6.27 Date: Tue, 30 Aug 2011 13:39:19 -0600 Message-ID: <4E5D3C67.1020908@genband.com> References: <4E5D0FF3.6030705@genband.com> <4E5D23F5.3070905@gmail.com> <4E5D27B5.8090004@genband.com> <4E5D2C68.2050801@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Avi Kivity , mtosatti@redhat.com, kvm@vger.kernel.org To: David Ahern Return-path: Received: from exprod7og112.obsmtp.com ([64.18.2.177]:48928 "EHLO exprod7og112.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756161Ab1H3Tj2 (ORCPT ); Tue, 30 Aug 2011 15:39:28 -0400 In-Reply-To: <4E5D2C68.2050801@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/30/2011 12:31 PM, David Ahern wrote: > In my case I am setting the MAC address for the VFs in the host at bo= ot; > they are getting reset on passthrough so the VM driver creates a rand= om > one. A backport of commit a6b5ea3 fixes one aspect. Looking at the co= de > for the igb driver I think commit 8fa7e0f fixes the other reset probl= em. > > On the plus side I can tell you that the VF driver for the VM > http://sourceforge.net/projects/e1000/files/igbvf%20stable/ > > compiles cleaning against WRL3 and appears to work fine (limited test= ing > with benchmarks). > > kernel module wise I ran some basic KVM tests with kvm-kmod-2.6.32.27= ; I > have not tried VF passthrough. This is on my radar as well, so I woul= d > be interested in what you learn. I downloaded the latest kvm-kmod release. It looks interesting, but it= =20 has some issues: 1) I use separate source and build output directories. kvm-kmod assume= s=20 that there is a "source" link in my build output directory pointing bac= k=20 to the source directory. This doesn't exist, so the build breaks. 2) If I create such a link, it builds a few files, and then gives the=20 following: /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c: In function=20 =91vcpu_enter_guest=92: /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c:5539:26: error:=20 =91prof_on=92 undeclared (first use in this function) /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c:5539:26: note: each=20 undeclared identifier is reported only once for each function it appear= s in This appears to be due to the fact that KVM_PROFILING is defined=20 unconditionally in my kernel, but "prof_on" is only defined if=20 CONFIG_PROFILING is enabled. Commenting out that chunk of code in x86.= c=20 lets everything build. I haven't tried actually loading it yet, that will be next. Thanks for the pointer. Chris --=20 Chris Friesen Software Developer GENBAND chris.friesen@genband.com www.genband.com