Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * KVM L1 hypervisor optimizations on Hyper-V.
0004  */
0005 
0006 #ifndef __ARCH_X86_KVM_KVM_ONHYPERV_H__
0007 #define __ARCH_X86_KVM_KVM_ONHYPERV_H__
0008 
0009 #if IS_ENABLED(CONFIG_HYPERV)
0010 int hv_remote_flush_tlb_with_range(struct kvm *kvm,
0011         struct kvm_tlb_range *range);
0012 int hv_remote_flush_tlb(struct kvm *kvm);
0013 void hv_track_root_tdp(struct kvm_vcpu *vcpu, hpa_t root_tdp);
0014 #else /* !CONFIG_HYPERV */
0015 static inline void hv_track_root_tdp(struct kvm_vcpu *vcpu, hpa_t root_tdp)
0016 {
0017 }
0018 #endif /* !CONFIG_HYPERV */
0019 
0020 #endif