Commit 700c17d9 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Paolo Bonzini
Browse files

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: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 44551b2f
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -271,11 +271,6 @@ int main(int argc, char *argv[])
	state.flags = KVM_STATE_NESTED_RUN_PENDING;
	test_nested_state_expect_einval(vm, &state);

	/*
	 * TODO: When SVM support is added for KVM_SET_NESTED_STATE
	 *       add tests here to support it like VMX.
	 */
	if (entry->ecx & CPUID_VMX)
	test_vmx_nested_state(vm);

	kvm_vm_free(vm);