xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Enable cpuid performance counter leaf for HVM
@ 2011-09-08 13:29 Juergen Gross
  2011-09-15 14:26 ` Ian Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Gross @ 2011-09-08 13:29 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

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 +



[-- Attachment #2: xen-staging.hg.patch --]
[-- Type: text/x-patch, Size: 1018 bytes --]

# HG changeset patch
# User Juergen Gross <juergen.gross@ts.fujitsu.com>
# 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         */

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-15 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08 13:29 [PATCH] Enable cpuid performance counter leaf for HVM Juergen Gross
2011-09-15 14:26 ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).