From b177f66b37d0c64216ec579a5211461609a96ea8 Mon Sep 17 00:00:00 2001 Message-Id: From: Tim Wiederhake Date: Fri, 15 Jan 2021 15:17:22 +0100 Subject: [PATCH] cpu_map: Define and enable Snowridge model Due to missing pdpe1gb support in the host CPU data, the CPU is still incorrectly detected as Westmere-IBRS for host capabilities because we don't have the option to disable features included in the base model there. Signed-off-by: Tim Wiederhake Reviewed-by: Jiri Denemark (cherry picked from commit f0a5cf4b8a8b5a68348df5e8b197f30dd90b3c34) https://bugzilla.redhat.com/show_bug.cgi?id=1537734 Conflicts: - src/cpu_map/index.xml: Context - src/cpu_map/meson.build: Not present downstream - tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml: Not present downstream - tests/domaincapsdata/qemu_5.1.0-tcg.x86_64.xml: Not present downstream - tests/domaincapsdata/qemu_5.1.0.x86_64.xml: Not present downstream - tests/domaincapsdata/qemu_5.2.0-q35.x86_64.xml: Not present downstream - tests/domaincapsdata/qemu_5.2.0-tcg.x86_64.xml: Not present downstream - tests/domaincapsdata/qemu_5.2.0.x86_64.xml: Not present downstream Additions: - src/cpu_map/Makefile.inc.am: Replaces upstream change of "meson.build" Signed-off-by: Tim Wiederhake Message-Id: <20210115141722.14986-7-twiederh@redhat.com> Reviewed-by: Jiri Denemark --- src/cpu_map/Makefile.inc.am | 1 + src/cpu_map/index.xml | 1 + src/cpu_map/x86_Snowridge.xml | 71 +++++++++++++++++++ .../x86_64-cpuid-Atom-P5362-guest.xml | 28 ++------ .../x86_64-cpuid-Atom-P5362-json.xml | 26 ++----- .../domaincapsdata/qemu_4.1.0-q35.x86_64.xml | 1 + .../domaincapsdata/qemu_4.1.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.1.0.x86_64.xml | 1 + .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml | 1 + .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_4.2.0.x86_64.xml | 1 + .../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 + 14 files changed, 92 insertions(+), 44 deletions(-) create mode 100644 src/cpu_map/x86_Snowridge.xml diff --git a/src/cpu_map/Makefile.inc.am b/src/cpu_map/Makefile.inc.am index aad4b410f9..1dd78c6715 100644 --- a/src/cpu_map/Makefile.inc.am +++ b/src/cpu_map/Makefile.inc.am @@ -67,6 +67,7 @@ cpumap_DATA = \ cpu_map/x86_Skylake-Server.xml \ cpu_map/x86_Skylake-Server-IBRS.xml \ cpu_map/x86_Skylake-Server-noTSX-IBRS.xml \ + cpu_map/x86_Snowridge.xml \ cpu_map/x86_Westmere.xml \ cpu_map/x86_Westmere-IBRS.xml \ $(NULL) diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml index 633b017a93..2f58261e6d 100644 --- a/src/cpu_map/index.xml +++ b/src/cpu_map/index.xml @@ -55,6 +55,7 @@ + diff --git a/src/cpu_map/x86_Snowridge.xml b/src/cpu_map/x86_Snowridge.xml new file mode 100644 index 0000000000..383a24d367 --- /dev/null +++ b/src/cpu_map/x86_Snowridge.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml b/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml index 2eeff136c4..f28e70b9e0 100644 --- a/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml +++ b/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml @@ -1,5 +1,5 @@ - IvyBridge-IBRS + Snowridge Intel @@ -16,36 +16,17 @@ - - - - - - - - - - - - - - - - - - - @@ -53,7 +34,8 @@ - - - + + + + diff --git a/tests/cputestdata/x86_64-cpuid-Atom-P5362-json.xml b/tests/cputestdata/x86_64-cpuid-Atom-P5362-json.xml index ca685d2f80..bbe0919706 100644 --- a/tests/cputestdata/x86_64-cpuid-Atom-P5362-json.xml +++ b/tests/cputestdata/x86_64-cpuid-Atom-P5362-json.xml @@ -1,33 +1,15 @@ - IvyBridge-IBRS + Snowridge Intel - - - - - - - - - - - - - - - - - - @@ -36,6 +18,8 @@ - - + + + + diff --git a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml index f4ddb66e38..228acde33b 100644 --- a/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml @@ -63,6 +63,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-IBRS Skylake-Server Skylake-Client-IBRS diff --git a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml index d6265ce243..bda1aba8ed 100644 --- a/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml @@ -75,6 +75,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-IBRS Skylake-Server Skylake-Client-IBRS diff --git a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml b/tests/domaincapsdata/qemu_4.1.0.x86_64.xml index bcc8bbcc7a..bb53138712 100644 --- a/tests/domaincapsdata/qemu_4.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.1.0.x86_64.xml @@ -62,6 +62,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-IBRS Skylake-Server Skylake-Client-IBRS diff --git a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml index 4d9616cb69..0a3f3ef564 100644 --- a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml @@ -64,6 +64,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-noTSX-IBRS Skylake-Server-IBRS Skylake-Server diff --git a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml index bcaf9afd6f..e64b647f51 100644 --- a/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml @@ -75,6 +75,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-noTSX-IBRS Skylake-Server-IBRS Skylake-Server diff --git a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml index 5210c917aa..5525758a48 100644 --- a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml @@ -63,6 +63,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-noTSX-IBRS Skylake-Server-IBRS Skylake-Server 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 b2a7087a0e..4cb4bf6cce 100644 --- a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml @@ -64,6 +64,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-noTSX-IBRS Skylake-Server-IBRS Skylake-Server 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 39b11fb634..b5986404ae 100644 --- a/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0-tcg.x86_64.xml @@ -74,6 +74,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-noTSX-IBRS Skylake-Server-IBRS Skylake-Server diff --git a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml index 3a1ee23302..0297ce600b 100644 --- a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml @@ -63,6 +63,7 @@ athlon Westmere-IBRS Westmere + Snowridge Skylake-Server-noTSX-IBRS Skylake-Server-IBRS Skylake-Server -- 2.30.0