6 #ifndef __ARCH_X86_KVM_SVM_HYPERV_H__
7 #define __ARCH_X86_KVM_SVM_HYPERV_H__
9 #include <asm/mshyperv.h>
11 #include "../hyperv.h"
14 #ifdef CONFIG_KVM_HYPERV
18 struct hv_vmcb_enlightenments *hve = &svm->
nested.
ctl.hv_enlightenments;
19 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu);
24 hv_vcpu->nested.pa_page_gpa = hve->partition_assist_page;
25 hv_vcpu->nested.vm_id = hve->hv_vm_id;
26 hv_vcpu->nested.vp_id = hve->hv_vp_id;
32 struct hv_vmcb_enlightenments *hve = &svm->
nested.
ctl.hv_enlightenments;
33 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu);
38 if (!hve->hv_enlightenments_control.nested_flush_hypercall)
41 return hv_vcpu->vp_assist_page.nested_control.features.directhypercall;
struct vmcb_ctrl_area_cached ctl
struct svm_nested_state nested
static void nested_svm_hv_update_vm_vp_ids(struct kvm_vcpu *vcpu)
static void svm_hv_inject_synthetic_vmexit_post_tlb_flush(struct kvm_vcpu *vcpu)
static bool nested_svm_l2_tlb_flush_enabled(struct kvm_vcpu *vcpu)
static __always_inline struct vcpu_svm * to_svm(struct kvm_vcpu *vcpu)