KVM: selftests: Assert that XTILE_DATA is set in IA32_XFD on #NM
authorMingwei Zhang <mizhang@google.com>
Tue, 21 Feb 2023 16:36:48 +0000 (16:36 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 24 Mar 2023 21:21:38 +0000 (14:21 -0700)
commit9cbd9aaa670f7be61ba569f5c3ebafc2e0aabeb6
tree85a899fd6add11679e274e74f3d4bf336b27898d
parent0aeb9729486a32fab168114b00006b2643aa8a41
KVM: selftests: Assert that XTILE_DATA is set in IA32_XFD on #NM

Add an extra check to IA32_XFD to ensure that XTILE_DATA is actually set,
i.e. is consistent with the AMX architecture. In addition, repeat the
checks after the guest/host world switch to ensure the values of IA32_XFD
and IA32_XFD_ERR are well preserved.

Signed-off-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20230221163655.920289-7-mizhang@google.com
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/amx_test.c