KVM: selftests: Use X86_PROPERTY_MAX_KVM_LEAF in CPUID test
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:51:17 +0000 (00:51 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:59:03 +0000 (16:59 -0800)
commitd80ddad2a8e042e6499d69d5a45a17051092e161
tree7bdd42f01e44529111043e4cd272e6cd5e15ccbb
parent53a7dc0f215ec91b098e3e6d7bb4bb9cef43a99a
KVM: selftests: Use X86_PROPERTY_MAX_KVM_LEAF in CPUID test

Use X86_PROPERTY_MAX_KVM_LEAF to replace the equivalent open coded check
on KVM's maximum paravirt CPUID leaf.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221006005125.680782-5-seanjc@google.com
tools/testing/selftests/kvm/x86_64/cpuid_test.c