mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
cpu_map: Defined and enable EPYC-Rome model
Signed-off-by: Markus Schade <markus.schade@hetzner.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
e06590f170
commit
f941639f86
@ -66,6 +66,7 @@
|
||||
<include filename="x86_Opteron_G5.xml"/>
|
||||
<include filename="x86_EPYC.xml"/>
|
||||
<include filename="x86_EPYC-IBPB.xml"/>
|
||||
<include filename="x86_EPYC-Rome.xml"/>
|
||||
|
||||
<!-- Hygon CPU models -->
|
||||
<include filename="x86_Dhyana.xml"/>
|
||||
|
@ -32,6 +32,7 @@ cpumap_data = [
|
||||
'x86_Dhyana.xml',
|
||||
'x86_EPYC-IBPB.xml',
|
||||
'x86_EPYC.xml',
|
||||
'x86_EPYC-Rome.xml',
|
||||
'x86_features.xml',
|
||||
'x86_Haswell-IBRS.xml',
|
||||
'x86_Haswell-noTSX-IBRS.xml',
|
||||
|
84
src/cpu_map/x86_EPYC-Rome.xml
Normal file
84
src/cpu_map/x86_EPYC-Rome.xml
Normal file
@ -0,0 +1,84 @@
|
||||
<cpus>
|
||||
<model name='EPYC-Rome'>
|
||||
<decode host='on' guest='on'/>
|
||||
<signature family='23' model='49'/>
|
||||
<vendor name='AMD'/>
|
||||
<feature name='3dnowprefetch'/>
|
||||
<feature name='abm'/>
|
||||
<feature name='adx'/>
|
||||
<feature name='aes'/>
|
||||
<feature name='amd-stibp'/>
|
||||
<feature name='apic'/>
|
||||
<feature name='arat'/>
|
||||
<feature name='avx'/>
|
||||
<feature name='avx2'/>
|
||||
<feature name='bmi1'/>
|
||||
<feature name='bmi2'/>
|
||||
<feature name='clflush'/>
|
||||
<feature name='clflushopt'/>
|
||||
<feature name='clwb'/>
|
||||
<feature name='clzero'/>
|
||||
<feature name='cmov'/>
|
||||
<feature name='cr8legacy'/>
|
||||
<feature name='cx16'/>
|
||||
<feature name='cx8'/>
|
||||
<feature name='de'/>
|
||||
<feature name='f16c'/>
|
||||
<feature name='fma'/>
|
||||
<feature name='fpu'/>
|
||||
<feature name='fsgsbase'/>
|
||||
<feature name='fxsr'/>
|
||||
<feature name='fxsr_opt'/>
|
||||
<feature name='ibpb'/>
|
||||
<feature name='lahf_lm'/>
|
||||
<feature name='lm'/>
|
||||
<feature name='mca'/>
|
||||
<feature name='mce'/>
|
||||
<feature name='misalignsse'/>
|
||||
<feature name='mmx'/>
|
||||
<feature name='mmxext'/>
|
||||
<feature name='monitor'/>
|
||||
<feature name='movbe'/>
|
||||
<feature name='msr'/>
|
||||
<feature name='mtrr'/>
|
||||
<feature name='npt'/>
|
||||
<feature name='nrip-save'/>
|
||||
<feature name='nx'/>
|
||||
<feature name='osvw'/>
|
||||
<feature name='pae'/>
|
||||
<feature name='pat'/>
|
||||
<feature name='pclmuldq'/>
|
||||
<feature name='pdpe1gb'/>
|
||||
<feature name='perfctr_core'/>
|
||||
<feature name='pge'/>
|
||||
<feature name='pni'/>
|
||||
<feature name='popcnt'/>
|
||||
<feature name='pse'/>
|
||||
<feature name='pse36'/>
|
||||
<feature name='rdpid'/>
|
||||
<feature name='rdrand'/>
|
||||
<feature name='rdseed'/>
|
||||
<feature name='rdtscp'/>
|
||||
<feature name='sep'/>
|
||||
<feature name='sha-ni'/>
|
||||
<feature name='smap'/>
|
||||
<feature name='smep'/>
|
||||
<feature name='sse'/>
|
||||
<feature name='sse2'/>
|
||||
<feature name='sse4.1'/>
|
||||
<feature name='sse4.2'/>
|
||||
<feature name='sse4a'/>
|
||||
<feature name='ssse3'/>
|
||||
<feature name='svm'/>
|
||||
<feature name='syscall'/>
|
||||
<feature name='tsc'/>
|
||||
<feature name='umip'/>
|
||||
<feature name='vme'/>
|
||||
<feature name='wbnoinvd'/>
|
||||
<feature name='xgetbv1'/>
|
||||
<feature name='xsave'/>
|
||||
<feature name='xsavec'/>
|
||||
<feature name='xsaveerptr'/>
|
||||
<feature name='xsaveopt'/>
|
||||
</model>
|
||||
</cpus>
|
@ -1254,7 +1254,7 @@ mymain(void)
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Pentium-P6100", JSON_NONE);
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Phenom-B95", JSON_HOST);
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Ryzen-7-1800X-Eight-Core", JSON_HOST);
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Ryzen-9-3900X-12-Core", JSON_MODELS);
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Ryzen-9-3900X-12-Core", JSON_MODELS_REQUIRED);
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-5110", JSON_NONE);
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E3-1225-v5", JSON_MODELS);
|
||||
DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E3-1245-v5", JSON_MODELS);
|
||||
|
@ -1,12 +1,9 @@
|
||||
<cpu mode='custom' match='exact'>
|
||||
<model fallback='forbid'>EPYC-IBPB</model>
|
||||
<model fallback='forbid'>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<feature policy='require' name='ht'/>
|
||||
<feature policy='require' name='osxsave'/>
|
||||
<feature policy='require' name='cmt'/>
|
||||
<feature policy='require' name='clwb'/>
|
||||
<feature policy='require' name='umip'/>
|
||||
<feature policy='require' name='rdpid'/>
|
||||
<feature policy='require' name='xsaves'/>
|
||||
<feature policy='require' name='mbm_total'/>
|
||||
<feature policy='require' name='mbm_local'/>
|
||||
@ -17,18 +14,11 @@
|
||||
<feature policy='require' name='wdt'/>
|
||||
<feature policy='require' name='tce'/>
|
||||
<feature policy='require' name='topoext'/>
|
||||
<feature policy='require' name='perfctr_core'/>
|
||||
<feature policy='require' name='perfctr_nb'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
<feature policy='require' name='clzero'/>
|
||||
<feature policy='require' name='xsaveerptr'/>
|
||||
<feature policy='require' name='wbnoinvd'/>
|
||||
<feature policy='require' name='amd-stibp'/>
|
||||
<feature policy='require' name='amd-ssbd'/>
|
||||
<feature policy='require' name='npt'/>
|
||||
<feature policy='require' name='lbrv'/>
|
||||
<feature policy='require' name='svm-lock'/>
|
||||
<feature policy='require' name='nrip-save'/>
|
||||
<feature policy='require' name='tsc-scale'/>
|
||||
<feature policy='require' name='vmcb-clean'/>
|
||||
<feature policy='require' name='flushbyasid'/>
|
||||
|
@ -1,13 +1,10 @@
|
||||
<cpu>
|
||||
<arch>x86_64</arch>
|
||||
<model>EPYC-IBPB</model>
|
||||
<model>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<feature name='ht'/>
|
||||
<feature name='osxsave'/>
|
||||
<feature name='cmt'/>
|
||||
<feature name='clwb'/>
|
||||
<feature name='umip'/>
|
||||
<feature name='rdpid'/>
|
||||
<feature name='xsaves'/>
|
||||
<feature name='mbm_total'/>
|
||||
<feature name='mbm_local'/>
|
||||
@ -18,18 +15,11 @@
|
||||
<feature name='wdt'/>
|
||||
<feature name='tce'/>
|
||||
<feature name='topoext'/>
|
||||
<feature name='perfctr_core'/>
|
||||
<feature name='perfctr_nb'/>
|
||||
<feature name='invtsc'/>
|
||||
<feature name='clzero'/>
|
||||
<feature name='xsaveerptr'/>
|
||||
<feature name='wbnoinvd'/>
|
||||
<feature name='amd-stibp'/>
|
||||
<feature name='amd-ssbd'/>
|
||||
<feature name='npt'/>
|
||||
<feature name='lbrv'/>
|
||||
<feature name='svm-lock'/>
|
||||
<feature name='nrip-save'/>
|
||||
<feature name='tsc-scale'/>
|
||||
<feature name='vmcb-clean'/>
|
||||
<feature name='flushbyasid'/>
|
||||
|
@ -1,28 +1,18 @@
|
||||
<cpu mode='custom' match='exact'>
|
||||
<model fallback='forbid'>EPYC-IBPB</model>
|
||||
<model fallback='forbid'>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<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='clwb'/>
|
||||
<feature policy='require' name='umip'/>
|
||||
<feature policy='require' name='rdpid'/>
|
||||
<feature policy='require' name='spec-ctrl'/>
|
||||
<feature policy='require' name='stibp'/>
|
||||
<feature policy='require' name='arch-capabilities'/>
|
||||
<feature policy='require' name='ssbd'/>
|
||||
<feature policy='require' name='xsaves'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
<feature policy='require' name='perfctr_core'/>
|
||||
<feature policy='require' name='clzero'/>
|
||||
<feature policy='require' name='xsaveerptr'/>
|
||||
<feature policy='require' name='wbnoinvd'/>
|
||||
<feature policy='require' name='amd-stibp'/>
|
||||
<feature policy='require' name='amd-ssbd'/>
|
||||
<feature policy='require' name='virt-ssbd'/>
|
||||
<feature policy='require' name='npt'/>
|
||||
<feature policy='require' name='nrip-save'/>
|
||||
<feature policy='require' name='rdctl-no'/>
|
||||
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
||||
<feature policy='require' name='mds-no'/>
|
||||
|
@ -1,13 +1,10 @@
|
||||
<cpu>
|
||||
<arch>x86_64</arch>
|
||||
<model>EPYC-IBPB</model>
|
||||
<model>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<feature name='ht'/>
|
||||
<feature name='osxsave'/>
|
||||
<feature name='cmt'/>
|
||||
<feature name='clwb'/>
|
||||
<feature name='umip'/>
|
||||
<feature name='rdpid'/>
|
||||
<feature name='xsaves'/>
|
||||
<feature name='mbm_total'/>
|
||||
<feature name='mbm_local'/>
|
||||
@ -18,18 +15,11 @@
|
||||
<feature name='wdt'/>
|
||||
<feature name='tce'/>
|
||||
<feature name='topoext'/>
|
||||
<feature name='perfctr_core'/>
|
||||
<feature name='perfctr_nb'/>
|
||||
<feature name='invtsc'/>
|
||||
<feature name='clzero'/>
|
||||
<feature name='xsaveerptr'/>
|
||||
<feature name='wbnoinvd'/>
|
||||
<feature name='amd-stibp'/>
|
||||
<feature name='amd-ssbd'/>
|
||||
<feature name='npt'/>
|
||||
<feature name='lbrv'/>
|
||||
<feature name='svm-lock'/>
|
||||
<feature name='nrip-save'/>
|
||||
<feature name='tsc-scale'/>
|
||||
<feature name='vmcb-clean'/>
|
||||
<feature name='flushbyasid'/>
|
||||
|
@ -95,6 +95,7 @@
|
||||
<model usable='yes'>Haswell-noTSX</model>
|
||||
<model usable='yes'>Haswell-IBRS</model>
|
||||
<model usable='yes'>Haswell</model>
|
||||
<model usable='no'>EPYC-Rome</model>
|
||||
<model usable='no'>EPYC-IBPB</model>
|
||||
<model usable='no'>EPYC</model>
|
||||
<model usable='no'>Dhyana</model>
|
||||
|
@ -100,6 +100,7 @@
|
||||
<model usable='no'>Haswell-noTSX</model>
|
||||
<model usable='no'>Haswell-IBRS</model>
|
||||
<model usable='no'>Haswell</model>
|
||||
<model usable='no'>EPYC-Rome</model>
|
||||
<model usable='no'>EPYC-IBPB</model>
|
||||
<model usable='no'>EPYC</model>
|
||||
<model usable='no'>Dhyana</model>
|
||||
|
@ -94,6 +94,7 @@
|
||||
<model usable='yes'>Haswell-noTSX</model>
|
||||
<model usable='yes'>Haswell-IBRS</model>
|
||||
<model usable='yes'>Haswell</model>
|
||||
<model usable='no'>EPYC-Rome</model>
|
||||
<model usable='no'>EPYC-IBPB</model>
|
||||
<model usable='no'>EPYC</model>
|
||||
<model usable='no'>Dhyana</model>
|
||||
|
@ -36,30 +36,20 @@
|
||||
</enum>
|
||||
</mode>
|
||||
<mode name='host-model' supported='yes'>
|
||||
<model fallback='forbid'>EPYC-IBPB</model>
|
||||
<model fallback='forbid'>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<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='clwb'/>
|
||||
<feature policy='require' name='umip'/>
|
||||
<feature policy='require' name='rdpid'/>
|
||||
<feature policy='require' name='stibp'/>
|
||||
<feature policy='require' name='arch-capabilities'/>
|
||||
<feature policy='require' name='ssbd'/>
|
||||
<feature policy='require' name='xsaves'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
<feature policy='require' name='perfctr_core'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
<feature policy='require' name='clzero'/>
|
||||
<feature policy='require' name='xsaveerptr'/>
|
||||
<feature policy='require' name='wbnoinvd'/>
|
||||
<feature policy='require' name='amd-stibp'/>
|
||||
<feature policy='require' name='amd-ssbd'/>
|
||||
<feature policy='require' name='virt-ssbd'/>
|
||||
<feature policy='require' name='npt'/>
|
||||
<feature policy='require' name='nrip-save'/>
|
||||
<feature policy='require' name='rdctl-no'/>
|
||||
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
||||
<feature policy='require' name='mds-no'/>
|
||||
@ -107,6 +97,7 @@
|
||||
<model usable='no'>Haswell-noTSX</model>
|
||||
<model usable='no'>Haswell-IBRS</model>
|
||||
<model usable='no'>Haswell</model>
|
||||
<model usable='yes'>EPYC-Rome</model>
|
||||
<model usable='yes'>EPYC-IBPB</model>
|
||||
<model usable='yes'>EPYC</model>
|
||||
<model usable='yes'>Dhyana</model>
|
||||
|
@ -100,6 +100,7 @@
|
||||
<model usable='no'>Haswell-noTSX</model>
|
||||
<model usable='no'>Haswell-IBRS</model>
|
||||
<model usable='no'>Haswell</model>
|
||||
<model usable='no'>EPYC-Rome</model>
|
||||
<model usable='no'>EPYC-IBPB</model>
|
||||
<model usable='no'>EPYC</model>
|
||||
<model usable='no'>Dhyana</model>
|
||||
|
@ -35,30 +35,20 @@
|
||||
</enum>
|
||||
</mode>
|
||||
<mode name='host-model' supported='yes'>
|
||||
<model fallback='forbid'>EPYC-IBPB</model>
|
||||
<model fallback='forbid'>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<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='clwb'/>
|
||||
<feature policy='require' name='umip'/>
|
||||
<feature policy='require' name='rdpid'/>
|
||||
<feature policy='require' name='stibp'/>
|
||||
<feature policy='require' name='arch-capabilities'/>
|
||||
<feature policy='require' name='ssbd'/>
|
||||
<feature policy='require' name='xsaves'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
<feature policy='require' name='perfctr_core'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
<feature policy='require' name='clzero'/>
|
||||
<feature policy='require' name='xsaveerptr'/>
|
||||
<feature policy='require' name='wbnoinvd'/>
|
||||
<feature policy='require' name='amd-stibp'/>
|
||||
<feature policy='require' name='amd-ssbd'/>
|
||||
<feature policy='require' name='virt-ssbd'/>
|
||||
<feature policy='require' name='npt'/>
|
||||
<feature policy='require' name='nrip-save'/>
|
||||
<feature policy='require' name='rdctl-no'/>
|
||||
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
||||
<feature policy='require' name='mds-no'/>
|
||||
@ -106,6 +96,7 @@
|
||||
<model usable='no'>Haswell-noTSX</model>
|
||||
<model usable='no'>Haswell-IBRS</model>
|
||||
<model usable='no'>Haswell</model>
|
||||
<model usable='yes'>EPYC-Rome</model>
|
||||
<model usable='yes'>EPYC-IBPB</model>
|
||||
<model usable='yes'>EPYC</model>
|
||||
<model usable='yes'>Dhyana</model>
|
||||
|
@ -36,30 +36,20 @@
|
||||
</enum>
|
||||
</mode>
|
||||
<mode name='host-model' supported='yes'>
|
||||
<model fallback='forbid'>EPYC-IBPB</model>
|
||||
<model fallback='forbid'>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<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='clwb'/>
|
||||
<feature policy='require' name='umip'/>
|
||||
<feature policy='require' name='rdpid'/>
|
||||
<feature policy='require' name='stibp'/>
|
||||
<feature policy='require' name='arch-capabilities'/>
|
||||
<feature policy='require' name='ssbd'/>
|
||||
<feature policy='require' name='xsaves'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
<feature policy='require' name='perfctr_core'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
<feature policy='require' name='clzero'/>
|
||||
<feature policy='require' name='xsaveerptr'/>
|
||||
<feature policy='require' name='wbnoinvd'/>
|
||||
<feature policy='require' name='amd-stibp'/>
|
||||
<feature policy='require' name='amd-ssbd'/>
|
||||
<feature policy='require' name='virt-ssbd'/>
|
||||
<feature policy='require' name='npt'/>
|
||||
<feature policy='require' name='nrip-save'/>
|
||||
<feature policy='require' name='rdctl-no'/>
|
||||
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
||||
<feature policy='require' name='mds-no'/>
|
||||
@ -107,6 +97,7 @@
|
||||
<model usable='no'>Haswell-noTSX</model>
|
||||
<model usable='no'>Haswell-IBRS</model>
|
||||
<model usable='no'>Haswell</model>
|
||||
<model usable='yes'>EPYC-Rome</model>
|
||||
<model usable='yes'>EPYC-IBPB</model>
|
||||
<model usable='yes'>EPYC</model>
|
||||
<model usable='yes'>Dhyana</model>
|
||||
|
@ -100,6 +100,7 @@
|
||||
<model usable='no'>Haswell-noTSX</model>
|
||||
<model usable='no'>Haswell-IBRS</model>
|
||||
<model usable='no'>Haswell</model>
|
||||
<model usable='no'>EPYC-Rome</model>
|
||||
<model usable='no'>EPYC-IBPB</model>
|
||||
<model usable='no'>EPYC</model>
|
||||
<model usable='no'>Dhyana</model>
|
||||
|
@ -35,30 +35,20 @@
|
||||
</enum>
|
||||
</mode>
|
||||
<mode name='host-model' supported='yes'>
|
||||
<model fallback='forbid'>EPYC-IBPB</model>
|
||||
<model fallback='forbid'>EPYC-Rome</model>
|
||||
<vendor>AMD</vendor>
|
||||
<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='clwb'/>
|
||||
<feature policy='require' name='umip'/>
|
||||
<feature policy='require' name='rdpid'/>
|
||||
<feature policy='require' name='stibp'/>
|
||||
<feature policy='require' name='arch-capabilities'/>
|
||||
<feature policy='require' name='ssbd'/>
|
||||
<feature policy='require' name='xsaves'/>
|
||||
<feature policy='require' name='cmp_legacy'/>
|
||||
<feature policy='require' name='perfctr_core'/>
|
||||
<feature policy='require' name='invtsc'/>
|
||||
<feature policy='require' name='clzero'/>
|
||||
<feature policy='require' name='xsaveerptr'/>
|
||||
<feature policy='require' name='wbnoinvd'/>
|
||||
<feature policy='require' name='amd-stibp'/>
|
||||
<feature policy='require' name='amd-ssbd'/>
|
||||
<feature policy='require' name='virt-ssbd'/>
|
||||
<feature policy='require' name='npt'/>
|
||||
<feature policy='require' name='nrip-save'/>
|
||||
<feature policy='require' name='rdctl-no'/>
|
||||
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
||||
<feature policy='require' name='mds-no'/>
|
||||
@ -106,6 +96,7 @@
|
||||
<model usable='no'>Haswell-noTSX</model>
|
||||
<model usable='no'>Haswell-IBRS</model>
|
||||
<model usable='no'>Haswell</model>
|
||||
<model usable='yes'>EPYC-Rome</model>
|
||||
<model usable='yes'>EPYC-IBPB</model>
|
||||
<model usable='yes'>EPYC</model>
|
||||
<model usable='yes'>Dhyana</model>
|
||||
|
Loading…
x
Reference in New Issue
Block a user