Skip to contentSkip to conversation

target/i386: Remove split lock detect in Snowridge CPU model

PATCH Superseded Chenyi Qiang 2 participants 2 messages Jun 30, 2021 – Aug 11, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/i386: Remove split lock detect in Snowridge CPU model

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.

---
 target/i386/cpu.c | 8 ++++++++
 1 file changed, 8 insertions(+)
target/i386/cpu.c +8 -0
index a9fe1662d3..c3b527b7b0 100644
@@ -3698,6 +3698,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.17.1
#1 lore raw
Quoted 5 lines · Chenyi Qiang

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.

Sorry I have missed this before 6.1 soft freeze. I'm queueing this for 6.2. Thanks!

Signature · 1 line
Eduardo