aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorVitaly Kuznetsov <[email protected]>2019-08-27 16:04:02 +0000
committerRadim Krčmář <[email protected]>2019-08-27 18:59:04 +0000
commitea1529873ab18c204688cf31746df851c098cbea (patch)
treec9663fafc41633e17d9afb91b84cf423a7cf231e /tools/perf/scripts/python/mem-phys-addr.py
parentMerge tag 'kvm-ppc-fixes-5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-ea1529873ab18c204688cf31746df851c098cbea.tar.gz
kernel-ea1529873ab18c204688cf31746df851c098cbea.zip
KVM: x86: hyper-v: don't crash on KVM_GET_SUPPORTED_HV_CPUID when kvm_intel.nested is disabled
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. Cc: <[email protected]> Fixes: e2e871ab2f02 ("x86/kvm/hyper-v: Introduce nested_get_evmcs_version() helper") Signed-off-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: Jim Mattson <[email protected]> Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions