Lines Matching refs:nested

185 		to_vmx(vcpu)->nested.need_vmcs12_to_shadow_sync = true;  in nested_vmx_failValid()
198 if (vmx->nested.current_vmptr == INVALID_GPA && in nested_vmx_fail()
226 vmx->nested.need_vmcs12_to_shadow_sync = false; in vmx_disable_shadow_vmcs()
235 kvm_vcpu_unmap(vcpu, &vmx->nested.hv_evmcs_map); in nested_release_evmcs()
236 vmx->nested.hv_evmcs = NULL; in nested_release_evmcs()
237 vmx->nested.hv_evmcs_vmptr = EVMPTR_INVALID; in nested_release_evmcs()
240 hv_vcpu->nested.pa_page_gpa = INVALID_GPA; in nested_release_evmcs()
241 hv_vcpu->nested.vm_id = 0; in nested_release_evmcs()
242 hv_vcpu->nested.vp_id = 0; in nested_release_evmcs()
265 if (nested_vmx_evmcs(vmx) && vmptr == vmx->nested.hv_evmcs_vmptr) in nested_evmcs_handle_vmclear()
322 kvm_vcpu_unmap(vcpu, &vmx->nested.apic_access_page_map); in nested_put_vmcs12_pages()
323 kvm_vcpu_unmap(vcpu, &vmx->nested.virtual_apic_map); in nested_put_vmcs12_pages()
324 kvm_vcpu_unmap(vcpu, &vmx->nested.pi_desc_map); in nested_put_vmcs12_pages()
325 vmx->nested.pi_desc = NULL; in nested_put_vmcs12_pages()
339 if (!vmx->nested.vmxon && !vmx->nested.smm.vmxon) in free_nested()
344 vmx->nested.vmxon = false; in free_nested()
345 vmx->nested.smm.vmxon = false; in free_nested()
346 vmx->nested.vmxon_ptr = INVALID_GPA; in free_nested()
347 free_vpid(vmx->nested.vpid02); in free_nested()
348 vmx->nested.posted_intr_nv = -1; in free_nested()
349 vmx->nested.current_vmptr = INVALID_GPA; in free_nested()
356 kfree(vmx->nested.cached_vmcs12); in free_nested()
357 vmx->nested.cached_vmcs12 = NULL; in free_nested()
358 kfree(vmx->nested.cached_shadow_vmcs12); in free_nested()
359 vmx->nested.cached_shadow_vmcs12 = NULL; in free_nested()
367 free_loaded_vmcs(&vmx->nested.vmcs02); in free_nested()
417 if (vmx->nested.pml_full) { in nested_ept_inject_page_fault()
419 vmx->nested.pml_full = false; in nested_ept_inject_page_fault()
467 bool execonly = vmx->nested.msrs.ept_caps & VMX_EPT_EXECUTE_ONLY_BIT; in nested_ept_new_eptp()
468 int ept_lpage_level = ept_caps_to_lpage_level(vmx->nested.msrs.ept_caps); in nested_ept_new_eptp()
627 unsigned long *msr_bitmap_l0 = vmx->nested.vmcs02.msr_bitmap; in nested_vmx_prepare_msr_bitmap()
643 if (!vmx->nested.force_msr_bitmap_recalc) { in nested_vmx_prepare_msr_bitmap()
726 vmx->nested.force_msr_bitmap_recalc = false; in nested_vmx_prepare_msr_bitmap()
735 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_cache_shadow_vmcs12()
754 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_flush_cached_shadow_vmcs12()
837 u64 vmx_misc = vmx_control_msr(vmx->nested.msrs.misc_low, in nested_vmx_max_atomic_switch_msrs()
838 vmx->nested.msrs.misc_high); in nested_vmx_max_atomic_switch_msrs()
1203 (nested_cpu_has_vpid(vmcs12) && to_vmx(vcpu)->nested.vpid02); in nested_has_guest_tlb_tag()
1247 if (is_vmenter && vmcs12->virtual_processor_id != vmx->nested.last_vpid) { in nested_vmx_transition_tlb_flush()
1248 vmx->nested.last_vpid = vmcs12->virtual_processor_id; in nested_vmx_transition_tlb_flush()
1281 u64 vmx_basic = vmcs_config.nested.basic; in vmx_restore_vmx_basic()
1308 vmx->nested.msrs.basic = data; in vmx_restore_vmx_basic()
1347 vmx_get_control_msr(&vmcs_config.nested, msr_index, &lowp, &highp); in vmx_restore_control_msr()
1359 vmx_get_control_msr(&vmx->nested.msrs, msr_index, &lowp, &highp); in vmx_restore_control_msr()
1379 u64 vmx_misc = vmx_control_msr(vmcs_config.nested.misc_low, in vmx_restore_vmx_misc()
1380 vmcs_config.nested.misc_high); in vmx_restore_vmx_misc()
1392 if ((vmx->nested.msrs.pinbased_ctls_high & in vmx_restore_vmx_misc()
1407 vmx->nested.msrs.misc_low = data; in vmx_restore_vmx_misc()
1408 vmx->nested.msrs.misc_high = data >> 32; in vmx_restore_vmx_misc()
1415 u64 vmx_ept_vpid_cap = vmx_control_msr(vmcs_config.nested.ept_caps, in vmx_restore_vmx_ept_vpid_cap()
1416 vmcs_config.nested.vpid_caps); in vmx_restore_vmx_ept_vpid_cap()
1422 vmx->nested.msrs.ept_caps = data; in vmx_restore_vmx_ept_vpid_cap()
1423 vmx->nested.msrs.vpid_caps = data >> 32; in vmx_restore_vmx_ept_vpid_cap()
1441 const u64 *msr = vmx_get_fixed0_msr(&vmcs_config.nested, msr_index); in vmx_restore_fixed0_msr()
1450 *vmx_get_fixed0_msr(&vmx->nested.msrs, msr_index) = data; in vmx_restore_fixed0_msr()
1467 if (vmx->nested.vmxon) in vmx_set_vmx_msr()
1508 vmx->nested.msrs.vmcs_enum = data; in vmx_set_vmx_msr()
1511 if (data & ~vmcs_config.nested.vmfunc_controls) in vmx_set_vmx_msr()
1513 vmx->nested.msrs.vmfunc_controls = data; in vmx_set_vmx_msr()
1673 struct vmcs12 *vmcs12 = vmx->nested.cached_vmcs12; in copy_enlightened_to_vmcs12()
1683 hv_vcpu->nested.pa_page_gpa = evmcs->partition_assist_page; in copy_enlightened_to_vmcs12()
1684 hv_vcpu->nested.vm_id = evmcs->hv_vm_id; in copy_enlightened_to_vmcs12()
1685 hv_vcpu->nested.vp_id = evmcs->hv_vp_id; in copy_enlightened_to_vmcs12()
1921 struct vmcs12 *vmcs12 = vmx->nested.cached_vmcs12; in copy_vmcs12_to_enlightened()
2117 if (unlikely(evmcs_gpa != vmx->nested.hv_evmcs_vmptr)) { in nested_vmx_handle_enlightened_vmptrld()
2118 vmx->nested.current_vmptr = INVALID_GPA; in nested_vmx_handle_enlightened_vmptrld()
2123 &vmx->nested.hv_evmcs_map)) in nested_vmx_handle_enlightened_vmptrld()
2126 vmx->nested.hv_evmcs = vmx->nested.hv_evmcs_map.hva; in nested_vmx_handle_enlightened_vmptrld()
2150 if ((vmx->nested.hv_evmcs->revision_id != KVM_EVMCS_VERSION) && in nested_vmx_handle_enlightened_vmptrld()
2151 (vmx->nested.hv_evmcs->revision_id != VMCS12_REVISION)) { in nested_vmx_handle_enlightened_vmptrld()
2156 vmx->nested.hv_evmcs_vmptr = evmcs_gpa; in nested_vmx_handle_enlightened_vmptrld()
2178 vmx->nested.hv_evmcs->hv_clean_fields &= in nested_vmx_handle_enlightened_vmptrld()
2181 vmx->nested.force_msr_bitmap_recalc = true; in nested_vmx_handle_enlightened_vmptrld()
2199 vmx->nested.need_vmcs12_to_shadow_sync = false; in nested_sync_vmcs12_to_shadow()
2205 container_of(timer, struct vcpu_vmx, nested.preemption_timer); in vmx_preemption_timer_fn()
2207 vmx->nested.preemption_timer_expired = true; in vmx_preemption_timer_fn()
2222 if (!vmx->nested.has_preemption_timer_deadline) { in vmx_calc_preemption_timer_value()
2223 vmx->nested.preemption_timer_deadline = in vmx_calc_preemption_timer_value()
2225 vmx->nested.has_preemption_timer_deadline = true; in vmx_calc_preemption_timer_value()
2227 return vmx->nested.preemption_timer_deadline - l1_scaled_tsc; in vmx_calc_preemption_timer_value()
2240 vmx_preemption_timer_fn(&vmx->nested.preemption_timer); in vmx_start_preemption_timer()
2250 hrtimer_start(&vmx->nested.preemption_timer, in vmx_start_preemption_timer()
2257 if (vmx->nested.nested_run_pending && in nested_vmx_calc_efer()
2276 if (vmx->nested.vmcs02_initialized) in prepare_vmcs02_constant_state()
2278 vmx->nested.vmcs02_initialized = true; in prepare_vmcs02_constant_state()
2300 vmcs_write64(MSR_BITMAP, __pa(vmx->nested.vmcs02.msr_bitmap)); in prepare_vmcs02_constant_state()
2349 if (nested_cpu_has_vpid(vmcs12) && vmx->nested.vpid02) in prepare_vmcs02_early_rare()
2350 vmcs_write16(VIRTUAL_PROCESSOR_ID, vmx->nested.vpid02); in prepare_vmcs02_early_rare()
2362 if (vmx->nested.dirty_vmcs12 || nested_vmx_is_evmptr12_valid(vmx)) in prepare_vmcs02_early()
2373 vmx->nested.pi_pending = false; in prepare_vmcs02_early()
2375 vmx->nested.posted_intr_nv = vmcs12->posted_intr_nv; in prepare_vmcs02_early()
2377 vmx->nested.posted_intr_nv = -1; in prepare_vmcs02_early()
2391 vmx->nested.l1_tpr_threshold = -1; in prepare_vmcs02_early()
2507 if (vmx->nested.nested_run_pending) { in prepare_vmcs02_early()
2589 if (kvm_mpx_supported() && vmx->nested.nested_run_pending && in prepare_vmcs02_rare()
2661 if (vmx->nested.dirty_vmcs12 || nested_vmx_is_evmptr12_valid(vmx)) { in prepare_vmcs02()
2663 vmx->nested.dirty_vmcs12 = false; in prepare_vmcs02()
2669 if (vmx->nested.nested_run_pending && in prepare_vmcs02()
2676 vmx_guest_debugctl_write(vcpu, vmx->nested.pre_vmenter_debugctl); in prepare_vmcs02()
2678 if (kvm_mpx_supported() && (!vmx->nested.nested_run_pending || in prepare_vmcs02()
2680 vmcs_write64(GUEST_BNDCFGS, vmx->nested.pre_vmenter_bndcfgs); in prepare_vmcs02()
2691 if (vmx->nested.nested_run_pending && in prepare_vmcs02()
2814 if (CC(!(vmx->nested.msrs.ept_caps & VMX_EPTP_UC_BIT))) in nested_vmx_check_eptp()
2818 if (CC(!(vmx->nested.msrs.ept_caps & VMX_EPTP_WB_BIT))) in nested_vmx_check_eptp()
2828 if (CC(!(vmx->nested.msrs.ept_caps & VMX_EPT_PAGE_WALK_5_BIT))) in nested_vmx_check_eptp()
2832 if (CC(!(vmx->nested.msrs.ept_caps & VMX_EPT_PAGE_WALK_4_BIT))) in nested_vmx_check_eptp()
2845 if (CC(!(vmx->nested.msrs.ept_caps & VMX_EPT_AD_BIT))) in nested_vmx_check_eptp()
2861 vmx->nested.msrs.pinbased_ctls_low, in nested_check_vm_execution_controls()
2862 vmx->nested.msrs.pinbased_ctls_high)) || in nested_check_vm_execution_controls()
2864 vmx->nested.msrs.procbased_ctls_low, in nested_check_vm_execution_controls()
2865 vmx->nested.msrs.procbased_ctls_high))) in nested_check_vm_execution_controls()
2870 vmx->nested.msrs.secondary_ctls_low, in nested_check_vm_execution_controls()
2871 vmx->nested.msrs.secondary_ctls_high))) in nested_check_vm_execution_controls()
2898 ~vmx->nested.msrs.vmfunc_controls)) in nested_check_vm_execution_controls()
2920 vmx->nested.msrs.exit_ctls_low, in nested_check_vm_exit_controls()
2921 vmx->nested.msrs.exit_ctls_high)) || in nested_check_vm_exit_controls()
2937 vmx->nested.msrs.entry_ctls_low, in nested_check_vm_entry_controls()
2938 vmx->nested.msrs.entry_ctls_high))) in nested_check_vm_entry_controls()
3114 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_vmx_check_vmcs_link_ptr()
3200 if (to_vmx(vcpu)->nested.nested_run_pending && in nested_vmx_check_guest_state()
3309 vmx->nested.hv_evmcs_vmptr == EVMPTR_MAP_PENDING) { in nested_get_evmcs_page()
3321 vmx->nested.need_vmcs12_to_shadow_sync = true; in nested_get_evmcs_page()
3347 map = &vmx->nested.apic_access_page_map; in nested_get_vmcs12_pages()
3363 map = &vmx->nested.virtual_apic_map; in nested_get_vmcs12_pages()
3389 map = &vmx->nested.pi_desc_map; in nested_get_vmcs12_pages()
3392 vmx->nested.pi_desc = in nested_get_vmcs12_pages()
3404 vmx->nested.pi_desc = NULL; in nested_get_vmcs12_pages()
3452 if (WARN_ON_ONCE(vmx->nested.pml_full)) in nested_vmx_write_pml_buffer()
3464 vmx->nested.pml_full = true; in nested_vmx_write_pml_buffer()
3489 if (!to_vmx(vcpu)->nested.vmxon) { in nested_vmx_check_permission()
3528 vmx->nested.current_vmptr, in nested_vmx_enter_non_root_mode()
3539 if (!vmx->nested.nested_run_pending || in nested_vmx_enter_non_root_mode()
3541 vmx->nested.pre_vmenter_debugctl = vmx_guest_debugctl_read(); in nested_vmx_enter_non_root_mode()
3543 (!vmx->nested.nested_run_pending || in nested_vmx_enter_non_root_mode()
3545 vmx->nested.pre_vmenter_bndcfgs = vmcs_read64(GUEST_BNDCFGS); in nested_vmx_enter_non_root_mode()
3566 vmx_switch_vmcs(vcpu, &vmx->nested.vmcs02); in nested_vmx_enter_non_root_mode()
3635 vmx->nested.preemption_timer_expired = false; in nested_vmx_enter_non_root_mode()
3668 vmx->nested.need_vmcs12_to_shadow_sync = true; in nested_vmx_enter_non_root_mode()
3699 vmx->nested.current_vmptr == INVALID_GPA)) in nested_vmx_run()
3754 vmx->nested.nested_run_pending = 1; in nested_vmx_run()
3755 vmx->nested.has_preemption_timer_deadline = false; in nested_vmx_run()
3786 vmx->nested.nested_run_pending = 0; in nested_vmx_run()
3791 vmx->nested.nested_run_pending = 0; in nested_vmx_run()
3801 vmx->nested.nested_run_pending = 0; in nested_vmx_run()
3942 if (!vmx->nested.pi_pending) in vmx_complete_nested_posted_interrupt()
3945 if (!vmx->nested.pi_desc) in vmx_complete_nested_posted_interrupt()
3948 vmx->nested.pi_pending = false; in vmx_complete_nested_posted_interrupt()
3950 if (!pi_test_and_clear_on(vmx->nested.pi_desc)) in vmx_complete_nested_posted_interrupt()
3953 max_irr = pi_find_highest_vector(vmx->nested.pi_desc); in vmx_complete_nested_posted_interrupt()
3955 vapic_page = vmx->nested.virtual_apic_map.hva; in vmx_complete_nested_posted_interrupt()
3959 __kvm_apic_update_irr(vmx->nested.pi_desc->pir, in vmx_complete_nested_posted_interrupt()
4082 to_vmx(vcpu)->nested.preemption_timer_expired; in nested_vmx_preemption_timer_pending()
4088 void *vapic = vmx->nested.virtual_apic_map.hva; in vmx_has_nested_events()
4092 vmx->nested.mtf_pending) in vmx_has_nested_events()
4117 if (vmx->nested.pi_pending && vmx->nested.pi_desc && in vmx_has_nested_events()
4118 pi_test_on(vmx->nested.pi_desc)) { in vmx_has_nested_events()
4119 max_irr = pi_find_highest_vector(vmx->nested.pi_desc); in vmx_has_nested_events()
4219 bool block_nested_exceptions = vmx->nested.nested_run_pending; in vmx_check_nested_events()
4251 vmx->nested.mtf_pending = false; in vmx_check_nested_events()
4295 if (vmx->nested.mtf_pending) { in vmx_check_nested_events()
4388 if (irq == vmx->nested.posted_intr_nv) { in vmx_check_nested_events()
4397 vmx->nested.pi_pending = true; in vmx_check_nested_events()
4424 hrtimer_get_remaining(&to_vmx(vcpu)->nested.preemption_timer); in vmx_get_preemption_timer_value()
4524 vmx->nested.need_sync_vmcs02_to_vmcs12_rare = false; in sync_vmcs02_to_vmcs12_rare()
4533 if (!vmx->nested.need_sync_vmcs02_to_vmcs12_rare) in copy_vmcs02_to_vmcs12_rare()
4540 vmx->loaded_vmcs = &vmx->nested.vmcs02; in copy_vmcs02_to_vmcs12_rare()
4563 vmx->nested.need_sync_vmcs02_to_vmcs12_rare = in sync_vmcs02_to_vmcs12()
4588 !vmx->nested.nested_run_pending) in sync_vmcs02_to_vmcs12()
4968 vmx->nested.mtf_pending = false; in __nested_vmx_vmexit()
4971 WARN_ON_ONCE(vmx->nested.nested_run_pending); in __nested_vmx_vmexit()
4999 hrtimer_cancel(&to_vmx(vcpu)->nested.preemption_timer); in __nested_vmx_vmexit()
5059 if (vmx->nested.l1_tpr_threshold != -1) in __nested_vmx_vmexit()
5060 vmcs_write32(TPR_THRESHOLD, vmx->nested.l1_tpr_threshold); in __nested_vmx_vmexit()
5062 if (vmx->nested.change_vmcs01_virtual_apic_mode) { in __nested_vmx_vmexit()
5063 vmx->nested.change_vmcs01_virtual_apic_mode = false; in __nested_vmx_vmexit()
5067 if (vmx->nested.update_vmcs01_cpu_dirty_logging) { in __nested_vmx_vmexit()
5068 vmx->nested.update_vmcs01_cpu_dirty_logging = false; in __nested_vmx_vmexit()
5074 if (vmx->nested.reload_vmcs01_apic_access_page) { in __nested_vmx_vmexit()
5075 vmx->nested.reload_vmcs01_apic_access_page = false; in __nested_vmx_vmexit()
5079 if (vmx->nested.update_vmcs01_apicv_status) { in __nested_vmx_vmexit()
5080 vmx->nested.update_vmcs01_apicv_status = false; in __nested_vmx_vmexit()
5084 if (vmx->nested.update_vmcs01_hwapic_isr) { in __nested_vmx_vmexit()
5085 vmx->nested.update_vmcs01_hwapic_isr = false; in __nested_vmx_vmexit()
5091 vmx->nested.need_vmcs12_to_shadow_sync = true; in __nested_vmx_vmexit()
5334 r = alloc_loaded_vmcs(&vmx->nested.vmcs02); in enter_vmx_operation()
5338 vmx->nested.cached_vmcs12 = kzalloc(VMCS12_SIZE, GFP_KERNEL_ACCOUNT); in enter_vmx_operation()
5339 if (!vmx->nested.cached_vmcs12) in enter_vmx_operation()
5342 vmx->nested.shadow_vmcs12_cache.gpa = INVALID_GPA; in enter_vmx_operation()
5343 vmx->nested.cached_shadow_vmcs12 = kzalloc(VMCS12_SIZE, GFP_KERNEL_ACCOUNT); in enter_vmx_operation()
5344 if (!vmx->nested.cached_shadow_vmcs12) in enter_vmx_operation()
5350 hrtimer_setup(&vmx->nested.preemption_timer, vmx_preemption_timer_fn, CLOCK_MONOTONIC, in enter_vmx_operation()
5353 vmx->nested.vpid02 = allocate_vpid(); in enter_vmx_operation()
5355 vmx->nested.vmcs02_initialized = false; in enter_vmx_operation()
5356 vmx->nested.vmxon = true; in enter_vmx_operation()
5366 kfree(vmx->nested.cached_shadow_vmcs12); in enter_vmx_operation()
5369 kfree(vmx->nested.cached_vmcs12); in enter_vmx_operation()
5372 free_loaded_vmcs(&vmx->nested.vmcs02); in enter_vmx_operation()
5424 if (vmx->nested.vmxon) in handle_vmxon()
5462 vmx->nested.vmxon_ptr = vmptr; in handle_vmxon()
5474 if (vmx->nested.current_vmptr == INVALID_GPA) in nested_release_vmcs12()
5485 vmx->nested.posted_intr_nv = -1; in nested_release_vmcs12()
5489 vmx->nested.current_vmptr >> PAGE_SHIFT, in nested_release_vmcs12()
5490 vmx->nested.cached_vmcs12, 0, VMCS12_SIZE); in nested_release_vmcs12()
5494 vmx->nested.current_vmptr = INVALID_GPA; in nested_release_vmcs12()
5528 if (vmptr == vmx->nested.vmxon_ptr) in handle_vmclear()
5532 if (vmptr == vmx->nested.current_vmptr) in handle_vmclear()
5591 if (vmx->nested.current_vmptr == INVALID_GPA || in handle_vmread()
5701 if (vmx->nested.current_vmptr == INVALID_GPA || in handle_vmwrite()
5773 vmx->nested.dirty_vmcs12 = true; in handle_vmwrite()
5781 vmx->nested.current_vmptr = vmptr; in set_current_vmptr()
5786 vmx->nested.need_vmcs12_to_shadow_sync = true; in set_current_vmptr()
5788 vmx->nested.dirty_vmcs12 = true; in set_current_vmptr()
5789 vmx->nested.force_msr_bitmap_recalc = true; in set_current_vmptr()
5808 if (vmptr == vmx->nested.vmxon_ptr) in handle_vmptrld()
5815 if (vmx->nested.current_vmptr != vmptr) { in handle_vmptrld()
5816 struct gfn_to_hva_cache *ghc = &vmx->nested.vmcs12_cache; in handle_vmptrld()
5850 if (kvm_read_guest_cached(vcpu->kvm, ghc, vmx->nested.cached_vmcs12, in handle_vmptrld()
5867 gpa_t current_vmptr = to_vmx(vcpu)->nested.current_vmptr; in handle_vmptrst()
5904 if (!(vmx->nested.msrs.secondary_ctls_high & in handle_invept()
5906 !(vmx->nested.msrs.ept_caps & VMX_EPT_INVEPT_BIT)) { in handle_invept()
5918 types = (vmx->nested.msrs.ept_caps >> VMX_EPT_EXTENT_SHIFT) & 6; in handle_invept()
5985 if (!(vmx->nested.msrs.secondary_ctls_high & in handle_invvpid()
5987 !(vmx->nested.msrs.vpid_caps & VMX_VPID_INVVPID_BIT)) { in handle_invvpid()
5999 types = (vmx->nested.msrs.vpid_caps & in handle_invvpid()
6597 WARN_ON_ONCE(vmx->nested.nested_run_pending); in nested_vmx_reflect_vmexit()
6667 (vmx->nested.vmxon || vmx->nested.smm.vmxon)) { in vmx_get_nested_state()
6668 kvm_state.hdr.vmx.vmxon_pa = vmx->nested.vmxon_ptr; in vmx_get_nested_state()
6669 kvm_state.hdr.vmx.vmcs12_pa = vmx->nested.current_vmptr; in vmx_get_nested_state()
6684 if (vmx->nested.smm.vmxon) in vmx_get_nested_state()
6687 if (vmx->nested.smm.guest_mode) in vmx_get_nested_state()
6693 if (vmx->nested.nested_run_pending) in vmx_get_nested_state()
6696 if (vmx->nested.mtf_pending) in vmx_get_nested_state()
6700 vmx->nested.has_preemption_timer_deadline) { in vmx_get_nested_state()
6704 vmx->nested.preemption_timer_deadline; in vmx_get_nested_state()
6730 if (!vmx->nested.need_vmcs12_to_shadow_sync) { in vmx_get_nested_state()
6768 to_vmx(vcpu)->nested.nested_run_pending = 0; in vmx_leave_nested()
6842 !vmx->nested.enlightened_vmcs_enabled)) in vmx_set_nested_state()
6850 vmx->nested.vmxon_ptr = kvm_state->hdr.vmx.vmxon_pa; in vmx_set_nested_state()
6880 vmx->nested.hv_evmcs_vmptr = EVMPTR_MAP_PENDING; in vmx_set_nested_state()
6888 vmx->nested.smm.vmxon = true; in vmx_set_nested_state()
6889 vmx->nested.vmxon = false; in vmx_set_nested_state()
6892 vmx->nested.smm.guest_mode = true; in vmx_set_nested_state()
6905 vmx->nested.nested_run_pending = in vmx_set_nested_state()
6908 vmx->nested.mtf_pending = in vmx_set_nested_state()
6933 vmx->nested.has_preemption_timer_deadline = false; in vmx_set_nested_state()
6935 vmx->nested.has_preemption_timer_deadline = true; in vmx_set_nested_state()
6936 vmx->nested.preemption_timer_deadline = in vmx_set_nested_state()
6945 vmx->nested.dirty_vmcs12 = true; in vmx_set_nested_state()
6946 vmx->nested.force_msr_bitmap_recalc = true; in vmx_set_nested_state()
6951 if (vmx->nested.mtf_pending) in vmx_set_nested_state()
6957 vmx->nested.nested_run_pending = 0; in vmx_set_nested_state()
7242 struct nested_vmx_msrs *msrs = &vmcs_conf->nested; in nested_vmx_setup_ctls_msrs()