All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lei Wang <lei4.wang@intel.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, manish.mishra@nutanix.com,
	xiaoyao.li@intel.com, chenyi.qiang@intel.com,
	tao1.su@linux.intel.com
Subject: [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features
Date: Wed, 24 Apr 2024 03:29:12 -0400	[thread overview]
Message-ID: <20240424072912.43188-1-lei4.wang@intel.com> (raw)

Add the missing features(ss, tsc-adjust, cldemote, movdiri, movdir64b) in
the SapphireRapids-v3 CPU model.

Signed-off-by: Lei Wang <lei4.wang@intel.com>
---
 target/i386/cpu.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index fd6af0d763..77e7945152 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -3970,6 +3970,17 @@ static const X86CPUDefinition builtin_x86_defs[] = {
                     { /* end of list */ }
                 }
             },
+            {
+                .version = 3,
+                .props = (PropValue[]) {
+                    { "ss", "on" },
+                    { "tsc-adjust", "on" },
+                    { "cldemote", "on" },
+                    { "movdiri", "on" },
+                    { "movdir64b", "on" },
+                    { /* end of list */ }
+                }
+            },
             { /* end of list */ }
         }
     },
-- 
2.39.3



             reply	other threads:[~2024-04-24  7:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24  7:29 Lei Wang [this message]
2024-04-24  8:20 ` [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features Paolo Bonzini
2024-04-24  8:33 ` Zhao Liu
2024-04-24  8:25   ` Daniel P. Berrangé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240424072912.43188-1-lei4.wang@intel.com \
    --to=lei4.wang@intel.com \
    --cc=chenyi.qiang@intel.com \
    --cc=manish.mishra@nutanix.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=tao1.su@linux.intel.com \
    --cc=xiaoyao.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.