From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: [PATCH] Enable cpuid performance counter leaf for HVM Date: Thu, 08 Sep 2011 15:29:34 +0200 Message-ID: <8244f714acf1cc2bc085.1315488574@nehalem1> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7140145364159150585==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============7140145364159150585== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit In HVM domains the usable performance counters can be checked automatically only, if cpuid leaf 0x0000000a is accessible. Signed-off-by: juergen.gross@ts.fujitsu.com 1 file changed, 1 insertion(+) tools/libxc/xc_cpuid_x86.c | 1 + --===============7140145364159150585== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-staging.hg.patch # HG changeset patch # User Juergen Gross # Date 1315488544 -7200 # Node ID 8244f714acf1cc2bc08517a34dc241380f9648e6 # Parent bdd19847ae63b5dfb036e228cb16ec3ae678e995 Enable cpuid performance counter leaf for HVM In HVM domains the usable performance counters can be checked automatically only, if cpuid leaf 0x0000000a is accessible. Signed-off-by: juergen.gross@ts.fujitsu.com diff -r bdd19847ae63 -r 8244f714acf1 tools/libxc/xc_cpuid_x86.c --- a/tools/libxc/xc_cpuid_x86.c Wed Sep 07 10:37:48 2011 +0100 +++ b/tools/libxc/xc_cpuid_x86.c Thu Sep 08 15:29:04 2011 +0200 @@ -392,6 +392,7 @@ static void xc_cpuid_hvm_policy( case 0x00000002: /* Intel cache info (dumped by AMD policy) */ case 0x00000004: /* Intel cache info (dumped by AMD policy) */ + case 0x0000000a: /* Architectural Performance Monitor Features */ case 0x80000002: /* Processor name string */ case 0x80000003: /* ... continued */ case 0x80000004: /* ... continued */ --===============7140145364159150585== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============7140145364159150585==--