]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: announce KVM_CAP_HYPERV_ENLIGHTENED_VMCS support only when it is available
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 28 Aug 2019 07:59:05 +0000 (09:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 11:37:17 +0000 (13:37 +0200)
commit6950fdfc6259ed0db8d697476f6afe1abd9e0241
tree5dd183903be838fc9058691e89ab89120305f136
parentcd48e78f6cd407c9729dc26f55f693295de82818
KVM: x86: announce KVM_CAP_HYPERV_ENLIGHTENED_VMCS support only when it is available

It was discovered that after commit 085754ef0a79 ("selftests: kvm: provide
common function to enable eVMCS") hyperv_cpuid selftest is failing on AMD.
The reason is that the commit changed _vcpu_ioctl() to vcpu_ioctl() in the
test and this one can't fail.

Instead of fixing the test is seems to make more sense to not announce
KVM_CAP_HYPERV_ENLIGHTENED_VMCS support if it is definitely missing
(on svm and in case kvm_intel.nested=0).

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c