qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] target/i386: Add support for Zhaoxin Shijidadao vCPU models
@ 2025-10-27 10:21 Ewan Hai
  2025-10-27 10:21 ` [PATCH v2 1/4] target/i386: Add an option in X86CPUDefinition to control CPUID 0x1f Ewan Hai
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Ewan Hai @ 2025-10-27 10:21 UTC (permalink / raw)
  To: pbonzini, zhao1.liu; +Cc: qemu-devel, ewanhai, cobechen

This patchset introduces cache enumeration and two vCPU models (Client          
and Server) for the Zhaoxin "Shijidadao" architecture. With these               
additions, QEMU can expose the core identity and features of this               
architecture without relying on host-passthrough.

Key points for maintainers to review:

1. The Shijidadao-Client model leverages QEMU's inherent versioning mechanism.
.version = 1 represents the first hardware revision, while a new version = 2
captures the second revision with distinct feature sets. This approach allows
both revisions to be covered by a single CPU model, aligned with QEMU's
existing versioning logic.

2. The Shijidadao-Server model enables the 'core-capability' bit by default.
Since KVM does not yet virtualize the corresponding MSR, guidance on whether
this setting should remain enabled is requested.

---

Changes Since v1:
- Incorporated Zhao Liu's suggested patch that introduces the cpuid_0x1f option.
- Dropped explicit x-force-cpuid-0x1f property declarations from both
Shijidadao-Server and Shijidadao-Client models, since the new option provides
a cleaner solution.
- Updated commit messages for the Client and Server patches to remove
references to the earlier x-force-cpuid-0x1f approach.

---

Ewan Hai (3):
  target/i386: Add cache model for Zhaoxin Shijidadao vCPUs
  target/i386: Introduce Zhaoxin Shijidadao-Client CPU model
  target/i386: Introduce Zhaoxin Shijidadao-Server CPU model

Zhao Liu (1):
  target/i386: Add an option in X86CPUDefinition to control CPUID 0x1f

 target/i386/cpu.c | 380 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 380 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-11-25  9:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 10:21 [PATCH v2 0/4] target/i386: Add support for Zhaoxin Shijidadao vCPU models Ewan Hai
2025-10-27 10:21 ` [PATCH v2 1/4] target/i386: Add an option in X86CPUDefinition to control CPUID 0x1f Ewan Hai
2025-11-25  7:37   ` Zhao Liu
2025-10-27 10:21 ` [PATCH v2 2/4] target/i386: Add cache model for Zhaoxin Shijidadao vCPUs Ewan Hai
2025-11-25  7:15   ` Zhao Liu
2025-10-27 10:21 ` [PATCH v2 3/4] target/i386: Introduce Zhaoxin Shijidadao-Client CPU model Ewan Hai
2025-11-25  7:35   ` Zhao Liu
2025-11-25  8:57     ` Ewan Hai
2025-10-27 10:21 ` [PATCH v2 4/4] target/i386: Introduce Zhaoxin Shijidadao-Server " Ewan Hai

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).