Skip to contentSkip to conversation

x86 queue, 2021-08-25

GIT PULL Applied Eduardo Habkost 2 participants 4 messages Aug 25, 2021 – Aug 26, 2021

lore
Share & tools
lore
#0 lore raw

The following changes since commit d42685765653ec155fdf60910662f8830bdb2cef:

Open 6.2 development tree (2021-08-25 10:25:12 +0100)

are available in the Git repository at:

https://gitlab.com/ehabkost/qemu.git tags/x86-next-pull-request

for you to fetch changes up to f429dbf8fc526a9cacf531176b28d0c65701475a:

i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model (2021-08-25 12:36:49 -0400)

----------------------------------------------------------------
x86 queue, 2021-08-25

Bug fixes:
* Remove split lock detect in Snowridge CPU model (Chenyi Qiang)
* Remove AVX_VNNI feature from Cooperlake cpu model (Yang Zhong)

----------------------------------------------------------------

Chenyi Qiang (1):
target/i386: Remove split lock detect in Snowridge CPU model

Yang Zhong (1):
i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model

 target/i386/cpu.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.1
#1 lore raw

[PULL 1/2] target/i386: Remove split lock detect in Snowridge CPU model

From: Chenyi Qiang <[email protected]>

At present, there's no mechanism intelligent enough to virtualize split lock detection correctly. Remove it in Snowridge CPU model to avoid the feature exposure.

Message-Id: <[email protected]>

---
 target/i386/cpu.c | 8 ++++++++
 1 file changed, 8 insertions(+)
target/i386/cpu.c +8 -0
index 34a7ce865bb..aebf81d9c98 100644
@@ -3682,6 +3682,14 @@ static const X86CPUDefinition builtin_x86_defs[] = {
                     { /* end of list */ },
                 },
             },
+            {
+                .version = 4,
+                .note = "no split lock detect",
+                .props = (PropValue[]) {
+                    { "split-lock-detect", "off" },
+                    { /* end of list */ },
+                },
+            },
             { /* end of list */ },
         },
     },
Signature · 1 line
2.31.1
#2 lore raw

[PULL 2/2] i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model

In reply to Eduardo Habkost

From: Yang Zhong <[email protected]>

The AVX_VNNI feature is not in Cooperlake platform, remove it from cpu model.

Message-Id: <[email protected]>

Fixes c1826ea6a052 ("i386/cpu: Expose AVX_VNNI instruction to guest")
---
 target/i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/cpu.c +1 -1
index aebf81d9c98..97e250e8760 100644
@@ -3102,7 +3102,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
             MSR_ARCH_CAP_SKIP_L1DFL_VMENTRY | MSR_ARCH_CAP_MDS_NO |
             MSR_ARCH_CAP_PSCHANGE_MC_NO | MSR_ARCH_CAP_TAA_NO,
         .features[FEAT_7_1_EAX] =
-            CPUID_7_1_EAX_AVX_VNNI | CPUID_7_1_EAX_AVX512_BF16,
+            CPUID_7_1_EAX_AVX512_BF16,
         /* XSAVES is added in version 2 */
         .features[FEAT_XSAVE] =
             CPUID_XSAVE_XSAVEOPT | CPUID_XSAVE_XSAVEC |
Signature · 1 line
2.31.1
#3 lore raw
In reply to Eduardo Habkost
Quoted 13 lines · Eduardo Habkost

The following changes since commit d42685765653ec155fdf60910662f8830bdb2cef:

Open 6.2 development tree (2021-08-25 10:25:12 +0100)

are available in the Git repository at:

https://gitlab.com/ehabkost/qemu.git tags/x86-next-pull-request

for you to fetch changes up to f429dbf8fc526a9cacf531176b28d0c65701475a:

i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model (2021-08-25 12:36:49 -0400)

Quoted 8 lines

----------------------------------------------------------------
x86 queue, 2021-08-25

Bug fixes:
* Remove split lock detect in Snowridge CPU model (Chenyi Qiang)
* Remove AVX_VNNI feature from Cooperlake cpu model (Yang Zhong)

----------------------------------------------------------------

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/6.2
for any user-visible changes.

-- PMM