Skip to content

Commit bf70636

Browse files
yangzhonbonzini
authored andcommitted
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>
1 parent 6559b4a commit bf70636

File tree

2 files changed

+449
-0
lines changed

2 files changed

+449
-0
lines changed

tools/testing/selftests/kvm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ TEST_GEN_PROGS_x86_64 += x86_64/xen_shinfo_test
8282
TEST_GEN_PROGS_x86_64 += x86_64/xen_vmcall_test
8383
TEST_GEN_PROGS_x86_64 += x86_64/vmx_pi_mmio_test
8484
TEST_GEN_PROGS_x86_64 += x86_64/sev_migrate_tests
85+
TEST_GEN_PROGS_x86_64 += x86_64/amx_test
8586
TEST_GEN_PROGS_x86_64 += demand_paging_test
8687
TEST_GEN_PROGS_x86_64 += dirty_log_test
8788
TEST_GEN_PROGS_x86_64 += dirty_log_perf_test

0 commit comments

Comments
 (0)