[PATCH 0/3] kvm: selftests: initial version of state save/restore test

From: Paolo Bonzini
Date: Thu Jul 26 2018 - 07:26:55 EST


To be improved into a test for nested state save/restore

Paolo Bonzini (3):
KVM: x86: ensures all MSRs can always be KVM_GET/SET_MSR'd
kvm: selftests: ensure vcpu file is released
kvm: selftests: add basic test for state save and restore

arch/x86/kvm/hyperv.c | 27 +++-
arch/x86/kvm/hyperv.h | 2 +-
arch/x86/kvm/x86.c | 15 ++-
tools/testing/selftests/kvm/Makefile | 1 +
tools/testing/selftests/kvm/include/x86.h | 4 +
tools/testing/selftests/kvm/lib/kvm_util.c | 18 ++-
.../selftests/kvm/lib/kvm_util_internal.h | 1 +
tools/testing/selftests/kvm/lib/x86.c | 118 +++++++++++++++++
tools/testing/selftests/kvm/state_test.c | 123 ++++++++++++++++++
9 files changed, 289 insertions(+), 20 deletions(-)
create mode 100644 tools/testing/selftests/kvm/state_test.c

--
2.17.1