[PATCH 0/3] KVM: x86: fix a couple of issues with Enlightened VMCS enablement

From: Vitaly Kuznetsov
Date: Tue Aug 27 2019 - 12:04:10 EST


It was discovered that:
- hyperv_cpuid test fails on AMD
- hyperv_cpuid test crashes kernel on Intel when nested=0
The test itself is good, we need to fix the issues.

Vitaly Kuznetsov (3):
KVM: x86: hyper-v: don't crash on KVM_GET_SUPPORTED_HV_CPUID when
kvm_intel.nested is disabled
KVM: x86: svm: remove unneeded nested_enable_evmcs() hook
KVM: x86: announce KVM_CAP_HYPERV_ENLIGHTENED_VMCS support only when
it is available

arch/x86/kvm/hyperv.c | 5 ++++-
arch/x86/kvm/svm.c | 17 ++---------------
arch/x86/kvm/vmx/vmx.c | 1 +
arch/x86/kvm/x86.c | 3 ++-
4 files changed, 9 insertions(+), 17 deletions(-)

--
2.20.1