]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use vCPU's CPUID directly in Hyper-V test
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:51 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:18 +0000 (18:14 -0700)
commit14bd317aa9c424b6272143485d9fb5df70ee5ed6
treee3af287190a6b027bf97267912c22b02fc0142be
parentc6c48f49a249d4317cdc9e3d4a0c489864e4e524
KVM: selftests: Use vCPU's CPUID directly in Hyper-V test

Use the vCPU's persistent CPUID array directly when manipulating the set
of exposed Hyper-V CPUID features.  Drop set_cpuid() to route all future
modification through the vCPU helpers; the Hyper-V features test was the
last user.

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