]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c6a12455f9666089940082d87db31bce33f5102
treee515ef879f008f5a3dd7cf6d42bf500ce102ea5a
parent89be4229f1737035cc5224a72a5300d488335913
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]