Skip to content

Commit b941ba2

Browse files
committed
KVM: selftests: Drop helpers for getting specific KVM supported CPUID entry
Drop kvm_get_supported_cpuid_entry() and its inner helper now that all known usage can use X86_FEATURE_*, X86_PROPERTY_*, X86_PMU_FEATURE_*, or the dedicated Family/Model helpers. Providing "raw" access to CPUID leafs is undesirable as it encourages open coding CPUID checks, which is often error prone and not self-documenting. No functional change intended. Signed-off-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 074e9d4 commit b941ba2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tools/testing/selftests/kvm/include/x86_64/processor.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -902,17 +902,6 @@ static inline void vcpu_clear_cpuid_feature(struct kvm_vcpu *vcpu,
902902
vcpu_set_or_clear_cpuid_feature(vcpu, feature, false);
903903
}
904904

905-
static inline const struct kvm_cpuid_entry2 *__kvm_get_supported_cpuid_entry(uint32_t function,
906-
uint32_t index)
907-
{
908-
return get_cpuid_entry(kvm_get_supported_cpuid(), function, index);
909-
}
910-
911-
static inline const struct kvm_cpuid_entry2 *kvm_get_supported_cpuid_entry(uint32_t function)
912-
{
913-
return __kvm_get_supported_cpuid_entry(function, 0);
914-
}
915-
916905
uint64_t vcpu_get_msr(struct kvm_vcpu *vcpu, uint64_t msr_index);
917906
int _vcpu_set_msr(struct kvm_vcpu *vcpu, uint64_t msr_index, uint64_t msr_value);
918907

0 commit comments

Comments
 (0)