* [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features
@ 2024-04-24 7:29 Lei Wang
2024-04-24 8:20 ` Paolo Bonzini
2024-04-24 8:33 ` Zhao Liu
0 siblings, 2 replies; 4+ messages in thread
From: Lei Wang @ 2024-04-24 7:29 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, manish.mishra, xiaoyao.li, chenyi.qiang, tao1.su
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features
2024-04-24 7:29 [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features Lei Wang
@ 2024-04-24 8:20 ` Paolo Bonzini
2024-04-24 8:33 ` Zhao Liu
1 sibling, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2024-04-24 8:20 UTC (permalink / raw)
To: Lei Wang
Cc: qemu-devel, pbonzini, manish.mishra, xiaoyao.li, chenyi.qiang,
tao1.su
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features
2024-04-24 8:33 ` Zhao Liu
@ 2024-04-24 8:25 ` Daniel P. Berrangé
0 siblings, 0 replies; 4+ messages in thread
From: Daniel P. Berrangé @ 2024-04-24 8:25 UTC (permalink / raw)
To: Zhao Liu
Cc: Lei Wang, qemu-devel, pbonzini, manish.mishra, xiaoyao.li,
chenyi.qiang, tao1.su
On Wed, Apr 24, 2024 at 04:33:11PM +0800, Zhao Liu wrote:
> Hi Lei,
>
> On Wed, Apr 24, 2024 at 03:29:12AM -0400, Lei Wang wrote:
> > Date: Wed, 24 Apr 2024 03:29:12 -0400
> > From: Lei Wang <lei4.wang@intel.com>
> > Subject: [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing
> > features
> > X-Mailer: git-send-email 2.39.3
> >
> > Add the missing features(ss, tsc-adjust, cldemote, movdiri, movdir64b) in
> > the SapphireRapids-v3 CPU model.
>
> Considering that these are missing features, not hardware updates/fixes/Linux
> support changes, then as opposed to adding v3, it would be more appropriate
> to add these flags directly to the v1 SPR model with Fixes tag (Fixes:
> commit 7eb061b06e97 ("i386: Add new CPU model SapphireRapids")).
That would break compatibility with v1 CPU models from existing releases
of QEMU. Once released, a CPU version is read-only to preserve compatibility,
which is why we have the CPU versioning concept.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features
2024-04-24 7:29 [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features Lei Wang
2024-04-24 8:20 ` Paolo Bonzini
@ 2024-04-24 8:33 ` Zhao Liu
2024-04-24 8:25 ` Daniel P. Berrangé
1 sibling, 1 reply; 4+ messages in thread
From: Zhao Liu @ 2024-04-24 8:33 UTC (permalink / raw)
To: Lei Wang
Cc: qemu-devel, pbonzini, manish.mishra, xiaoyao.li, chenyi.qiang,
tao1.su
Hi Lei,
On Wed, Apr 24, 2024 at 03:29:12AM -0400, Lei Wang wrote:
> Date: Wed, 24 Apr 2024 03:29:12 -0400
> From: Lei Wang <lei4.wang@intel.com>
> Subject: [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing
> features
> X-Mailer: git-send-email 2.39.3
>
> Add the missing features(ss, tsc-adjust, cldemote, movdiri, movdir64b) in
> the SapphireRapids-v3 CPU model.
Considering that these are missing features, not hardware updates/fixes/Linux
support changes, then as opposed to adding v3, it would be more appropriate
to add these flags directly to the v1 SPR model with Fixes tag (Fixes:
commit 7eb061b06e97 ("i386: Add new CPU model SapphireRapids")).
Regards,
Zhao
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-24 8:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-24 7:29 [PATCH] target/i386: Introduce SapphireRapids-v3 to add missing features Lei Wang
2024-04-24 8:20 ` Paolo Bonzini
2024-04-24 8:33 ` Zhao Liu
2024-04-24 8:25 ` Daniel P. Berrangé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).