diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2019-10-08 15:43:36 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-10-22 07:31:16 -0400 |
commit | 700c17d9cec8712f4091692488fb63e2680f7a5d (patch) | |
tree | 531dce00e01903f0f0996b9484556f2610051859 /tools/testing/selftests | |
parent | 44551b2f693d1ddcab4ca9895074f8f61c3a72af (diff) |
selftests: kvm: vmx_set_nested_state_test: don't check for VMX support twice
vmx_set_nested_state_test() checks if VMX is supported twice: in the very
beginning (and skips the whole test if it's not) and before doing
test_vmx_nested_state(). One should be enough.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r-- | tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c index 853e370e8a39..a6d85614ae4d 100644 --- a/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c +++ b/tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c | |||
@@ -271,12 +271,7 @@ int main(int argc, char *argv[]) | |||
271 | state.flags = KVM_STATE_NESTED_RUN_PENDING; | 271 | state.flags = KVM_STATE_NESTED_RUN_PENDING; |
272 | test_nested_state_expect_einval(vm, &state); | 272 | test_nested_state_expect_einval(vm, &state); |
273 | 273 | ||
274 | /* | 274 | test_vmx_nested_state(vm); |
275 | * TODO: When SVM support is added for KVM_SET_NESTED_STATE | ||
276 | * add tests here to support it like VMX. | ||
277 | */ | ||
278 | if (entry->ecx & CPUID_VMX) | ||
279 | test_vmx_nested_state(vm); | ||
280 | 275 | ||
281 | kvm_vm_free(vm); | 276 | kvm_vm_free(vm); |
282 | return 0; | 277 | return 0; |