tests: kvm: Add tests for KVM_SET_NESTED_STATE
authorAaron Lewis <aaronlewis@google.com>
Thu, 2 May 2019 18:31:41 +0000 (11:31 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 May 2019 12:12:09 +0000 (14:12 +0200)
commitda1e3071d53d79b00b07b34a5853c8e42f35d745
treefd7b638659579b86d2870afb0564872170285d5c
parent332d079735f5add26f4443cec2991ee03ed2ae19
tests: kvm: Add tests for KVM_SET_NESTED_STATE

Add tests for KVM_SET_NESTED_STATE and for various code paths in its implementation in vmx_set_nested_state().

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Reviewed-by: Marc Orr <marcorr@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c [new file with mode: 0644]