From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: help? need to enable VT-d for 2.6.27 Date: Tue, 30 Aug 2011 21:59:57 +0200 Message-ID: <4E5D413D.1070700@web.de> References: <4E5D0FF3.6030705@genband.com> <4E5D23F5.3070905@gmail.com> <4E5D27B5.8090004@genband.com> <4E5D2C68.2050801@gmail.com> <4E5D3C67.1020908@genband.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig20DF50FAE1FC5D175A01220D" Cc: David Ahern , Avi Kivity , mtosatti@redhat.com, kvm@vger.kernel.org To: Chris Friesen Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:39406 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754141Ab1H3UAJ (ORCPT ); Tue, 30 Aug 2011 16:00:09 -0400 In-Reply-To: <4E5D3C67.1020908@genband.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig20DF50FAE1FC5D175A01220D Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2011-08-30 21:39, Chris Friesen wrote: > On 08/30/2011 12:31 PM, David Ahern wrote: >=20 >> In my case I am setting the MAC address for the VFs in the host at boo= t; >> they are getting reset on passthrough so the VM driver creates a rando= m >> one. A backport of commit a6b5ea3 fixes one aspect. Looking at the cod= e >> for the igb driver I think commit 8fa7e0f fixes the other reset proble= m. >> >> 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 testi= ng >> 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 would= >> be interested in what you learn. >=20 > I downloaded the latest kvm-kmod release. It looks interesting, but it= > has some issues: >=20 > 1) I use separate source and build output directories. kvm-kmod assume= s > that there is a "source" link in my build output directory pointing bac= k > to the source directory. This doesn't exist, so the build breaks. That's at least how recent vanilla kernels work. I think to remember that my old OpenSUSE 11.1 (2.6.27) used to work fine with kvm-kmod as well, and that was an out-of-tree setup too (but maybe a post-processed one). Anyway, if you have some patch to fix this, it will always be welcome. >=20 > 2) If I create such a link, it builds a few files, and then gives the > following: >=20 > /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c: In function > =91vcpu_enter_guest=92: > /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c:5539:26: error: > =91prof_on=92 undeclared (first use in this function) > /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c:5539:26: note: each > undeclared identifier is reported only once for each function it appear= s in >=20 >=20 > This appears to be due to the fact that KVM_PROFILING is defined > unconditionally in my kernel, but "prof_on" is only defined if > CONFIG_PROFILING is enabled. Commenting out that chunk of code in x86.= c > lets everything build. If CONFIG_PROFILING is off, prof_on is defined to 0. But we may miss some include on older kernels. Does adding linux/profile.h to x86.c solve the issue as well? Jan --------------enig20DF50FAE1FC5D175A01220D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5dQT0ACgkQitSsb3rl5xSKvACgsAXIkpgdsT3eLrXCL5NKKcAE 7swAniiCCogQsZvtweomHd/E6gMM25tW =Szhw -----END PGP SIGNATURE----- --------------enig20DF50FAE1FC5D175A01220D--