OSDN Git Service

target/i386: Remove split lock detect in Snowridge CPU model
authorChenyi Qiang <chenyi.qiang@intel.com>
Wed, 30 Jun 2021 01:20:53 +0000 (09:20 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 25 Aug 2021 16:33:37 +0000 (12:33 -0400)
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

index 34a7ce8..aebf81d 100644 (file)
@@ -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 */ },
         },
     },