• Tianyu Lan's avatar
    KVM: vmx: Add tlb_remote_flush callback support · 877ad952
    Tianyu Lan authored
    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: default avatarLan Tianyu <Tianyu.Lan@microsoft.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    877ad952
vmx.c 391 KB