libxc: Enable cpuid performance counter leaf for HVM
authorJuergen Gross <juergen.gross@ts.fujitsu.com>
Thu, 15 Sep 2011 14:26:07 +0000 (15:26 +0100)
committerJuergen Gross <juergen.gross@ts.fujitsu.com>
Thu, 15 Sep 2011 14:26:07 +0000 (15:26 +0100)
In HVM domains the usable performance counters can be checked
automatically only, if cpuid leaf 0x0000000a is accessible.

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_cpuid_x86.c

index 0796ae91d20821970520072fc7c7873d93581d4e..74dc4ca6bfaef49ad6e28886e19424adca8f3d86 100644 (file)
@@ -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         */