KVM: selftests: add svm part to triple_fault_test
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 3 Nov 2022 14:13:50 +0000 (16:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Nov 2022 16:40:00 +0000 (11:40 -0500)
commit8357b9e19bbb5c9ce671c7b6cb93e03fc0fe4016
tree5b21da90c7e6ae0b5ad85bce49455a71cb8dc60a
parent92e7d5c83aff124f49082585e57939ed24b59c5c
KVM: selftests: add svm part to triple_fault_test

Add a SVM implementation to triple_fault_test to test that
emulated/injected shutdown works.

Since instead of the VMX, the SVM allows the hypervisor to avoid
intercepting shutdown in guest, don't intercept shutdown to test that
KVM suports this correctly.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221103141351.50662-9-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/triple_fault_event_test.c