]> 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)
commitc825a543ef76a7bdd72f7eca2044ca2cd60e31fd
tree6dd7bcbd99a7021e78b065e60b7b46f26d1571ad
parentc0016976a521224c387ae566e4aa6b7b34cf28c5
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