linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] KVM: x86: allow CPUID 0xC000_0000 to proceed on Zhaoxin CPUs
@ 2025-08-18  8:30 Ewan Hai
  2025-08-19 23:11 ` Sean Christopherson
  0 siblings, 1 reply; 3+ messages in thread
From: Ewan Hai @ 2025-08-18  8:30 UTC (permalink / raw)
  To: seanjc, pbonzini, tglx, mingo, bp, dave.hansen, hpa
  Cc: x86, kvm, linux-kernel, ewanhai, cobechen, leoliu, lyleli

Bypass the Centaur-only filter for the CPUID signature leaf so that
processing continues when the CPU vendor is Zhaoxin.

Signed-off-by: Ewan Hai <ewanhai-oc@zhaoxin.com>
---
 arch/x86/kvm/cpuid.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index e2836a255b16..bee8c869259f 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -1820,7 +1820,8 @@ static int get_cpuid_func(struct kvm_cpuid_array *array, u32 func,
 	int r;
 
 	if (func == CENTAUR_CPUID_SIGNATURE &&
-	    boot_cpu_data.x86_vendor != X86_VENDOR_CENTAUR)
+	    boot_cpu_data.x86_vendor != X86_VENDOR_CENTAUR &&
+	    boot_cpu_data.x86_vendor != X86_VENDOR_ZHAOXIN)
 		return 0;
 
 	r = do_cpuid_func(array, func, type);
-- 
2.34.1


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

* Re: [PATCH v2] KVM: x86: allow CPUID 0xC000_0000 to proceed on Zhaoxin CPUs
  2025-08-18  8:30 [PATCH v2] KVM: x86: allow CPUID 0xC000_0000 to proceed on Zhaoxin CPUs Ewan Hai
@ 2025-08-19 23:11 ` Sean Christopherson
  2025-08-20  2:03   ` Ewan Hai
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Christopherson @ 2025-08-19 23:11 UTC (permalink / raw)
  To: Sean Christopherson, pbonzini, tglx, mingo, bp, dave.hansen, hpa,
	Ewan Hai
  Cc: x86, kvm, linux-kernel, ewanhai, cobechen, leoliu, lyleli

On Mon, 18 Aug 2025 04:30:34 -0400, Ewan Hai wrote:
> Bypass the Centaur-only filter for the CPUID signature leaf so that
> processing continues when the CPU vendor is Zhaoxin.

Applied to kvm-x86 misc, thanks!

[1/1] KVM: x86: allow CPUID 0xC000_0000 to proceed on Zhaoxin CPUs
      https://github.com/kvm-x86/linux/commit/1f0654dc75b8

--
https://github.com/kvm-x86/linux/tree/next

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

* Re: [PATCH v2] KVM: x86: allow CPUID 0xC000_0000 to proceed on Zhaoxin CPUs
  2025-08-19 23:11 ` Sean Christopherson
@ 2025-08-20  2:03   ` Ewan Hai
  0 siblings, 0 replies; 3+ messages in thread
From: Ewan Hai @ 2025-08-20  2:03 UTC (permalink / raw)
  To: Sean Christopherson, pbonzini, tglx, mingo, bp, dave.hansen, hpa
  Cc: x86, kvm, linux-kernel, ewanhai, cobechen, leoliu, lyleli

On 8/20/25 7:11 AM, Sean Christopherson wrote:
> 
> On Mon, 18 Aug 2025 04:30:34 -0400, Ewan Hai wrote:
>> Bypass the Centaur-only filter for the CPUID signature leaf so that
>> processing continues when the CPU vendor is Zhaoxin.
> 
> Applied to kvm-x86 misc, thanks!

Thank you for your suggestions!

> 
> [1/1] KVM: x86: allow CPUID 0xC000_0000 to proceed on Zhaoxin CPUs
>       https://github.com/kvm-x86/linux/commit/1f0654dc75b8
> 
> --
> https://github.com/kvm-x86/linux/tree/next


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

end of thread, other threads:[~2025-08-20  8:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18  8:30 [PATCH v2] KVM: x86: allow CPUID 0xC000_0000 to proceed on Zhaoxin CPUs Ewan Hai
2025-08-19 23:11 ` Sean Christopherson
2025-08-20  2:03   ` 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).