]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Drop unnecessary use of kvm_get_supported_cpuid_index()
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:07:00 +0000 (20:07 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:22 +0000 (18:14 -0700)
commit68d35e5c018f9845310f7e33232b1cdf3000d6dc
treedc5aa80de7b7e8d0555e95cbc4c9ea91d740a388
parent2d25b05e0653ad583562fd72a9d063782122898f
KVM: selftests: Drop unnecessary use of kvm_get_supported_cpuid_index()

Use kvm_get_supported_cpuid_entry() instead of
kvm_get_supported_cpuid_index() when passing in '0' for the index, which
just so happens to be the case in all remaining users of
kvm_get_supported_cpuid_index() except kvm_get_supported_cpuid_entry().

Keep the helper as there may be users in the future, and it's not doing
any harm.

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