All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhao Liu <zhao1.liu@intel.com>
To: Ewan Hai <ewanhai-oc@zhaoxin.com>
Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, ewanhai@zhaoxin.com,
	cobechen@zhaoxin.com, TonyWWang@zhaoxin.com
Subject: Re: [PATCH v2 3/4] target/i386: Introduce Zhaoxin Shijidadao-Client CPU model
Date: Wed, 7 Jan 2026 11:55:20 +0800	[thread overview]
Message-ID: <aV3ZKFlCGFyeZ0wh@intel.com> (raw)
In-Reply-To: <a8516d27-0ee9-4139-9d47-51eda832c219@zhaoxin.com>

> >> As background, current Zhaoxin CPUs implement several CPUID.(EAX=0xC0000001,
> >> ECX=0):EDX feature bits that are not yet defined in the Linux kernel, for
> >> example SM2/SM2_EN, SM3/SM4 and their enable bits, PARALLAX/PARALLAX_EN,
> >> TM3/TM3_EN, RNG2/RNG2_EN, PHE2/PHE2_EN, and RSA/RSA_EN.
> >>
> >> We previously tried to upstream all these extra feature bits in one
> >> patch(https://lore.kernel.org/all/20230414095334.8743-1-TonyWWang-oc@zhaoxin.com/),
> >> but the maintainer rejected it because there was no in-tree code using these
> >> features yet. So our current plan is to add the CPUID bits together with real
> >> kernel users step by step.
> > 
> > I see. I think it's enough to document missing CPUIDs in comment.
> > 
> 
> Would the following comment be acceptable?
> 
> /*
>  * missing: SM2/SM2_EN, CCS/CCS_EN, PARALLAX/PARALLAX_EN,
>  * TM3/TM3_EN, RNG2/RNG2_EN, PHE2/PHE2_EN, RSA/RSA_EN
>  */

Yes, look good to me.

> Do you think I should also include the lore link in the commit message/cover
> letter for additional context?

Yes, mentioning the link in commit message is good. More information is
helpful.

> > Could we make Shijidadao-Client as a v2 of Shijidadao-Server, and create an
> > alias for this v2?
> > 
> > .alias = "Shijidadao-Client"
> > 
> > Then we could rename Shijidadao-Server to Shijidadao, and its v2 is for
> > client.
> > 
> >> This is also aligned with how QEMU models other vendors' micro-architectures
> >> where client and server products have slightly different feature sets.
> > 
> > The main use case for CPU models is to easy migration across mixed CPU
> > clusters [*]. So, IMO, not all products require a model.
> 
> For the CPU model naming/versioning, my plan is:
> The current Shijidadao will be equivalent to the old Shijidadao-Client-v2, drop
> the old Shijidadao-Client-v1 according to your advice, Shijidadao-v1 will have
> the alias Shijidadao-Client, and Shijidadao-v2 will have the alias
> Shijidadao-Server.

Migration should have more use cases for the server. Personally, I feel
using the server version as the base model might be more convenient?
Anyway, it's up to you. Overall, these are fine for me.

Thanks,
Zhao



  reply	other threads:[~2026-01-07  3:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-12-15  9:03       ` Zhao Liu
2026-01-05 10:11         ` Ewan Hai
2026-01-07  3:55           ` Zhao Liu [this message]
2026-01-07  3:36             ` Ewan Hai
2025-10-27 10:21 ` [PATCH v2 4/4] target/i386: Introduce Zhaoxin Shijidadao-Server " Ewan Hai

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=aV3ZKFlCGFyeZ0wh@intel.com \
    --to=zhao1.liu@intel.com \
    --cc=TonyWWang@zhaoxin.com \
    --cc=cobechen@zhaoxin.com \
    --cc=ewanhai-oc@zhaoxin.com \
    --cc=ewanhai@zhaoxin.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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.