linux_dsm_epyc7002/tools/testing/selftests/kvm/x86_64
Vitaly Kuznetsov 79904c9de0 selftests: kvm: add a selftest for SMM
Add a simple test for SMM, based on VMX.  The test implements its own
sync between the guest and the host as using our ucall library seems to
be too cumbersome: SMI handler is happening in real-address mode.

This patch also fixes KVM_SET_NESTED_STATE to happen after
KVM_SET_VCPU_EVENTS, in fact it places it last.  This is because
KVM needs to know whether the processor is in SMM or not.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2019-04-16 15:38:06 +02:00
..
cr4_cpuid_sync_test.c KVM: selftests: assert on exit reason in CR4/cpuid sync test 2019-03-28 17:29:05 +01:00
evmcs_test.c selftests: kvm/evmcs_test: complete I/O before migrating guest state 2019-04-16 15:37:39 +02:00
hyperv_cpuid.c KVM: selftests: Add hyperv_cpuid test 2018-12-14 17:59:56 +01:00
platform_info_test.c kvm: selftests: move arch-specific files to arch-specific locations 2018-10-17 00:26:16 +02:00
set_sregs_test.c kvm: selftests: move arch-specific files to arch-specific locations 2018-10-17 00:26:16 +02:00
smm_test.c selftests: kvm: add a selftest for SMM 2019-04-16 15:38:06 +02:00
state_test.c selftests: kvm/evmcs_test: complete I/O before migrating guest state 2019-04-16 15:37:39 +02:00
sync_regs_test.c kvm: selftests: move arch-specific files to arch-specific locations 2018-10-17 00:26:16 +02:00
vmx_close_while_nested_test.c selftests: kvm: add selftest for releasing VM file descriptor while in L2 2019-02-12 13:12:12 +01:00
vmx_tsc_adjust_test.c KVM: selftests: state_test: test bare VMXON migration 2018-10-17 00:30:18 +02:00