]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: WARN_ONCE if sending a PV IPI returns a fatal error
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 23 Jan 2019 17:22:40 +0000 (09:22 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jan 2019 18:11:33 +0000 (19:11 +0100)
commit82651e0e255c63db4dbc64f991598def097f6c02
treeeb65307e6eb62bb7a11fc0fa8e48a745dc4a9983
parented171f66c1ca4fcc0d2b02a9205608354c5f6b73
KVM: x86: WARN_ONCE if sending a PV IPI returns a fatal error

KVM hypercalls return a negative value error code in case of a fatal
error, e.g. when the hypercall isn't supported or was made with invalid
parameters.  WARN_ONCE on fatal errors when sending PV IPIs as any such
error all but guarantees an SMP system will hang due to a missing IPI.

Fixes: 189dfa9f93db ("KVM: X86: Implement PV IPIs in linux guest")
Cc: stable@vger.kernel.org
Cc: Wanpeng Li <wanpengli@tencent.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c