Merge tag 'cgroup-for-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
[linux-block.git] / arch / x86 / kvm / kvm_onhyperv.h
CommitLineData
3c86c0d3
VP
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * KVM L1 hypervisor optimizations on Hyper-V.
4 */
5
6#ifndef __ARCH_X86_KVM_KVM_ONHYPERV_H__
7#define __ARCH_X86_KVM_KVM_ONHYPERV_H__
8
9#if IS_ENABLED(CONFIG_HYPERV)
9ed3bf41 10int hv_flush_remote_tlbs_range(struct kvm *kvm, gfn_t gfn, gfn_t nr_pages);
8a1300ff 11int hv_flush_remote_tlbs(struct kvm *kvm);
3d4421f8 12void hv_track_root_tdp(struct kvm_vcpu *vcpu, hpa_t root_tdp);
3c86c0d3 13#else /* !CONFIG_HYPERV */
c8c655c3 14static inline int hv_flush_remote_tlbs(struct kvm *kvm)
e5c972c1
JP
15{
16 return -EOPNOTSUPP;
17}
18
3c86c0d3
VP
19static inline void hv_track_root_tdp(struct kvm_vcpu *vcpu, hpa_t root_tdp)
20{
21}
22#endif /* !CONFIG_HYPERV */
23
24#endif