diff mbox series

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

Message ID 20210825195438.914387-2-ehabkost@redhat.com
State New
Headers show
Series [PULL,1/2] target/i386: Remove split lock detect in Snowridge CPU model | expand

Commit Message

Eduardo Habkost Aug. 25, 2021, 7:54 p.m. UTC
From: Chenyi Qiang <chenyi.qiang@intel.com>

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.

Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Message-Id: <20210630012053.10098-1-chenyi.qiang@intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 target/i386/cpu.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 34a7ce865bb..aebf81d9c98 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -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 */ },
         },
     },