On 08/30/2011 01:59 PM, Jan Kiszka wrote:
On 2011-08-30 21:39, Chris Friesen wrote:

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
‘vcpu_enter_guest’:
/home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c:5539:26: error:
‘prof_on’ 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 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?


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 in x86.c.

Never mind, nothing to see here.

Chris


--
Chris Friesen
Software Developer
GENBAND
chris.frie...@genband.com
www.genband.com
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to