]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: WARN on failure to set IA32_PERF_GLOBAL_CTRL
authorOliver Upton <oupton@google.com>
Sat, 14 Dec 2019 00:33:58 +0000 (16:33 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 18:59:49 +0000 (19:59 +0100)
commitd566af605f58f8daa428669d44c62885f9dc801e
tree32f8d6a27ec30759584aaf3d2b0f99f6bb8a7224
parent3289fec238298b60b837e3a0954c9f9522e6ab3e
KVM: nVMX: WARN on failure to set IA32_PERF_GLOBAL_CTRL

Writes to MSR_CORE_PERF_GLOBAL_CONTROL should never fail if the VM-exit
and VM-entry controls are exposed to L1. Promote the checks to perform a
full WARN if kvm_set_msr() fails and remove the now unused macro
SET_MSR_OR_WARN().

Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c