]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit283848a993ea0063434cc514b9c9b06d8e25d21c
tree4f328fd39a559230d2c04584e1433394c91109ef
parent0b9775016671f7e873a368d30597964e9b094741
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