KVM: selftests: Assert that XTILE is XSAVE-enabled
authorAaron Lewis <aaronlewis@google.com>
Tue, 21 Feb 2023 16:36:51 +0000 (16:36 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 24 Mar 2023 21:21:39 +0000 (14:21 -0700)
commit7e1075f050782c4d1249ebb15f63836bc2a94a97
treec0dd53cab9cbe7e3042010448e6b7c3e22939a2e
parentbfc5afc37c9dba85f8c057fb85109a72e72d64a5
KVM: selftests: Assert that XTILE is XSAVE-enabled

Assert that XTILE is XSAVE-enabled. check_xsave_supports_xtile() doesn't
actually check anything since its return value is not used. Add the
intended assert.

Opportunistically, move the assert to a more appropriate location:
immediately after XSETBV and remove check_xsave_supports_xtile().

Fixes: 5dc19f1c7dd3 ("KVM: selftests: Convert AMX test to use X86_PROPRETY_XXX")
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20230221163655.920289-10-mizhang@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/amx_test.c