Home
last modified time | relevance | path

Searched refs:to_vmx (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
H A Dnested.h42 return to_vmx(vcpu)->nested.cached_vmcs12; in get_vmcs12()
47 return to_vmx(vcpu)->nested.cached_shadow_vmcs12; in get_shadow_vmcs12()
57 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_has_valid_vmcs12()
71 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_get_vpid02()
105 return vmx_misc_cr3_count(to_vmx(vcpu)->nested.msrs.misc_low); in nested_cpu_vmx_misc_cr3_count()
115 return to_vmx(vcpu)->nested.msrs.misc_low & in nested_cpu_has_vmwrite_any_field()
121 return to_vmx(vcpu)->nested.msrs.misc_low & VMX_MISC_ZERO_LEN_INS; in nested_cpu_has_zero_length_injection()
126 return to_vmx(vcpu)->nested.msrs.procbased_ctls_high & in nested_cpu_supports_monitor_trap_flag()
132 return to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_cpu_has_vmx_shadow_vmcs()
258 u64 fixed0 = to_vmx(vcp in nested_guest_cr0_valid()
[all...]
H A Dvmx.c543 tmp_eptp = to_vmx(vcpu)->ept_pointer; in check_ept_pointer_match()
544 } else if (tmp_eptp != to_vmx(vcpu)->ept_pointer) { in check_ept_pointer_match()
566 u64 ept_pointer = to_vmx(vcpu)->ept_pointer; in __hv_remote_flush_tlb_with_range()
594 if (VALID_PAGE(to_vmx(vcpu)->ept_pointer)) in hv_remote_flush_tlb_with_range()
626 evmcs = (struct hv_enlightened_vmcs *)to_vmx(vcpu)->loaded_vmcs->vmcs; in hv_enable_direct_tlbflush()
887 if (to_vmx(vcpu)->rmode.vm86_active) in update_exception_bitmap()
1274 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_prepare_switch_to_guest()
1405 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_vcpu_load_vmcs()
1478 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_vcpu_load()
1491 vmx_prepare_switch_to_host(to_vmx(vcp in vmx_vcpu_put()
[all...]
H A Dnested.c189 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_vmx_fail()
227 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_release_evmcs()
258 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_switch_vmcs()
281 struct vcpu_vmx *vmx = to_vmx(vcpu); in free_nested()
337 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_ept_inject_page_fault()
360 to_vmx(vcpu)->nested.msrs.ept_caps & in nested_ept_init_mmu_context()
436 !to_vmx(vcpu)->nested.nested_run_pending) { in vmx_inject_page_fault_nested()
495 msr_bitmap = to_vmx(vcpu)->vmcs01.msr_bitmap; in msr_write_intercepted_l01()
569 unsigned long *msr_bitmap_l0 = to_vmx(vcpu)->nested.vmcs02.msr_bitmap; in nested_vmx_prepare_msr_bitmap()
570 struct kvm_host_map *map = &to_vmx(vcp in nested_vmx_prepare_msr_bitmap()
[all...]
H A Dvmx.h455 static inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu) in to_vmx() function
462 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_get_exit_qual()
473 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_get_intr_info()
517 (secondary_exec_controls_get(to_vmx(vcpu)) & in is_unrestricted_guest()
H A Dposted_intr.c22 return &(to_vmx(vcpu)->pi_desc); in vcpu_to_pi_desc()
312 vcpu_info.pi_desc_addr = __pa(&to_vmx(vcpu)->pi_desc); in pi_update_irte()
H A Devmcs.c329 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_get_evmcs_version()
431 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_enable_evmcs()
/kernel/linux/linux-6.6/arch/x86/kvm/vmx/
H A Dnested.h41 return to_vmx(vcpu)->nested.cached_vmcs12; in get_vmcs12()
46 return to_vmx(vcpu)->nested.cached_shadow_vmcs12; in get_shadow_vmcs12()
56 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_has_valid_vmcs12()
65 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_get_vpid02()
100 return vmx_misc_cr3_count(to_vmx(vcpu)->nested.msrs.misc_low); in nested_cpu_vmx_misc_cr3_count()
110 return to_vmx(vcpu)->nested.msrs.misc_low & in nested_cpu_has_vmwrite_any_field()
116 return to_vmx(vcpu)->nested.msrs.misc_low & VMX_MISC_ZERO_LEN_INS; in nested_cpu_has_zero_length_injection()
121 return to_vmx(vcpu)->nested.msrs.procbased_ctls_high & in nested_cpu_supports_monitor_trap_flag()
127 return to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_cpu_has_vmx_shadow_vmcs()
258 u64 fixed0 = to_vmx(vcp in nested_guest_cr0_valid()
[all...]
H A Dvmx.c547 evmcs = (struct hv_enlightened_vmcs *)to_vmx(vcpu)->loaded_vmcs->vmcs; in hv_enable_l2_tlb_flush()
899 if (to_vmx(vcpu)->rmode.vm86_active) in vmx_update_exception_bitmap()
1291 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_prepare_switch_to_guest()
1425 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_vcpu_load_vmcs()
1495 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_vcpu_load()
1508 vmx_prepare_switch_to_host(to_vmx(vcpu)); in vmx_vcpu_put()
1518 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_get_rflags()
1536 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_set_rflags()
1599 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_rtit_ctl_check()
1679 if (to_vmx(vcp in vmx_can_emulate_instruction()
[all...]
H A Dnested.c182 if (to_vmx(vcpu)->nested.hv_evmcs_vmptr != EVMPTR_INVALID) in nested_vmx_failValid()
183 to_vmx(vcpu)->nested.need_vmcs12_to_shadow_sync = true; in nested_vmx_failValid()
190 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_vmx_fail()
230 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_release_evmcs()
267 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_switch_vmcs()
296 struct vcpu_vmx *vmx = to_vmx(vcpu); in free_nested()
382 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_ept_inject_page_fault()
413 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_ept_new_eptp()
571 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_vmx_prepare_msr_bitmap()
673 struct vcpu_vmx *vmx = to_vmx(vcp in nested_cache_shadow_vmcs12()
[all...]
H A Dvmx.h653 static __always_inline struct vcpu_vmx *to_vmx(struct kvm_vcpu *vcpu) in to_vmx() function
660 return &to_vmx(vcpu)->lbr_desc; in vcpu_to_lbr_desc()
679 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_get_exit_qual()
689 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_get_intr_info()
726 (secondary_exec_controls_get(to_vmx(vcpu)) & in is_unrestricted_guest()
755 to_vmx(vcpu)->nested.enlightened_vmcs_enabled; in guest_cpuid_has_evmcs()
H A Dposted_intr.c36 return &(to_vmx(vcpu)->pi_desc); in vcpu_to_pi_desc()
56 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_vcpu_pi_load()
149 struct vcpu_vmx *vmx = to_vmx(vcpu); in pi_enable_wakeup_handler()
H A Dsgx.c299 struct vcpu_vmx *vmx = to_vmx(vcpu); in handle_encls_einit()
377 return (to_vmx(vcpu)->msr_ia32_feature_control & bits) == bits; in sgx_enabled_in_guest_bios()
429 struct vcpu_vmx *vmx = to_vmx(vcpu); in vcpu_setup_sgx_lepubkeyhash()
H A Dhyperv.c454 (!vcpu || to_vmx(vcpu)->nested.enlightened_vmcs_enabled)) in nested_get_evmcs_version()
648 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_enable_evmcs()
661 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_evmcs_l2_tlb_flush_enabled()

Completed in 22 milliseconds