x86/kvm: Don't bother __pv_cpu_mask when !CONFIG_SMP
authorWanpeng Li <wanpengli@tencent.com>
Fri, 9 Apr 2021 04:18:29 +0000 (12:18 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Apr 2021 22:04:45 +0000 (18:04 -0400)
commit2b519b5797d432923afaba9522b6b62e13313e4e
treeb6097d01a4aad0f3ea0b3ce021932cd092b66c35
parent4c6654bd160dbf4503b360ef8eed80b99eb1b8d9
x86/kvm: Don't bother __pv_cpu_mask when !CONFIG_SMP

Enable PV TLB shootdown when !CONFIG_SMP doesn't make sense. Let's
move it inside CONFIG_SMP. In addition, we can avoid define and
alloc __pv_cpu_mask when !CONFIG_SMP and get rid of 'alloc' variable
in kvm_alloc_cpumask.

Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1617941911-5338-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c