Lines Matching refs:nested

110 static bool __read_mostly nested = 1;  variable
111 module_param(nested, bool, S_IRUGO);
1222 if (vmx->nested.need_vmcs12_to_shadow_sync) in vmx_prepare_switch_to_guest()
1627 vmx->nested.mtf_pending = true; in vmx_update_emulated_instruction()
1629 vmx->nested.mtf_pending = false; in vmx_update_emulated_instruction()
1765 return nested && guest_cpuid_has(vcpu, X86_FEATURE_VMX); in nested_vmx_allowed()
1780 if (!nested) in vmx_get_msr_feature()
1782 return vmx_get_vmx_msr(&vmcs_config.nested, msr->index, &msr->data); in vmx_get_msr_feature()
1863 if (vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index, in vmx_get_msr()
1873 vmx->nested.enlightened_vmcs_enabled) in vmx_get_msr()
2135 vmx->nested.vmxon) in vmx_set_msr()
2902 vpid_sync_vcpu_single(vmx->nested.vpid02); in vmx_flush_tlb_all()
3138 if (vmx->nested.vmxon && !nested_cr4_valid(vcpu, cr4)) in vmx_set_cr4()
3882 WARN_ON_ONCE(!vmx->nested.virtual_apic_map.gfn)) in vmx_guest_apic_has_interrupt()
3887 vapic_page = vmx->nested.virtual_apic_map.hva; in vmx_guest_apic_has_interrupt()
3917 bool nested) in kvm_vcpu_trigger_posted_interrupt() argument
3920 int pi_vec = nested ? POSTED_INTR_NESTED_VECTOR : POSTED_INTR_VECTOR; in kvm_vcpu_trigger_posted_interrupt()
3961 vector == vmx->nested.posted_intr_nv) { in vmx_deliver_nested_posted_interrupt()
3966 vmx->nested.pi_pending = true; in vmx_deliver_nested_posted_interrupt()
4171 if (nested) { in vmx_adjust_secondary_exec_control()
4173 vmx->nested.msrs.secondary_ctls_high |= control; in vmx_adjust_secondary_exec_control()
4175 vmx->nested.msrs.secondary_ctls_high &= ~control; in vmx_adjust_secondary_exec_control()
4295 if (nested) in init_vmcs()
4604 if (to_vmx(vcpu)->nested.nested_run_pending) in vmx_nmi_allowed()
4626 if (to_vmx(vcpu)->nested.nested_run_pending) in vmx_interrupt_allowed()
4957 if (to_vmx(vcpu)->nested.vmxon && in handle_set_cr0()
5953 WARN_ON_ONCE(vmx->nested.nested_run_pending); in vmx_handle_exit()
6163 to_vmx(vcpu)->nested.l1_tpr_threshold = tpr_threshold; in update_cr8_intercept()
6182 vmx->nested.change_vmcs01_virtual_apic_mode = true; in vmx_set_virtual_apic_mode()
6227 to_vmx(vcpu)->nested.reload_vmcs01_apic_access_page = true; in vmx_set_apic_access_page_addr()
6412 return nested; in vmx_has_emulated_msr()
6681 WARN_ON_ONCE(vmx->nested.need_vmcs12_to_shadow_sync); in vmx_vcpu_run()
6781 vmx->nested.nested_run_pending = 0; in vmx_vcpu_run()
6932 if (nested) in vmx_create_vcpu()
6933 memcpy(&vmx->nested.msrs, &vmcs_config.nested, sizeof(vmx->nested.msrs)); in vmx_create_vcpu()
6935 memset(&vmx->nested.msrs, 0, sizeof(vmx->nested.msrs)); in vmx_create_vcpu()
6937 vmx->nested.posted_intr_nv = -1; in vmx_create_vcpu()
6938 vmx->nested.current_vmptr = -1ull; in vmx_create_vcpu()
7013 if (nested) in vmx_check_processor_compat()
7014 nested_vmx_setup_ctls_msrs(&vmcs_conf.nested, vmx_cap.ept); in vmx_check_processor_compat()
7101 vmx->nested.msrs.cr0_fixed1 = 0xffffffff; in nested_vmx_cr_fixed1_bits_update()
7102 vmx->nested.msrs.cr4_fixed1 = X86_CR4_PCE; in nested_vmx_cr_fixed1_bits_update()
7106 vmx->nested.msrs.cr4_fixed1 |= (_cr4_mask); \ in nested_vmx_cr_fixed1_bits_update()
7144 vmx->nested.msrs.entry_ctls_high |= VM_ENTRY_LOAD_BNDCFGS; in nested_vmx_entry_exit_ctls_update()
7145 vmx->nested.msrs.exit_ctls_high |= VM_EXIT_CLEAR_BNDCFGS; in nested_vmx_entry_exit_ctls_update()
7147 vmx->nested.msrs.entry_ctls_high &= ~VM_ENTRY_LOAD_BNDCFGS; in nested_vmx_entry_exit_ctls_update()
7148 vmx->nested.msrs.exit_ctls_high &= ~VM_EXIT_CLEAR_BNDCFGS; in nested_vmx_entry_exit_ctls_update()
7272 if (nested) in vmx_set_cpu_caps()
7515 if (to_vmx(vcpu)->nested.nested_run_pending) in vmx_smi_allowed()
7524 vmx->nested.smm.guest_mode = is_guest_mode(vcpu); in vmx_pre_enter_smm()
7525 if (vmx->nested.smm.guest_mode) in vmx_pre_enter_smm()
7528 vmx->nested.smm.vmxon = vmx->nested.vmxon; in vmx_pre_enter_smm()
7529 vmx->nested.vmxon = false; in vmx_pre_enter_smm()
7539 if (vmx->nested.smm.vmxon) { in vmx_pre_leave_smm()
7540 vmx->nested.vmxon = true; in vmx_pre_leave_smm()
7541 vmx->nested.smm.vmxon = false; in vmx_pre_leave_smm()
7544 if (vmx->nested.smm.guest_mode) { in vmx_pre_leave_smm()
7549 vmx->nested.smm.guest_mode = false; in vmx_pre_leave_smm()
7561 return to_vmx(vcpu)->nested.vmxon; in vmx_apic_init_signal_blocked()
7567 struct hrtimer *timer = &to_vmx(vcpu)->nested.preemption_timer; in vmx_migrate_timers()
7576 if (nested) in hardware_unsetup()
7876 if (nested) { in hardware_setup()
7877 nested_vmx_setup_ctls_msrs(&vmcs_config.nested, in hardware_setup()