/arch/x86/kvm/vmx/ |
D | nested.h | 42 return to_vmx(vcpu)->nested.cached_vmcs12; in get_vmcs12() 47 return to_vmx(vcpu)->nested.cached_shadow_vmcs12; in get_shadow_vmcs12() 60 return vmx->nested.current_vmptr != -1ull || in vmx_has_valid_vmcs12() 61 vmx->nested.hv_evmcs_vmptr != EVMPTR_INVALID; in vmx_has_valid_vmcs12() 68 return vmx->nested.vpid02 ? vmx->nested.vpid02 : vmx->vpid; in nested_get_vpid02() 100 return vmx_misc_cr3_count(to_vmx(vcpu)->nested.msrs.misc_low); in nested_cpu_vmx_misc_cr3_count() 110 return to_vmx(vcpu)->nested.msrs.misc_low & in nested_cpu_has_vmwrite_any_field() 116 return to_vmx(vcpu)->nested.msrs.misc_low & VMX_MISC_ZERO_LEN_INS; in nested_cpu_has_zero_length_injection() 121 return to_vmx(vcpu)->nested.msrs.procbased_ctls_high & in nested_cpu_supports_monitor_trap_flag() 127 return to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_cpu_has_vmx_shadow_vmcs() [all …]
|
D | nested.c | 180 if (to_vmx(vcpu)->nested.hv_evmcs_vmptr != EVMPTR_INVALID) in nested_vmx_failValid() 181 to_vmx(vcpu)->nested.need_vmcs12_to_shadow_sync = true; in nested_vmx_failValid() 194 if (vmx->nested.current_vmptr == -1ull && in nested_vmx_fail() 195 !evmptr_is_valid(vmx->nested.hv_evmcs_vmptr)) in nested_vmx_fail() 222 vmx->nested.need_vmcs12_to_shadow_sync = false; in vmx_disable_shadow_vmcs() 229 if (evmptr_is_valid(vmx->nested.hv_evmcs_vmptr)) { in nested_release_evmcs() 230 kvm_vcpu_unmap(vcpu, &vmx->nested.hv_evmcs_map, true); in nested_release_evmcs() 231 vmx->nested.hv_evmcs = NULL; in nested_release_evmcs() 234 vmx->nested.hv_evmcs_vmptr = EVMPTR_INVALID; in nested_release_evmcs() 286 if (!vmx->nested.vmxon && !vmx->nested.smm.vmxon) in free_nested() [all …]
|
D | vmx.c | 112 static bool __read_mostly nested = 1; variable 113 module_param(nested, bool, S_IRUGO); 1201 if (vmx->nested.need_vmcs12_to_shadow_sync) in vmx_prepare_switch_to_guest() 1651 vmx->nested.mtf_pending = true; in vmx_update_emulated_instruction() 1653 vmx->nested.mtf_pending = false; in vmx_update_emulated_instruction() 1816 return nested && guest_cpuid_has(vcpu, X86_FEATURE_VMX); in nested_vmx_allowed() 1831 if (!nested) in vmx_get_msr_feature() 1833 return vmx_get_vmx_msr(&vmcs_config.nested, msr->index, &msr->data); in vmx_get_msr_feature() 1921 if (vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index, in vmx_get_msr() 1932 vmx->nested.enlightened_vmcs_enabled) in vmx_get_msr() [all …]
|
D | evmcs.c | 338 (!vcpu || to_vmx(vcpu)->nested.enlightened_vmcs_enabled)) in nested_get_evmcs_version() 434 vmx->nested.enlightened_vmcs_enabled = true; in nested_enable_evmcs()
|
D | capabilities.h | 64 struct nested_vmx_msrs nested; member
|
D | vmx.h | 316 struct nested_vmx nested; member
|
/arch/x86/kvm/svm/ |
D | nested.c | 61 if (vmcb_is_intercept(&svm->nested.ctl, INTERCEPT_EXCEPTION_OFFSET + PF_VECTOR) && in svm_inject_page_fault_nested() 62 !svm->nested.nested_run_pending) { in svm_inject_page_fault_nested() 76 u64 cr3 = svm->nested.ctl.nested_cr3; in nested_svm_get_tdp_pdptr() 91 return svm->nested.ctl.nested_cr3; in nested_svm_get_tdp_cr3() 109 svm->nested.ctl.nested_cr3); in nested_svm_init_mmu_context() 134 g = &svm->nested.ctl; in recalc_intercepts() 206 if (!(vmcb_is_intercept(&svm->nested.ctl, INTERCEPT_MSR_PROT))) in nested_svm_vmrun_msrpm() 217 offset = svm->nested.ctl.msrpm_base_pa + (p * 4); in nested_svm_vmrun_msrpm() 222 svm->nested.msrpm[p] = svm->msrpm[p] | value; in nested_svm_vmrun_msrpm() 225 svm->vmcb->control.msrpm_base_pa = __sme_set(__pa(svm->nested.msrpm)); in nested_svm_vmrun_msrpm() [all …]
|
D | svm.h | 156 struct svm_nested_state nested; member 446 return is_guest_mode(vcpu) && (svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK); in nested_svm_virtualize_tpr() 451 return vmcb_is_intercept(&svm->nested.ctl, INTERCEPT_SMI); in nested_exit_on_smi() 456 return vmcb_is_intercept(&svm->nested.ctl, INTERCEPT_INTR); in nested_exit_on_intr() 461 return vmcb_is_intercept(&svm->nested.ctl, INTERCEPT_NMI); in nested_exit_on_nmi()
|
D | svm.c | 174 static int nested = true; variable 175 module_param(nested, int, S_IRUGO); 659 msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm: in msr_write_intercepted() 941 if (nested) { in svm_set_cpu_caps() 1013 if (nested) { in svm_hardware_setup() 1125 return svm->nested.ctl.tsc_offset; in svm_get_l2_tsc_offset() 1278 svm->nested.vmcb12_gpa = INVALID_GPA; in init_vmcb() 1279 svm->nested.last_vmcb12_gpa = INVALID_GPA; in init_vmcb() 1594 (svm->nested.ctl.int_ctl & V_TPR_MASK)); in svm_clear_vintr() 1596 svm->vmcb->control.int_ctl |= svm->nested.ctl.int_ctl & in svm_clear_vintr() [all …]
|
/arch/um/os-Linux/ |
D | signal.c | 184 int nested, bail; in hard_handler() local 200 nested = pending & 1; in hard_handler() 215 if (!nested) in hard_handler() 216 pending = from_irq_stack(nested); in hard_handler()
|
/arch/x86/kvm/ |
D | Makefile | 30 vmx/evmcs.o vmx/nested.o vmx/posted_intr.o 33 kvm-amd-y += svm/svm.o svm/vmenter.o svm/pmu.o svm/nested.o svm/avic.o svm/sev.o
|
/arch/x86/hyperv/ |
D | Makefile | 2 obj-y := hv_init.o mmu.o nested.o irqdomain.o
|
/arch/powerpc/kvm/ |
D | book3s_hv_p9_entry.c | 88 struct kvm_nested_guest *nested = vcpu->arch.nested; in switch_mmu_to_guest_radix() local 91 lpid = nested ? nested->shadow_lpid : kvm->arch.lpid; in switch_mmu_to_guest_radix() 180 struct kvm_nested_guest *nested = vcpu->arch.nested; in kvmhv_vcpu_entry_p9() local 303 kvmppc_check_need_tlb_flush(kvm, vc->pcpu, nested); in kvmhv_vcpu_entry_p9()
|
D | book3s_64_mmu_radix.c | 101 if (vcpu->arch.nested) in kvmhv_copy_tofrom_guest_radix() 102 lpid = vcpu->arch.nested->shadow_lpid; in kvmhv_copy_tofrom_guest_radix() 781 bool kvmppc_hv_handle_set_rc(struct kvm *kvm, bool nested, bool writing, in kvmppc_hv_handle_set_rc() argument 797 if (nested) in kvmppc_hv_handle_set_rc() 1293 struct kvm_nested_guest *nested; in debugfs_radix_read() local 1329 nested = NULL; in debugfs_radix_read() 1335 if (nested) { in debugfs_radix_read() 1336 kvmhv_put_nested(nested); in debugfs_radix_read() 1337 nested = NULL; in debugfs_radix_read() 1348 nested = kvmhv_get_nested(kvm, p->lpid, false); in debugfs_radix_read() [all …]
|
D | book3s_hv_builtin.c | 717 struct kvm_nested_guest *nested) in kvmppc_check_need_tlb_flush() argument 730 if (nested) in kvmppc_check_need_tlb_flush() 731 need_tlb_flush = &nested->need_tlb_flush; in kvmppc_check_need_tlb_flush()
|
D | book3s_hv.c | 126 static bool nested = true; variable 127 module_param(nested, bool, S_IRUGO | S_IWUSR); 128 MODULE_PARM_DESC(nested, "Enable nested virtualization (only on POWER9)"); 948 do_h_rpt_invalidate_prt(pid, vcpu->arch.nested->shadow_lpid, in kvmppc_nested_h_rpt_invalidate() 2949 struct kvm_nested_guest *nested = vcpu->arch.nested; in radix_flush_cpu() local 2954 if (nested) { in radix_flush_cpu() 2955 cpumask_set_cpu(cpu, &nested->need_tlb_flush); in radix_flush_cpu() 2956 cpu_in_guest = &nested->cpu_in_guest; in radix_flush_cpu() 2975 struct kvm_nested_guest *nested = vcpu->arch.nested; in kvmppc_prepare_radix_vcpu() local 2982 if (nested) in kvmppc_prepare_radix_vcpu() [all …]
|
D | book3s_hv_nested.c | 362 vcpu->arch.nested = l2; in kvmhv_enter_nested_guest() 394 vcpu->arch.nested = NULL; in kvmhv_enter_nested_guest() 1650 struct kvm_nested_guest *gp = vcpu->arch.nested; in kvmhv_nested_page_fault()
|
/arch/um/kernel/ |
D | irq.c | 711 int nested; in to_irq_stack() local 733 nested = (ti->real_thread != NULL); in to_irq_stack() 734 if (!nested) { in to_irq_stack() 747 *mask_out |= mask | nested; in to_irq_stack() 751 unsigned long from_irq_stack(int nested) in from_irq_stack() argument
|
/arch/um/include/shared/ |
D | kern_util.h | 60 extern unsigned long from_irq_stack(int nested);
|
/arch/nds32/kernel/ |
D | ex-exit.S | 94 lwi $p0, [$sp+(#IPSW_OFFSET)] ! Check if in nested interrupt 139 lwi $p0, [$sp+(#IPSW_OFFSET)] ! Check if in nested interrupt
|
/arch/powerpc/include/asm/ |
D | kvm_book3s_64.h | 148 if (vcpu->arch.nested) in kvmhv_vcpu_is_radix() 149 radix = vcpu->arch.nested->radix; in kvmhv_vcpu_is_radix()
|
D | kvm_book3s.h | 199 extern bool kvmppc_hv_handle_set_rc(struct kvm *kvm, bool nested,
|
D | kvm_host.h | 816 struct kvm_nested_guest *nested; member
|
/arch/powerpc/ |
D | Makefile | 134 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)
|
/arch/arm/kernel/ |
D | entry-armv.S | 304 @ save/restore lr_abt and spsr_abt to make nested aborts safe.
|