]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: define and use EVMCS_VERSION
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 9 Mar 2020 15:52:14 +0000 (16:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 17:19:31 +0000 (18:19 +0100)
commitc22e8be23b21d410f9eb7db75795408c59dae6af
treea9e1fd144fbdd8372fac06cbba82d7f5e1cb01e1
parent5e1f02238ae8edc41ce3aa8e6bf1b9c9066d263a
KVM: selftests: define and use EVMCS_VERSION

KVM allows to use revision_id from MSR_IA32_VMX_BASIC as eVMCS revision_id
to workaround a bug in genuine Hyper-V (see the comment in
nested_vmx_handle_enlightened_vmptrld()), this shouldn't be used by
default. Switch to using KVM_EVMCS_VERSION(1).

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