Home
last modified time | relevance | path

Searched refs:evmcs (Results 1 – 5 of 5) sorted by relevance

/linux/arch/x86/kvm/vmx/
H A Dnested.c692 struct hv_enlightened_vmcs *evmcs = nested_vmx_evmcs(vmx); in nested_vmx_prepare_msr_bitmap() local
694 if (evmcs && evmcs->hv_enlightenments_control.msr_bitmap && in nested_vmx_prepare_msr_bitmap()
695 evmcs->hv_clean_fields & HV_VMX_ENLIGHTENED_CLEAN_FIELD_MSR_BITMAP) in nested_vmx_prepare_msr_bitmap()
1693 struct hv_enlightened_vmcs *evmcs = nested_vmx_evmcs(vmx); in copy_enlightened_to_vmcs12() local
1697 vmcs12->tpr_threshold = evmcs->tpr_threshold; in copy_enlightened_to_vmcs12()
1698 vmcs12->guest_rip = evmcs->guest_rip; in copy_enlightened_to_vmcs12()
1702 hv_vcpu->nested.pa_page_gpa = evmcs->partition_assist_page; in copy_enlightened_to_vmcs12()
1703 hv_vcpu->nested.vm_id = evmcs->hv_vm_id; in copy_enlightened_to_vmcs12()
1704 hv_vcpu->nested.vp_id = evmcs->hv_vp_id; in copy_enlightened_to_vmcs12()
1709 vmcs12->guest_rsp = evmcs->guest_rsp; in copy_enlightened_to_vmcs12()
[all …]
H A Dhyperv.c216 struct hv_enlightened_vmcs *evmcs = vmx->nested.hv_evmcs; in nested_evmcs_l2_tlb_flush_enabled() local
218 if (!hv_vcpu || !evmcs) in nested_evmcs_l2_tlb_flush_enabled()
221 if (!evmcs->hv_enlightenments_control.nested_flush_hypercall) in nested_evmcs_l2_tlb_flush_enabled()
H A Dhyperv_evmcs.h154 static inline u64 evmcs_read_any(struct hv_enlightened_vmcs *evmcs, in evmcs_read_any() argument
163 return vmcs12_read_any((void *)evmcs, field, offset); in evmcs_read_any()
H A Dvmx.c629 struct hv_enlightened_vmcs *evmcs; in hv_enable_l2_tlb_flush() local
635 evmcs = (struct hv_enlightened_vmcs *)to_vmx(vcpu)->loaded_vmcs->vmcs; in hv_enable_l2_tlb_flush()
637 evmcs->partition_assist_page = partition_assist_page; in hv_enable_l2_tlb_flush()
638 evmcs->hv_vm_id = (unsigned long)vcpu->kvm; in hv_enable_l2_tlb_flush()
639 evmcs->hv_enlightenments_control.nested_flush_hypercall = 1; in hv_enable_l2_tlb_flush()
4176 struct hv_enlightened_vmcs *evmcs = (void *)vmx->vmcs01.vmcs; in vmx_msr_bitmap_l01_changed() local
4178 if (evmcs->hv_enlightenments_control.msr_bitmap) in vmx_msr_bitmap_l01_changed()
4179 evmcs->hv_clean_fields &= in vmx_msr_bitmap_l01_changed()
7822 struct hv_enlightened_vmcs *evmcs = (void *)vmx->vmcs01.vmcs; in vmx_vcpu_create() local
7824 evmcs->hv_enlightenments_control.msr_bitmap = 1; in vmx_vcpu_create()
/linux/tools/testing/selftests/kvm/x86/
H A Devmcs_smm_controls_test.c78 struct hv_enlightened_vmcs *evmcs; in main() local
123 evmcs = hv->enlightened_vmcs_hva; in main()
124 evmcs->pin_based_vm_exec_control |= PIN_BASED_VIRTUAL_NMIS; in main()
125 evmcs->hv_clean_fields = 0; in main()