KVM: selftests: Use kvm_cpu_has() in AMX test
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:36 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:12 +0000 (18:14 -0700)
commit8fea056eeb0c4840593bf2ed1e4cab5030d0b5b5
tree4fb98f52035711546798abfa3af55518698c65b1
parent2697646bd343e3e04004f49a3673975729ef9f01
KVM: selftests: Use kvm_cpu_has() in AMX test

Use kvm_cpu_has() in the AMX test instead of open coding equivalent
functionality using kvm_get_supported_cpuid_entry() and
kvm_get_supported_cpuid_index().

No functional change intended.

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