OSDN Git Service

selftests: kvm: vmx_set_nested_state_test: don't check for VMX support twice
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 8 Oct 2019 19:43:36 +0000 (21:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:31:16 +0000 (13:31 +0200)
commit700c17d9cec8712f4091692488fb63e2680f7a5d
tree531dce00e01903f0f0996b9484556f2610051859
parent44551b2f693d1ddcab4ca9895074f8f61c3a72af
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>
tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c