linux_dsm_epyc7002/tools/testing/selftests/kvm/lib
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
..
aarch64 kvm: selftests: add pa-48/va-48 VM modes 2018-12-21 11:28:30 +01:00
x86_64 selftests: kvm: add a selftest for SMM 2019-04-16 15:38:06 +02:00
assert.c kvm: selftests: move arch-specific files to arch-specific locations 2018-10-17 00:26:16 +02:00
elf.c kvm: selftests: add sync_regs_test 2018-04-04 19:11:00 +02:00
io.c kvm: selftests: add sync_regs_test 2018-04-04 19:11:00 +02:00
kvm_util_internal.h kvm: selftests: aarch64: dirty_log_test: support greater than 40-bit IPAs 2018-12-21 11:28:30 +01:00
kvm_util.c selftests: kvm/evmcs_test: complete I/O before migrating guest state 2019-04-16 15:37:39 +02:00
sparsebit.c kvm: selftests: fix spelling mistake: "divisable" and "divisible" 2018-04-10 17:20:03 +02:00
ucall.c kvm: selftests: ucall: fix exit mmio address guessing 2018-12-21 13:58:46 +01:00