selftest: kvm: Add amx selftest
authorYang Zhong <yang.zhong@intel.com>
Thu, 23 Dec 2021 14:53:22 +0000 (09:53 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jan 2022 18:44:44 +0000 (13:44 -0500)
commitbf70636d9443c9e0718fd98765ba634e631ed079
treee515ef879f008f5a3dd7cf6d42bf500ce102ea5a
parent6559b4a523cd65f6005b4592833b16ba970abdf5
selftest: kvm: Add amx selftest

This selftest covers two aspects of AMX.  The first is triggering #NM
exception and checking the MSR XFD_ERR value.  The second case is
loading tile config and tile data into guest registers and trapping to
the host side for a complete save/load of the guest state.  TMM0
is also checked against memory data after save/restore.

Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20211223145322.2914028-4-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/amx_test.c [new file with mode: 0644]