KVM: selftests: Use kvm_cpu_has() for KVM's PV steal time
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:39 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:13 +0000 (18:14 -0700)
commit601c067f381532105d01db9257b69eb9cfa8945e
tree4f328fd39a559230d2c04584e1433394c91109ef
parentb046f4ee9cb60da285e1d45a1fe8dc6bb5fc446e
KVM: selftests: Use kvm_cpu_has() for KVM's PV steal time

Use kvm_cpu_has() in the stea-ltime test instead of open coding
equivalent functionality using kvm_get_supported_cpuid_entry().

Opportunistically define all of KVM's paravirt CPUID-based features.

No functional change intended.

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