Lines Matching refs:nested

127 static bool __read_mostly nested = 1;  variable
128 module_param(nested, bool, 0444);
1263 if (vmx->nested.need_vmcs12_to_shadow_sync) in vmx_prepare_switch_to_guest()
1749 vmx->nested.mtf_pending = true; in vmx_update_emulated_instruction()
1752 vmx->nested.mtf_pending = false; in vmx_update_emulated_instruction()
1948 if (!nested) in vmx_get_feature_msr()
1950 return vmx_get_vmx_msr(&vmcs_config.nested, msr, data); in vmx_get_feature_msr()
2035 if (vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index, in vmx_get_msr()
2247 ((vmx->nested.msrs.entry_ctls_high & VM_ENTRY_LOAD_BNDCFGS) || in vmx_set_msr()
2248 (vmx->nested.msrs.exit_ctls_high & VM_EXIT_CLEAR_BNDCFGS))) in vmx_set_msr()
2358 vmx->nested.vmxon) in vmx_set_msr()
2781 if (nested) in vmx_check_processor_compat()
3179 vpid_sync_vcpu_single(vmx->nested.vpid02); in vmx_flush_tlb_all()
3266 if (to_vmx(vcpu)->nested.vmxon) in vmx_is_valid_cr0()
3421 if (to_vmx(vcpu)->nested.vmxon && !nested_cr4_valid(vcpu, cr4)) in vmx_is_valid_cr4()
3967 vmx->nested.force_msr_bitmap_recalc = true; in vmx_msr_bitmap_l01_changed()
4137 vector == vmx->nested.posted_intr_nv) { in vmx_deliver_nested_posted_interrupt()
4142 vmx->nested.pi_pending = true; in vmx_deliver_nested_posted_interrupt()
4348 vmx->nested.update_vmcs01_apicv_status = true; in vmx_refresh_apicv_exec_ctrl()
4453 if (nested && in vmx_adjust_secondary_exec_control()
4459 if (WARN_ON_ONCE(!(vmcs_config.nested.secondary_ctls_high & control))) in vmx_adjust_secondary_exec_control()
4463 vmx->nested.msrs.secondary_ctls_high |= control; in vmx_adjust_secondary_exec_control()
4465 vmx->nested.msrs.secondary_ctls_high &= ~control; in vmx_adjust_secondary_exec_control()
4618 if (nested) in init_vmcs()
4742 if (nested && in __vmx_vcpu_reset()
4744 memcpy(&vmx->nested.msrs, &vmcs_config.nested, sizeof(vmx->nested.msrs)); in __vmx_vcpu_reset()
4748 vmx->nested.posted_intr_nv = -1; in __vmx_vcpu_reset()
4749 vmx->nested.vmxon_ptr = INVALID_GPA; in __vmx_vcpu_reset()
4750 vmx->nested.current_vmptr = INVALID_GPA; in __vmx_vcpu_reset()
4753 vmx->nested.hv_evmcs_vmptr = EVMPTR_INVALID; in __vmx_vcpu_reset()
4951 if (to_vmx(vcpu)->nested.nested_run_pending) in vmx_nmi_allowed()
4978 if (to_vmx(vcpu)->nested.nested_run_pending) in vmx_interrupt_allowed()
5760 if (vmx->nested.nested_run_pending) in vmx_unhandleable_emulation_required()
6393 if (KVM_BUG_ON(vmx->nested.nested_run_pending, vcpu->kvm)) in __vmx_handle_exit()
6630 to_vmx(vcpu)->nested.l1_tpr_threshold = tpr_threshold; in vmx_update_cr8_intercept()
6649 vmx->nested.change_vmcs01_virtual_apic_mode = true; in vmx_set_virtual_apic_mode()
6702 to_vmx(vcpu)->nested.reload_vmcs01_apic_access_page = true; in vmx_set_apic_access_page_addr()
6782 to_vmx(vcpu)->nested.update_vmcs01_hwapic_isr = true; in vmx_hwapic_isr_update()
6953 return nested; in vmx_has_emulated_msr()
7289 WARN_ON_ONCE(vmx->nested.need_vmcs12_to_shadow_sync); in vmx_vcpu_run()
7382 if (vmx->nested.nested_run_pending && in vmx_vcpu_run()
7386 vmx->nested.nested_run_pending = 0; in vmx_vcpu_run()
7613 vmx->nested.msrs.cr0_fixed1 = 0xffffffff; in nested_vmx_cr_fixed1_bits_update()
7614 vmx->nested.msrs.cr4_fixed1 = X86_CR4_PCE; in nested_vmx_cr_fixed1_bits_update()
7618 vmx->nested.msrs.cr4_fixed1 |= (_cr4_mask); \ in nested_vmx_cr_fixed1_bits_update()
7844 if (nested) in vmx_set_cpu_caps()
8104 vmx->nested.update_vmcs01_cpu_dirty_logging = true; in vmx_update_cpu_dirty_logging()
8133 if (to_vmx(vcpu)->nested.nested_run_pending) in vmx_smi_allowed()
8149 vmx->nested.smm.guest_mode = is_guest_mode(vcpu); in vmx_enter_smm()
8150 if (vmx->nested.smm.guest_mode) in vmx_enter_smm()
8153 vmx->nested.smm.vmxon = vmx->nested.vmxon; in vmx_enter_smm()
8154 vmx->nested.vmxon = false; in vmx_enter_smm()
8164 if (vmx->nested.smm.vmxon) { in vmx_leave_smm()
8165 vmx->nested.vmxon = true; in vmx_leave_smm()
8166 vmx->nested.smm.vmxon = false; in vmx_leave_smm()
8169 if (vmx->nested.smm.guest_mode) { in vmx_leave_smm()
8174 vmx->nested.nested_run_pending = 1; in vmx_leave_smm()
8175 vmx->nested.smm.guest_mode = false; in vmx_leave_smm()
8188 return to_vmx(vcpu)->nested.vmxon && !is_guest_mode(vcpu); in vmx_apic_init_signal_blocked()
8194 struct hrtimer *timer = &to_vmx(vcpu)->nested.preemption_timer; in vmx_migrate_timers()
8205 if (nested) in vmx_hardware_unsetup()
8492 if (nested) { in vmx_hardware_setup()
8503 if (r && nested) in vmx_hardware_setup()