]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu: Add newly added cpu flags
authorPeter Krempa <pkrempa@redhat.com>
Tue, 30 Oct 2012 13:58:55 +0000 (14:58 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Nov 2012 19:52:40 +0000 (20:52 +0100)
This patch adds a few new processor feature flags. Namely:
 f16c rdrand lwp tbm topoext perfctr_core perfctr_nb fsgsbase bmi1 hle
 avx2 bmi2 erms invpcid rtm rdseed adx tce

src/cpu/cpu_map.xml

index f0a1f0480c63412f7a12b9825faa536f1596737c..11d16e693546af75ea79f18cd21d1932c2fbbaab 100644 (file)
     <feature name='avx'>
       <cpuid function='0x00000001' ecx='0x10000000'/>
     </feature>
+    <feature name='f16c'>
+      <cpuid function='0x00000001' ecx='0x20000000'/>
+    </feature>
+    <feature name='rdrand'>
+      <cpuid function='0x00000001' ecx='0x40000000'/>
+    </feature>
     <feature name='hypervisor'> <!-- CPUID_EXT_HYPERVISOR -->
       <cpuid function='0x00000001' ecx='0x80000000'/>
     </feature>
     <feature name='wdt'>
       <cpuid function='0x80000001' ecx='0x00002000'/>
     </feature>
+    <feature name='lwp'>
+      <cpuid function='0x80000001' ecx='0x00008000'/>
+    </feature>
     <feature name='fma4'>
       <cpuid function='0x80000001' ecx='0x00010000'/>
     </feature>
+    <feature name='tce'>
+      <cpuid function='0x80000001' ecx='0x00020000'/>
+    </feature>
     <feature name='cvt16'>
       <cpuid function='0x80000001' ecx='0x00040000'/>
     </feature>
     <feature name='nodeid_msr'>
       <cpuid function='0x80000001' ecx='0x00080000'/>
     </feature>
+    <feature name='tbm'>
+      <cpuid function='0x80000001' ecx='0x00200000'/>
+    </feature>
+    <feature name='topoext'>
+      <cpuid function='0x80000001' ecx='0x00400000'/>
+    </feature>
+    <feature name='perfctr_core'>
+      <cpuid function='0x80000001' ecx='0x00800000'/>
+    </feature>
+    <feature name='perfctr_nb'>
+      <cpuid function='0x80000001' ecx='0x01000000'/>
+    </feature>
 
     <!-- cpuid function 0x7 ecx 0x0 features -->
     <!-- We support only ecx 0x0 now as it's done by a workaround -->
+    <feature name='fsgsbase'>
+      <cpuid function='0x00000007' ebx='0x00000001'/>
+    </feature>
+    <feature name='bmi1'>
+      <cpuid function='0x00000007' ebx='0x00000008'/>
+    </feature>
+    <feature name='hle'>
+      <cpuid function='0x00000007' ebx='0x00000010'/>
+    </feature>
+    <feature name='avx2'>
+      <cpuid function='0x00000007' ebx='0x00000020'/>
+    </feature>
     <feature name='smep'>
       <cpuid function='0x00000007' ebx='0x00000080'/>
     </feature>
+    <feature name='bmi2'>
+      <cpuid function='0x00000007' ebx='0x00000100'/>
+    </feature>
+    <feature name='erms'>
+      <cpuid function='0x00000007' ebx='0x00000200'/>
+    </feature>
+    <feature name='invpcid'>
+      <cpuid function='0x00000007' ebx='0x00000400'/>
+    </feature>
+    <feature name='rtm'>
+      <cpuid function='0x00000007' ebx='0x00000800'/>
+    </feature>
+    <feature name='rdseed'>
+      <cpuid function='0x00000007' ebx='0x00040000'/>
+    </feature>
+    <feature name='adx'>
+      <cpuid function='0x00000007' ebx='0x00080000'/>
+    </feature>
     <feature name='smap'>
       <cpuid function='0x00000007' ebx='0x00100000'/>
     </feature>