OSDN Git Service

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)
commit877ad952be3d51445f6a74dd63708a9327c8f19d
tree663ac907cf4154268c1a9439b0469d2d5debea27
parentb08660e59dbdb600c55953787ed2265a0b510f77
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