selftests: kvm: consolidate VMX support checks
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 8 Oct 2019 19:43:37 +0000 (21:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:31:16 +0000 (13:31 +0200)
commit9143613ef0ba9f88d2fef9038930637a0909d35a
tree459a449bd9f6747d5eeaa598ca032ac6f0e04ea5
parent700c17d9cec8712f4091692488fb63e2680f7a5d
selftests: kvm: consolidate VMX support checks

vmx_* tests require VMX and three of them implement the same check. Move it
to vmx library.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86_64/vmx.h
tools/testing/selftests/kvm/lib/x86_64/vmx.c
tools/testing/selftests/kvm/x86_64/vmx_close_while_nested_test.c
tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c
tools/testing/selftests/kvm/x86_64/vmx_tsc_adjust_test.c