Home
last modified time | relevance | path

Searched refs:hve (Results 1 – 4 of 4) sorted by relevance

/linux/arch/x86/kvm/svm/
H A Dsvm_onhyperv.h22 struct hv_vmcb_enlightenments *hve = &to_svm(vcpu)->vmcb->control.hv_enlightenments; in svm_hv_is_enlightened_tlb_enabled() local
25 !!hve->hv_enlightenments_control.enlightened_npt_tlb; in svm_hv_is_enlightened_tlb_enabled()
30 struct hv_vmcb_enlightenments *hve = &vmcb->control.hv_enlightenments; in svm_hv_init_vmcb() local
37 hve->hv_enlightenments_control.enlightened_npt_tlb = 1; in svm_hv_init_vmcb()
40 hve->hv_enlightenments_control.msr_bitmap = 1; in svm_hv_init_vmcb()
74 struct hv_vmcb_enlightenments *hve = &vmcb->control.hv_enlightenments; in svm_hv_vmcb_dirty_nested_enlightenments() local
76 if (hve->hv_enlightenments_control.msr_bitmap) in svm_hv_vmcb_dirty_nested_enlightenments()
82 struct hv_vmcb_enlightenments *hve = &vmcb->control.hv_enlightenments; in svm_hv_update_vp_id() local
85 if (hve->hv_vp_id != vp_index) { in svm_hv_update_vp_id()
86 hve->hv_vp_id = vp_index; in svm_hv_update_vp_id()
H A Dsvm_onhyperv.c20 struct hv_vmcb_enlightenments *hve; in svm_hv_enable_l2_tlb_flush() local
26 hve = &to_svm(vcpu)->vmcb->control.hv_enlightenments; in svm_hv_enable_l2_tlb_flush()
28 hve->partition_assist_page = partition_assist_page; in svm_hv_enable_l2_tlb_flush()
29 hve->hv_vm_id = (unsigned long)vcpu->kvm; in svm_hv_enable_l2_tlb_flush()
30 if (!hve->hv_enlightenments_control.nested_flush_hypercall) { in svm_hv_enable_l2_tlb_flush()
31 hve->hv_enlightenments_control.nested_flush_hypercall = 1; in svm_hv_enable_l2_tlb_flush()
H A Dhyperv.h18 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; in nested_svm_hv_update_vm_vp_ids() local
24 hv_vcpu->nested.pa_page_gpa = hve->partition_assist_page; in nested_svm_hv_update_vm_vp_ids()
25 hv_vcpu->nested.vm_id = hve->hv_vm_id; in nested_svm_hv_update_vm_vp_ids()
26 hv_vcpu->nested.vp_id = hve->hv_vp_id; in nested_svm_hv_update_vm_vp_ids()
32 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; in nested_svm_l2_tlb_flush_enabled() local
38 if (!hve->hv_enlightenments_control.nested_flush_hypercall) in nested_svm_l2_tlb_flush_enabled()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_svm_test.c74 struct hv_vmcb_enlightenments *hve = &vmcb->control.hv_enlightenments; in guest_code() local
88 hve->partition_assist_page = hv_pages->partition_assist_gpa; in guest_code()
89 hve->hv_enlightenments_control.nested_flush_hypercall = 1; in guest_code()
90 hve->hv_vm_id = 1; in guest_code()
91 hve->hv_vp_id = 1; in guest_code()
109 hve->hv_enlightenments_control.msr_bitmap = 1; in guest_code()