]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde9816888ab7cad2468409fd9e2f56bee14756f3
tree6c079900a09787f0eda837f2450e27cd1cc1cd50
parent7ccdbb4bf752676e5c2e7ede85a40c16bd9af5e6
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