diff mbox series

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

Message ID 20210630012053.10098-1-chenyi.qiang@intel.com (mailing list archive)
State New, archived
Headers show
Series target/i386: Remove split lock detect in Snowridge CPU model | expand

Commit Message

Chenyi Qiang June 30, 2021, 1:20 a.m. UTC
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>
---
 target/i386/cpu.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Eduardo Habkost Aug. 11, 2021, 8:03 p.m. UTC | #1
On Wed, Jun 30, 2021 at 09:20:53AM +0800, Chenyi Qiang wrote:
> 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>

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

Patch

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