]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: vmx: Add tlb_remote_flush callback support
authorTianyu Lan <Tianyu.Lan@microsoft.com>
Thu, 19 Jul 2018 08:40:23 +0000 (08:40 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:07 +0000 (17:59 +0200)
commit72e1ffa1c5a5952bacbf870bcbce9774c968d9d0
tree663ac907cf4154268c1a9439b0469d2d5debea27
parentf683e2aaf37061f2a85209e4e4906d979db75508
KVM: vmx: Add tlb_remote_flush callback support

Register tlb_remote_flush callback for vmx when hyperv capability of
nested guest mapping flush is detected. The interface can help to
reduce overhead when flush ept table among vcpus for nested VM. The
tradition way is to send IPIs to all affected vcpus and executes
INVEPT on each vcpus. It will trigger several vmexits for IPI
and INVEPT emulation. Hyper-V provides such hypercall to do
flush for all vcpus and call the hypercall when all ept table
pointers of single VM are same.

Signed-off-by: Lan Tianyu <Tianyu.Lan@microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c