diff options
author | Wanpeng Li <wanpengli@tencent.com> | 2022-02-18 11:10:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-16 16:23:40 +0300 |
commit | 1280c8ae9745f6132cdd741d750c98b325f9536b (patch) | |
tree | 7c85269f0532c3d4cb4ccf3fc6f64a5c6e61d5a2 /ipc | |
parent | ee22082c3e2f230028afa0e22aa8773b1de3c919 (diff) | |
download | linux-1280c8ae9745f6132cdd741d750c98b325f9536b.tar.xz |
x86/kvm: Don't use pv tlb/ipi/sched_yield if on 1 vCPU
[ Upstream commit ec756e40e271866f951d77c5e923d8deb6002b15 ]
Inspired by commit 3553ae5690a (x86/kvm: Don't use pvqspinlock code if
only 1 vCPU), on a VM with only 1 vCPU, there is no need to enable
pv tlb/ipi/sched_yield and we can save the memory for __pv_cpu_mask.
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1645171838-2855-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions