Lines Matching refs:nested
139 static int nested = true; variable
140 module_param(nested, int, 0444);
677 void *msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm : in msr_write_intercepted()
704 svm->nested.force_msr_bitmap_recalc = true; in svm_set_intercept_for_msr()
912 (svm->nested.ctl.virt_ext & LBR_CTL_ENABLE_MASK)); in svm_update_lbrv()
1012 return svm->nested.ctl.tsc_offset; in svm_get_l2_tsc_offset()
1196 svm->nested.vmcb12_gpa = INVALID_GPA; in init_vmcb()
1197 svm->nested.last_vmcb12_gpa = INVALID_GPA; in init_vmcb()
1565 (svm->nested.ctl.int_ctl & V_TPR_MASK)); in svm_clear_vintr()
1567 svm->vmcb->control.int_ctl |= svm->nested.ctl.int_ctl & in svm_clear_vintr()
1570 svm->vmcb->control.int_vector = svm->nested.ctl.int_vector; in svm_clear_vintr()
2513 (!(vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_SELECTIVE_CR0)))) in check_selective_cr0_intercepted()
2806 msr_info->data = svm->nested.hsave_msr; in svm_get_msr()
2809 msr_info->data = svm->nested.vm_cr_msr; in svm_get_msr()
2874 if (svm->nested.vm_cr_msr & SVM_VM_CR_SVM_DIS_MASK) in svm_set_vm_cr()
2877 svm->nested.vm_cr_msr &= ~chg_mask; in svm_set_vm_cr()
2878 svm->nested.vm_cr_msr |= (data & chg_mask); in svm_set_vm_cr()
2880 svm_dis = svm->nested.vm_cr_msr & SVM_VM_CR_SVM_DIS_MASK; in svm_set_vm_cr()
3073 svm->nested.hsave_msr = data & PAGE_MASK; in svm_set_msr()
3204 svm->nested.ctl.bus_lock_rip = vcpu->arch.cui_linear_rip; in bus_lock_exit()
3826 if (svm->nested.nested_run_pending) in svm_nmi_allowed()
3848 if ((svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK) in svm_interrupt_blocked()
3868 if (svm->nested.nested_run_pending) in svm_interrupt_allowed()
4351 if (svm->nested.nested_run_pending && in svm_vcpu_run()
4355 svm->nested.nested_run_pending = 0; in svm_vcpu_run()
4577 if (!(vmcb12_is_intercept(&svm->nested.ctl, in svm_check_intercept()
4691 if (svm->nested.nested_run_pending) in svm_smi_allowed()
4722 smram->smram64.svm_guest_vmcb_gpa = svm->nested.vmcb12_gpa; in svm_enter_smm()
4744 if (kvm_vcpu_map(vcpu, gpa_to_gfn(svm->nested.hsave_msr), &map_save)) in svm_enter_smm()
4782 if (kvm_vcpu_map(vcpu, gpa_to_gfn(svm->nested.hsave_msr), &map_save)) in svm_leave_smm()
4809 svm->nested.nested_run_pending = 1; in svm_leave_smm()
5235 if (nested) { in svm_set_cpu_caps()
5353 if (nested) { in svm_hardware_setup()