KVM: selftests: Check that XTILEDATA supports XFD
authorAaron Lewis <aaronlewis@google.com>
Tue, 21 Feb 2023 16:36:55 +0000 (16:36 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 24 Mar 2023 21:21:42 +0000 (14:21 -0700)
commitd563164eaeb1a995c2a10ace6fdb0a730b41c167
tree435352528611265a0ffd7eff23e248fc397d7800
parentd32fb071429360f5f597c284087c845b2f748ebe
KVM: selftests: Check that XTILEDATA supports XFD

Check that XTILEDATA supports XFD. In amx_test, add the requirement that
the guest allows the xfeature, XTILEDATA, to be set in XFD. Otherwise, the
test may fail.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20230221163655.920289-14-mizhang@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/x86_64/amx_test.c