KVM: selftests: Convert AMX test to use X86_PROPRETY_XXX
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:51:20 +0000 (00:51 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:59:05 +0000 (16:59 -0800)
commit5dc19f1c7dd302f48a9f7fe7f29bb186d3477795
treee0754a92210ca60286da99771388667ca994a7e3
parent40854713e3254f7a4fc4a92388309140e51e046c
KVM: selftests: Convert AMX test to use X86_PROPRETY_XXX

Add and use x86 "properties" for the myriad AMX CPUID values that are
validated by the AMX test.  Drop most of the test's single-usage
helpers so that the asserts more precisely capture what check failed.

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