]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Skip AMX test if ARCH_REQ_XCOMP_GUEST_PERM isn't supported
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:07:04 +0000 (20:07 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:24 +0000 (18:14 -0700)
commit7ccdbb4bf752676e5c2e7ede85a40c16bd9af5e6
tree21a040301a4c0fc7a80244f0fb1258ac56c22008
parent9898b42ff38e8a1c4512418b955d908e67e5796b
KVM: selftests: Skip AMX test if ARCH_REQ_XCOMP_GUEST_PERM isn't supported

Skip the AMX test instead of silently returning if the host kernel
doesn't support ARCH_REQ_XCOMP_GUEST_PERM.  KVM didn't support XFD until
v5.17, so it's extremely unlikely allowing the test to run on a pre-v5.15
kernel is the right thing to do.

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