]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: selftests: Add CPU vendor detection for Hygon
authorZhiquan Li <zhiquan_li@163.com>
Thu, 12 Feb 2026 10:38:38 +0000 (18:38 +0800)
committerSean Christopherson <seanjc@google.com>
Mon, 2 Mar 2026 21:16:19 +0000 (13:16 -0800)
commit0c96c47d4345084f543f2fe60ab031507b9a1b2f
tree298bbf64751b2ba76e82fe2e21a8413496a00f9a
parent11439c4635edd669ae435eec308f4ab8a0804808
KVM: selftests: Add CPU vendor detection for Hygon

Currently some KVM selftests are failed on Hygon CPUs due to missing
vendor detection and edge-case handling specific to Hygon's
architecture.

Add CPU vendor detection for Hygon and add a global variable
"host_cpu_is_hygon" as the basic facility for the following fixes.

Signed-off-by: Zhiquan Li <zhiquan_li@163.com>
Link: https://patch.msgid.link/20260212103841.171459-2-zhiquan_li@163.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/x86/processor.h
tools/testing/selftests/kvm/lib/x86/processor.c