stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 1/3] KVM: x86: hyper-v: don't crash on KVM_GET_SUPPORTED_HV_CPUID when kvm_intel.nested is disabled
       [not found] ` <20190827160404.14098-2-vkuznets@redhat.com>
@ 2019-08-27 18:52   ` Radim Krčmář
  0 siblings, 0 replies; only message in thread
From: Radim Krčmář @ 2019-08-27 18:52 UTC (permalink / raw)
  To: Vitaly Kuznetsov
  Cc: kvm, linux-kernel, Paolo Bonzini, Joerg Roedel, Jim Mattson,
	Sean Christopherson, Roman Kagan, stable

2019-08-27 18:04+0200, Vitaly Kuznetsov:
> If kvm_intel is loaded with nested=0 parameter an attempt to perform
> KVM_GET_SUPPORTED_HV_CPUID results in OOPS as nested_get_evmcs_version hook
> in kvm_x86_ops is NULL (we assign it in nested_vmx_hardware_setup() and
> this only happens in case nested is enabled).
> 
> Check that kvm_x86_ops->nested_get_evmcs_version is not NULL before
> calling it. With this, we can remove the stub from svm as it is no
> longer needed.
> 

Added

Cc: <stable@vger.kernel.org>

> Fixes: e2e871ab2f02 ("x86/kvm/hyper-v: Introduce nested_get_evmcs_version() helper")
> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>

and applied, thanks.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-27 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190827160404.14098-1-vkuznets@redhat.com>
     [not found] ` <20190827160404.14098-2-vkuznets@redhat.com>
2019-08-27 18:52   ` [PATCH 1/3] KVM: x86: hyper-v: don't crash on KVM_GET_SUPPORTED_HV_CPUID when kvm_intel.nested is disabled Radim Krčmář

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).