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: Wed, 31 Aug 2011 09:30:27 +0200 Message-ID: <4E5DE313.1050509@web.de> References: <4E5D0FF3.6030705@genband.com> <4E5D23F5.3070905@gmail.com> <4E5D27B5.8090004@genband.com> <4E5D2C68.2050801@gmail.com> <4E5D3C67.1020908@genband.com> <4E5D413D.1070700@web.de> <4E5D6C34.6040907@genband.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig24B80DEA067427E38A27FD27" Cc: David Ahern , Avi Kivity , mtosatti@redhat.com, kvm@vger.kernel.org To: Chris Friesen Return-path: Received: from fmmailgate02.web.de ([217.72.192.227]:37069 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754690Ab1HaHcW (ORCPT ); Wed, 31 Aug 2011 03:32:22 -0400 In-Reply-To: <4E5D6C34.6040907@genband.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig24B80DEA067427E38A27FD27 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2011-08-31 01:03, Chris Friesen wrote: > On 08/30/2011 01:59 PM, Jan Kiszka wrote: >> On 2011-08-30 21:39, Chris Friesen wrote: >=20 >>> 2) If I create such a link, it builds a few files, and then gives the= >>> following: >>> >>> /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 >>> appears in >>> >>> >>> 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 x8= 6.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? >=20 >=20 > It would appear that I got the explanation wrong. CONFIG_PROFILING is > enabled on my kernel. The problem is that our OS vendor has included a= > patch to convert prof_on to immediate values, which requires a change i= n > x86.c. Ah, now I remember: LTTng fallouts. I think there was just some EXPORT_SYMBOL missing in the kernel, but my memory is weak. Jan --------------enig24B80DEA067427E38A27FD27 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/ iEYEARECAAYFAk5d4xcACgkQitSsb3rl5xS6ZACgjuNgBXlR/ZG+LS+1L/nrfqLY 7OEAoJHVDtdPcZ58Te0tUiGpMqh6t8Fn =XO88 -----END PGP SIGNATURE----- --------------enig24B80DEA067427E38A27FD27--