[PATCH 0/2] x86/kvm/hyper-v: fix KVM_CAP_HYPERV_ENLIGHTENED_VMCS

From: Vitaly Kuznetsov
Date: Thu Jan 17 2019 - 12:12:17 EST


Commit e2e871ab2f02 ("x86/kvm/hyper-v: Introduce nested_get_evmcs_version()
helper") broke KVM_CAP_HYPERV_ENLIGHTENED_VMCS: the returned evmcs version
is always zero now. Fix the issue and add a check to evmcs selftest.

The offending commit is in 5.0-rc1, it would be great if the fix could be
queued before 5.0.

Vitaly Kuznetsov (2):
x86/kvm/hyper-v: nested_enable_evmcs() sets vmcs_version incorrectly
KVM: selftests: check returned evmcs version range

arch/x86/kvm/vmx/evmcs.c | 7 ++++---
tools/testing/selftests/kvm/x86_64/evmcs_test.c | 6 ++++++
2 files changed, 10 insertions(+), 3 deletions(-)

--
2.20.1