]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use the common cpuid() helper in cpu_vendor_string_is()
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:07:06 +0000 (20:07 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:25 +0000 (18:14 -0700)
commitf0842f03b026f2c0c470998b33924ea40670b059
treebd489d38ad9098df453cb304fa07e9be11b77a31
parentde9816888ab7cad2468409fd9e2f56bee14756f3
KVM: selftests: Use the common cpuid() helper in cpu_vendor_string_is()

Use cpuid() to get CPUID.0x0 in cpu_vendor_string_is(), thus eliminating
the last open coded usage of CPUID (ignoring debug_regs.c, which emits
CPUID from the guest to trigger a VM-Exit and doesn't actually care about
the results of CPUID).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-42-seanjc@google.com
tools/testing/selftests/kvm/lib/x86_64/processor.c