]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: support paravirtualized help for TLB shootdowns
authorWanpeng Li <wanpeng.li@hotmail.com>
Wed, 13 Dec 2017 01:33:04 +0000 (17:33 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 16 Jan 2018 15:34:13 +0000 (16:34 +0100)
commit4643c6f0ead0025d1fcd7261fd0225df12142f86
tree6dd7bcbd99a7021e78b065e60b7b46f26d1571ad
parentb03a36d3206cd6f47b350a19b74d6f7e0663e6d4
KVM: X86: support paravirtualized help for TLB shootdowns

When running on a virtual machine, IPIs are expensive when the target
CPU is sleeping.  Thus, it is nice to be able to avoid them for TLB
shootdowns.  KVM can just do the flush via INVVPID on the guest's behalf
the next time the CPU is scheduled.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
[Use "&" to test the bit instead of "==". - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/x86.c