Home
last modified time | relevance | path

Searched refs:hv_vcpu (Results 1 – 6 of 6) sorted by relevance

/linux-6.15/arch/x86/kvm/
H A Dhyperv.h71 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in to_hv_synic() local
73 return &hv_vcpu->synic; in to_hv_synic()
80 return hv_vcpu->vcpu; in hv_synic_to_vcpu()
92 return hv_vcpu ? hv_vcpu->vp_index : vcpu->vcpu_idx; in kvm_hv_get_vpindex()
134 struct kvm_vcpu_hv *hv_vcpu; in hv_stimer_to_vcpu() local
138 return hv_vcpu->vcpu; in hv_stimer_to_vcpu()
145 if (!hv_vcpu) in kvm_hv_has_stimer_pending()
167 if (!hv_vcpu || in kvm_hv_invtsc_suppressed()
203 return &hv_vcpu->tlb_flush_fifo[i]; in kvm_hv_get_tlb_flush_fifo()
222 return hv_vcpu && in guest_hv_cpuid_has_l2_tlb_flush()
[all …]
H A Dhyperv.c870 if (!hv_vcpu) in kvm_hv_process_stimers()
901 if (!hv_vcpu) in kvm_hv_vcpu_uninit()
907 kfree(hv_vcpu); in kvm_hv_vcpu_uninit()
915 if (!hv_vcpu) in kvm_hv_assist_page_enabled()
964 if (hv_vcpu) in kvm_hv_vcpu_init()
968 if (!hv_vcpu) in kvm_hv_vcpu_init()
972 hv_vcpu->vcpu = vcpu; in kvm_hv_vcpu_init()
1571 hv_vcpu->hv_vapic = data; in kvm_hv_set_msr()
1938 if (!hv_vcpu) in hv_tlb_flush_enqueue()
2307 if (!hv_vcpu) { in kvm_hv_set_cpuid()
[all …]
H A Dx86.c10854 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in vcpu_enter_guest() local
10857 vcpu->run->hyperv = hv_vcpu->exit; in vcpu_enter_guest()
/linux-6.15/arch/x86/kvm/svm/
H A Dhyperv.h19 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in nested_svm_hv_update_vm_vp_ids() local
21 if (!hv_vcpu) in nested_svm_hv_update_vm_vp_ids()
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()
33 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in nested_svm_l2_tlb_flush_enabled() local
35 if (!hv_vcpu) in nested_svm_l2_tlb_flush_enabled()
41 return hv_vcpu->vp_assist_page.nested_control.features.directhypercall; in nested_svm_l2_tlb_flush_enabled()
/linux-6.15/arch/x86/kvm/vmx/
H A Dhyperv.c19 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in nested_get_evmptr() local
24 if (unlikely(!hv_vcpu->vp_assist_page.enlighten_vmentry)) in nested_get_evmptr()
27 return hv_vcpu->vp_assist_page.current_nested_vmcs; in nested_get_evmptr()
97 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in evmcs_has_perf_global_ctrl() local
106 if (WARN_ON_ONCE(!hv_vcpu)) in evmcs_has_perf_global_ctrl()
109 return hv_vcpu->cpuid_cache.nested_ebx & HV_X64_NESTED_EVMCS1_PERF_GLOBAL_CTRL; in evmcs_has_perf_global_ctrl()
214 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in nested_evmcs_l2_tlb_flush_enabled() local
218 if (!hv_vcpu || !evmcs) in nested_evmcs_l2_tlb_flush_enabled()
224 return hv_vcpu->vp_assist_page.nested_control.features.directhypercall; in nested_evmcs_l2_tlb_flush_enabled()
H A Dnested.c231 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(vcpu); in nested_release_evmcs() local
238 if (hv_vcpu) { in nested_release_evmcs()
239 hv_vcpu->nested.pa_page_gpa = INVALID_GPA; in nested_release_evmcs()
240 hv_vcpu->nested.vm_id = 0; in nested_release_evmcs()
241 hv_vcpu->nested.vp_id = 0; in nested_release_evmcs()
1659 struct kvm_vcpu_hv *hv_vcpu = to_hv_vcpu(&vmx->vcpu); in copy_enlightened_to_vmcs12() local
1667 hv_vcpu->nested.pa_page_gpa = evmcs->partition_assist_page; in copy_enlightened_to_vmcs12()
1668 hv_vcpu->nested.vm_id = evmcs->hv_vm_id; in copy_enlightened_to_vmcs12()
1669 hv_vcpu->nested.vp_id = evmcs->hv_vp_id; in copy_enlightened_to_vmcs12()