Lines Matching refs:nested
174 static int nested = true; variable
175 module_param(nested, int, S_IRUGO);
641 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted()
923 if (nested) { in svm_set_cpu_caps()
995 if (nested) { in svm_hardware_setup()
1107 return svm->nested.ctl.tsc_offset; in svm_get_l2_tsc_offset()
1258 svm->nested.vmcb12_gpa = INVALID_GPA; in init_vmcb()
1259 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()
2443 (!(vmcb_is_intercept(&svm->nested.ctl, INTERCEPT_SELECTIVE_CR0)))) in check_selective_cr0_intercepted()
2714 msr_info->data = svm->nested.hsave_msr; in svm_get_msr()
2717 msr_info->data = svm->nested.vm_cr_msr; in svm_get_msr()
2786 if (svm->nested.vm_cr_msr & SVM_VM_CR_SVM_DIS_MASK) in svm_set_vm_cr()
2789 svm->nested.vm_cr_msr &= ~chg_mask; in svm_set_vm_cr()
2790 svm->nested.vm_cr_msr |= (data & chg_mask); in svm_set_vm_cr()
2792 svm_dis = svm->nested.vm_cr_msr & SVM_VM_CR_SVM_DIS_MASK; in svm_set_vm_cr()
2946 svm->nested.hsave_msr = data & PAGE_MASK; in svm_set_msr()
3450 if (svm->nested.nested_run_pending) in svm_nmi_allowed()
3497 if ((svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK) in svm_interrupt_blocked()
3516 if (svm->nested.nested_run_pending) in svm_interrupt_allowed()
3870 if (svm->nested.nested_run_pending && in svm_vcpu_run()
3874 svm->nested.nested_run_pending = 0; in svm_vcpu_run()
4026 if (nested && guest_cpuid_has(vcpu, X86_FEATURE_SVM)) in svm_vcpu_after_set_cpuid()
4161 if (!(vmcb_is_intercept(&svm->nested.ctl, in svm_check_intercept()
4278 if (svm->nested.nested_run_pending) in svm_smi_allowed()
4300 put_smstate(u64, smstate, 0x7ee0, svm->nested.vmcb12_gpa); in svm_enter_smm()
4322 if (kvm_vcpu_map(vcpu, gpa_to_gfn(svm->nested.hsave_msr), in svm_enter_smm()
4362 if (kvm_vcpu_map(vcpu, gpa_to_gfn(svm->nested.hsave_msr), &map_save) == -EINVAL) in svm_leave_smm()