KVM: Check the allocation of pv cpu mask
authorHaiwei Li <lihaiwei@tencent.com>
Tue, 1 Sep 2020 11:41:37 +0000 (19:41 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Sep 2020 17:15:10 +0000 (13:15 -0400)
commit0f990222108d214a0924d920e6095b58107d7b59
tree9793b3176478a7b173a800b95fd9e0b01c5ea134
parent43fea4e42599c3eb4109996698f5c25761d3f815
KVM: Check the allocation of pv cpu mask

check the allocation of per-cpu __pv_cpu_mask. Initialize ops only when
successful.

Signed-off-by: Haiwei Li <lihaiwei@tencent.com>
Message-Id: <d59f05df-e6d3-3d31-a036-cc25a2b2f33f@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c