]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Don't use PV TLB flush with dedicated physical CPUs
authorWanpeng Li <wanpengli@tencent.com>
Tue, 13 Feb 2018 01:05:42 +0000 (09:05 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 6 Mar 2018 17:40:45 +0000 (18:40 +0100)
commit53f1c805cf10a08b2ce0a7a7d95151bb55a069fd
treec1d447d139f2783978b2256341d126992656b62d
parentb248f814a6ce4bb282659587f20b726c90a03be0
KVM: X86: Don't use PV TLB flush with dedicated physical CPUs

vCPUs are very unlikely to get preempted when they are the only task
running on a CPU.  PV TLB flush is slower that the native flush in that
case, so disable it.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kernel/kvm.c