KVM: selftests: Add check of CR0.TS in the #NM handler in amx_test
authorMingwei Zhang <mizhang@google.com>
Tue, 21 Feb 2023 16:36:47 +0000 (16:36 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 24 Mar 2023 21:21:37 +0000 (14:21 -0700)
commit0aeb9729486a32fab168114b00006b2643aa8a41
tree67068f3c807858093912d22aa8c7268b59ab6c74
parent48ad4222c43ceb5ce303758ff26e1d8c881502ac
KVM: selftests: Add check of CR0.TS in the #NM handler in amx_test

Be extra paranoid and assert that CR0.TS is clear when verifying the #NM
in the AMX test is due to the expected XFeature Disable error, i.e. that
the #NM isn't due to CR0.TS=1.

Signed-off-by: Mingwei Zhang <mizhang@google.com>
Link: https://lore.kernel.org/r/20230221163655.920289-6-mizhang@google.com
[sean: reword changelog to make it clear this is pure paranoia]
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/amx_test.c