Skip to content
Commit 3553ae56 authored by Waiman Long's avatar Waiman Long Committed by Paolo Bonzini
Browse files

x86/kvm: Don't use pvqspinlock code if only 1 vCPU



On a VM with only 1 vCPU, the locking fast path will always be
successful. In this case, there is no need to use the the PV qspinlock
code which has higher overhead on the unlock side than the native
qspinlock code.

Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 450917b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment