From f441299f1b589a60199156a217c5f49fc9de954d Mon Sep 17 00:00:00 2001 Message-Id: From: Markus Schade Date: Thu, 8 Oct 2020 18:01:25 +0200 Subject: [PATCH] cpu_map: Defined and enable EPYC-Rome model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Markus Schade Reviewed-by: Jiri Denemark (cherry picked from commit f941639f86f4bc66c106eb1291f1b58cf9e24680) https://bugzilla.redhat.com/show_bug.cgi?id=1861506 Conflicts: src/cpu_map/meson.build - the corresponding change was applied to Makefile.inc.am as downstream still uses autotools tests/cputest.c tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-host.xml - test data for Ryzen 9 3900X are not present downstream tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml tests/domaincapsdata/qemu_5.1.0.x86_64.xml tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml tests/domaincapsdata/qemu_5.2.0.x86_64.xml - not present downstream Signed-off-by: Jiri Denemark Message-Id: Reviewed-by: Ján Tomko --- src/cpu_map/Makefile.inc.am | 1 + src/cpu_map/index.xml | 1 + src/cpu_map/x86_EPYC-Rome.xml | 84 +++++++++++++++++++ .../x86_64-cpuid-EPYC-7502-32-Core-guest.xml | 12 +-- .../x86_64-cpuid-EPYC-7502-32-Core-host.xml | 12 +-- .../x86_64-cpuid-EPYC-7502-32-Core-json.xml | 12 +-- .../domaincapsdata/qemu_5.0.0-q35.x86_64.xml | 1 + .../domaincapsdata/qemu_5.0.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_5.0.0.x86_64.xml | 1 + 9 files changed, 92 insertions(+), 33 deletions(-) create mode 100644 src/cpu_map/x86_EPYC-Rome.xml diff --git a/src/cpu_map/Makefile.inc.am b/src/cpu_map/Makefile.inc.am index b949cb0bea..aad4b410f9 100644 --- a/src/cpu_map/Makefile.inc.am +++ b/src/cpu_map/Makefile.inc.am @@ -30,6 +30,7 @@ cpumap_DATA = \ cpu_map/x86_Dhyana.xml \ cpu_map/x86_EPYC.xml \ cpu_map/x86_EPYC-IBPB.xml \ + cpu_map/x86_EPYC-Rome.xml \ cpu_map/x86_Haswell.xml \ cpu_map/x86_Haswell-IBRS.xml \ cpu_map/x86_Haswell-noTSX.xml \ diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml index ff1da2e677..633b017a93 100644 --- a/src/cpu_map/index.xml +++ b/src/cpu_map/index.xml @@ -66,6 +66,7 @@ + diff --git a/src/cpu_map/x86_EPYC-Rome.xml b/src/cpu_map/x86_EPYC-Rome.xml new file mode 100644 index 0000000000..99fc015fdd --- /dev/null +++ b/src/cpu_map/x86_EPYC-Rome.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml index 1320f65a58..cb2caab6f5 100644 --- a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml +++ b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml @@ -1,12 +1,9 @@ - EPYC-IBPB + EPYC-Rome AMD - - - @@ -17,18 +14,11 @@ - - - - - - - diff --git a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml index 37905ec812..b6784f9eba 100644 --- a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml +++ b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml @@ -1,13 +1,10 @@ x86_64 - EPYC-IBPB + EPYC-Rome AMD - - - @@ -18,18 +15,11 @@ - - - - - - - diff --git a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-json.xml b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-json.xml index 225cf63852..86466c0547 100644 --- a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-json.xml +++ b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-json.xml @@ -1,28 +1,18 @@ - EPYC-IBPB + EPYC-Rome AMD - - - - - - - - - - diff --git a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml index 7bfd786ff6..b2a7087a0e 100644 --- a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml @@ -90,6 +90,7 @@ Haswell-noTSX Haswell-IBRS Haswell + EPYC-Rome EPYC-IBPB EPYC Dhyana diff --git a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml index eb456dea28..39b11fb634 100644 --- a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml @@ -100,6 +100,7 @@ Haswell-noTSX Haswell-IBRS Haswell + EPYC-Rome EPYC-IBPB EPYC Dhyana diff --git a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml index d6ee66ab60..3a1ee23302 100644 --- a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml @@ -89,6 +89,7 @@ Haswell-noTSX Haswell-IBRS Haswell + EPYC-Rome EPYC-IBPB EPYC Dhyana -- 2.29.2