KVM: selftests: Clean up requirements for XFD-aware XSAVE features
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:07:05 +0000 (20:07 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:24 +0000 (18:14 -0700)
commit090cd45b21cd0d26297315d4bd9b83d9dcad10e1
tree6c079900a09787f0eda837f2450e27cd1cc1cd50
parentd4c94ee8121cce64f2882f3bdcc346dc3d01bcdd
KVM: selftests: Clean up requirements for XFD-aware XSAVE features

Provide informative error messages for the various checks related to
requesting access to XSAVE features that are buried behind XSAVE Feature
Disabling (XFD).

Opportunistically rename the helper to have "require" in the name so that
it's somewhat obvious that the helper may skip the test.

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