mirror of https://gitee.com/openkylin/libvirt.git
cpu: Sort CPU map features on eax_in
As a side effect this changes the order of CPU features in XMLs generated by libvirt, but that's not a big deal since the order there is insignificant. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
177bbc672f
commit
4c39a448e8
|
@ -188,6 +188,65 @@
|
|||
<cpuid eax_in='0x01' ecx='0x80000000'/>
|
||||
</feature>
|
||||
|
||||
<!-- cpuid function 0x7 ecx 0x0 features -->
|
||||
<feature name='fsgsbase'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000001'/>
|
||||
</feature>
|
||||
<feature name='tsc_adjust'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000002'/>
|
||||
</feature>
|
||||
<feature name='bmi1'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000008'/>
|
||||
</feature>
|
||||
<feature name='hle'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000010'/>
|
||||
</feature>
|
||||
<feature name='avx2'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000020'/>
|
||||
</feature>
|
||||
<feature name='smep'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000080'/>
|
||||
</feature>
|
||||
<feature name='bmi2'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000100'/>
|
||||
</feature>
|
||||
<feature name='erms'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000200'/>
|
||||
</feature>
|
||||
<feature name='invpcid'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000400'/>
|
||||
</feature>
|
||||
<feature name='rtm'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000800'/>
|
||||
</feature>
|
||||
<feature name='mpx'>
|
||||
<cpuid eax_in='0x07' ebx='0x00004000'/>
|
||||
</feature>
|
||||
<feature name='avx512f'> <!-- AVX-512 Foundation -->
|
||||
<cpuid eax_in='0x07' ebx='0x00010000'/>
|
||||
</feature>
|
||||
<feature name='rdseed'>
|
||||
<cpuid eax_in='0x07' ebx='0x00040000'/>
|
||||
</feature>
|
||||
<feature name='adx'>
|
||||
<cpuid eax_in='0x07' ebx='0x00080000'/>
|
||||
</feature>
|
||||
<feature name='smap'>
|
||||
<cpuid eax_in='0x07' ebx='0x00100000'/>
|
||||
</feature>
|
||||
<feature name='clflushopt'>
|
||||
<cpuid eax_in='0x07' ebx='0x00800000'/>
|
||||
</feature>
|
||||
<feature name='avx512pf'> <!-- AVX-512 Prefetch -->
|
||||
<cpuid eax_in='0x07' ebx='0x04000000'/>
|
||||
</feature>
|
||||
<feature name='avx512er'> <!-- AVX-512 Exponential and Reciprocal -->
|
||||
<cpuid eax_in='0x07' ebx='0x08000000'/>
|
||||
</feature>
|
||||
<feature name='avx512cd'> <!-- AVX-512 Conflict Detection -->
|
||||
<cpuid eax_in='0x07' ebx='0x10000000'/>
|
||||
</feature>
|
||||
|
||||
<!-- extended features, EDX -->
|
||||
<feature name='syscall'> <!-- CPUID_EXT2_SYSCALL -->
|
||||
<cpuid eax_in='0x80000001' edx='0x00000800'/>
|
||||
|
@ -288,65 +347,6 @@
|
|||
<cpuid eax_in='0x80000001' ecx='0x01000000'/>
|
||||
</feature>
|
||||
|
||||
<!-- cpuid function 0x7 ecx 0x0 features -->
|
||||
<feature name='fsgsbase'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000001'/>
|
||||
</feature>
|
||||
<feature name='tsc_adjust'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000002'/>
|
||||
</feature>
|
||||
<feature name='bmi1'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000008'/>
|
||||
</feature>
|
||||
<feature name='hle'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000010'/>
|
||||
</feature>
|
||||
<feature name='avx2'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000020'/>
|
||||
</feature>
|
||||
<feature name='smep'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000080'/>
|
||||
</feature>
|
||||
<feature name='bmi2'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000100'/>
|
||||
</feature>
|
||||
<feature name='erms'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000200'/>
|
||||
</feature>
|
||||
<feature name='invpcid'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000400'/>
|
||||
</feature>
|
||||
<feature name='rtm'>
|
||||
<cpuid eax_in='0x07' ebx='0x00000800'/>
|
||||
</feature>
|
||||
<feature name='mpx'>
|
||||
<cpuid eax_in='0x07' ebx='0x00004000'/>
|
||||
</feature>
|
||||
<feature name='avx512f'> <!-- AVX-512 Foundation -->
|
||||
<cpuid eax_in='0x07' ebx='0x00010000'/>
|
||||
</feature>
|
||||
<feature name='rdseed'>
|
||||
<cpuid eax_in='0x07' ebx='0x00040000'/>
|
||||
</feature>
|
||||
<feature name='adx'>
|
||||
<cpuid eax_in='0x07' ebx='0x00080000'/>
|
||||
</feature>
|
||||
<feature name='smap'>
|
||||
<cpuid eax_in='0x07' ebx='0x00100000'/>
|
||||
</feature>
|
||||
<feature name='clflushopt'>
|
||||
<cpuid eax_in='0x07' ebx='0x00800000'/>
|
||||
</feature>
|
||||
<feature name='avx512pf'> <!-- AVX-512 Prefetch -->
|
||||
<cpuid eax_in='0x07' ebx='0x04000000'/>
|
||||
</feature>
|
||||
<feature name='avx512er'> <!-- AVX-512 Exponential and Reciprocal -->
|
||||
<cpuid eax_in='0x07' ebx='0x08000000'/>
|
||||
</feature>
|
||||
<feature name='avx512cd'> <!-- AVX-512 Conflict Detection -->
|
||||
<cpuid eax_in='0x07' ebx='0x10000000'/>
|
||||
</feature>
|
||||
|
||||
<!-- Advanced Power Management edx features -->
|
||||
<feature name='invtsc' migratable='no'>
|
||||
<cpuid eax_in='0x80000007' edx='0x00000100'/>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<feature policy='require' name='ht'/>
|
||||
<feature policy='require' name='monitor'/>
|
||||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='bmi1'/>
|
||||
<feature policy='require' name='mmxext'/>
|
||||
<feature policy='require' name='fxsr_opt'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
|
@ -21,6 +22,5 @@
|
|||
<feature policy='require' name='topoext'/>
|
||||
<feature policy='require' name='perfctr_core'/>
|
||||
<feature policy='require' name='perfctr_nb'/>
|
||||
<feature policy='require' name='bmi1'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<feature name='ht'/>
|
||||
<feature name='monitor'/>
|
||||
<feature name='osxsave'/>
|
||||
<feature name='bmi1'/>
|
||||
<feature name='mmxext'/>
|
||||
<feature name='fxsr_opt'/>
|
||||
<feature name='cmp_legacy'/>
|
||||
|
@ -21,6 +22,5 @@
|
|||
<feature name='topoext'/>
|
||||
<feature name='perfctr_core'/>
|
||||
<feature name='perfctr_nb'/>
|
||||
<feature name='bmi1'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
<feature policy='require' name='vme'/>
|
||||
<feature policy='require' name='x2apic'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='bmi1'/>
|
||||
<feature policy='require' name='mmxext'/>
|
||||
<feature policy='require' name='fxsr_opt'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
<feature policy='require' name='cr8legacy'/>
|
||||
<feature policy='require' name='osvw'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='bmi1'/>
|
||||
<feature policy='disable' name='rdtscp'/>
|
||||
<feature policy='disable' name='svm'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<feature name='osxsave'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='mpx'/>
|
||||
<feature policy='require' name='clflushopt'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
<feature name='osxsave'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='mpx'/>
|
||||
<feature name='clflushopt'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='mpx'/>
|
||||
<feature policy='require' name='clflushopt'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<feature name='osxsave'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
<feature name='osxsave'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
</cpu>
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
<feature policy='require' name='x2apic'/>
|
||||
<feature policy='require' name='tsc-deadline'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='mmxext'/>
|
||||
<feature policy='require' name='fxsr_opt'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
<feature policy='require' name='cr8legacy'/>
|
||||
<feature policy='require' name='osvw'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='disable' name='rdtscp'/>
|
||||
<feature policy='disable' name='svm'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='mpx'/>
|
||||
<feature policy='require' name='clflushopt'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
<feature name='osxsave'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='mpx'/>
|
||||
<feature name='clflushopt'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='mpx'/>
|
||||
<feature policy='require' name='clflushopt'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
</cpu>
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<feature name='osxsave'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
</cpu>
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='f16c'/>
|
||||
<feature policy='require' name='rdrand'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='abm'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<feature name='osxsave'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='tsc_adjust'/>
|
||||
<feature name='invtsc'/>
|
||||
</cpu>
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
<feature policy='require' name='ss'/>
|
||||
<feature policy='require' name='pcid'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='pdpe1gb'/>
|
||||
<feature policy='disable' name='xsave'/>
|
||||
<feature policy='disable' name='avx'/>
|
||||
</cpu>
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
<feature policy='require' name='ss'/>
|
||||
<feature policy='require' name='x2apic'/>
|
||||
<feature policy='require' name='hypervisor'/>
|
||||
<feature policy='require' name='rdtscp'/>
|
||||
<feature policy='require' name='tsc_adjust'/>
|
||||
<feature policy='require' name='rdtscp'/>
|
||||
</cpu>
|
||||
|
|
Loading…
Reference in New Issue