[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] vpmu intel: pass through cpuid bits when BTS is enabled


  • To: xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
  • Date: Tue, 12 Mar 2013 14:09:19 +0100
  • Delivery-date: Tue, 12 Mar 2013 13:09:35 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:Message-ID: User-Agent:MIME-Version:Content-Transfer-Encoding: Content-Type; b=iKcTOx2S0gjbfYA390/IqAK1eWY2d+F4oRHbKP1ucShcWgzfe5h8naOG 6MKMXBUfJsg7bUtX6ExNLlXGR1T9DJn2RkwhOIXsqUD6eauQ5EPnvJaIJ oTQlu+BHcVRx0wfPVO/0pTBy9fJJ3x3gPPPsWd26yro3vlWXiCu5cuvNz Go/Ss9ciuvMC+lwVw4oByfDwwGv7pIlZKSpSH6jsvHtBvKr7X5zbnvPCE sSxIlmHX8AR4WmrFvtHGGkODxTPhp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi,

this patch passes the orginal cpuid bits for X86_FEATURE_DTES64
(64-bit DS Area) and X86_FEATURE_DSCPL (CPL Qualified Debug Store) to the
guest when the BTS feature is switched on.
I forgot this when I did this BTS emulation.
Thanks.

Dietmar.


Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>


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(&current_cpu_data, X86_FEATURE_DTES64) )
+                *ecx |= cpufeat_mask(X86_FEATURE_DTES64);
+            if ( cpu_has(&current_cpu_data, X86_FEATURE_DSCPL) )
+                *ecx |= cpufeat_mask(X86_FEATURE_DSCPL);
         }
     }
 }


-- 
Company details: http://ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.