diff options
author | Aaron Lewis <aaronlewis@google.com> | 2019-05-02 11:31:41 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-08 14:12:09 +0200 |
commit | da1e3071d53d79b00b07b34a5853c8e42f35d745 (patch) | |
tree | fd7b638659579b86d2870afb0564872170285d5c /tools/testing/selftests/kvm/include | |
parent | 332d079735f5add26f4443cec2991ee03ed2ae19 (diff) | |
download | linux-da1e3071d53d79b00b07b34a5853c8e42f35d745.tar.gz linux-da1e3071d53d79b00b07b34a5853c8e42f35d745.tar.bz2 linux-da1e3071d53d79b00b07b34a5853c8e42f35d745.zip |
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>
Diffstat (limited to 'tools/testing/selftests/kvm/include')
-rw-r--r-- | tools/testing/selftests/kvm/include/kvm_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/include/kvm_util.h b/tools/testing/selftests/kvm/include/kvm_util.h index 07b71ad9734a..8c6b9619797d 100644 --- a/tools/testing/selftests/kvm/include/kvm_util.h +++ b/tools/testing/selftests/kvm/include/kvm_util.h @@ -118,6 +118,10 @@ void vcpu_events_get(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_vcpu_events *events); void vcpu_events_set(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_vcpu_events *events); +void vcpu_nested_state_get(struct kvm_vm *vm, uint32_t vcpuid, + struct kvm_nested_state *state); +int vcpu_nested_state_set(struct kvm_vm *vm, uint32_t vcpuid, + struct kvm_nested_state *state, bool ignore_error); const char *exit_reason_str(unsigned int exit_reason); |