selftests: kvm: provide common function to enable eVMCS
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Aug 2019 16:02:41 +0000 (12:02 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Aug 2019 07:16:02 +0000 (09:16 +0200)
commit65efa61dc0d536d5f0602c33ee805a57cc07e9dc
tree6794e51c0a6fa5da3fecb33f9642b7a08b2c05a1
parent92cd0f0be3d7adb63611c28693ec0399beded837
selftests: kvm: provide common function to enable eVMCS

There are two tests already enabling eVMCS and a third is coming.
Add a function that enables the capability and tests the result.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/evmcs.h
tools/testing/selftests/kvm/lib/x86_64/vmx.c
tools/testing/selftests/kvm/x86_64/evmcs_test.c
tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c