Displaying 1 result from an estimated 1 matches for "core2_vpmu_do_cpuid".
2013 Mar 12
0
[PATCH] vpmu intel: pass through cpuid bits when BTS is enabled
....
Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
diff -r a6b81234b189 xen/arch/x86/hvm/vmx/vpmu_core2.c
--- a/xen/arch/x86/hvm/vmx/vpmu_core2.c Mon Mar 11 16:13:42 2013 +0000
+++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c Tue Mar 12 13:58:40 2013 +0100
@@ -607,6 +607,10 @@ static void core2_vpmu_do_cpuid(unsigned
{
/* Switch on the ''Debug Store'' feature in CPUID.EAX[1]:EDX[21] */
*edx |= cpufeat_mask(X86_FEATURE_DS);
+ if ( cpu_has(¤t_cpu_data, X86_FEATURE_DTES64) )
+ *ecx |= cpufeat_mask(X86_FEATURE_DTES64);
+...