/linux-6.3-rc2/arch/x86/kvm/svm/ |
A D | nested.c | 95 svm->nested.ctl.nested_cr3); in nested_svm_init_mmu_context() 135 g = &svm->nested.ctl; in recalc_intercepts() 531 if (!svm->nested.vmcb02.ptr) in nested_vmcb02_compute_g_pat() 547 if (svm->nested.vmcb12_gpa != svm->nested.last_vmcb12_gpa) { in nested_vmcb02_prepare_save() 549 svm->nested.last_vmcb12_gpa = svm->nested.vmcb12_gpa; in nested_vmcb02_prepare_save() 670 svm->nested.ctl.tsc_offset, in nested_vmcb02_prepare_control() 828 if (!svm->nested.hsave_msr) { in nested_svm_vmrun() 969 svm->nested.vmcb12_gpa = 0; in nested_svm_vmexit() 1126 if (svm->nested.initialized) in svm_allocate_nested() 1136 if (!svm->nested.msrpm) in svm_allocate_nested() [all …]
|
A D | hyperv.h | 17 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; in nested_svm_hv_update_vm_vp_ids() 23 hv_vcpu->nested.pa_page_gpa = hve->partition_assist_page; in nested_svm_hv_update_vm_vp_ids() 24 hv_vcpu->nested.vm_id = hve->hv_vm_id; in nested_svm_hv_update_vm_vp_ids() 25 hv_vcpu->nested.vp_id = hve->hv_vp_id; in nested_svm_hv_update_vm_vp_ids() 31 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; in nested_svm_l2_tlb_flush_enabled()
|
A D | svm.h | 231 struct svm_nested_state nested; member 493 return svm->vgif_enabled && (svm->nested.ctl.int_ctl & V_GIF_ENABLE_MASK); in nested_vgif_enabled() 502 return svm->nested.vmcb02.ptr; in get_vgif_vmcb() 539 return svm->nested.ctl.nested_ctl & SVM_NESTED_CTL_NP_ENABLE; in nested_npt_enabled() 590 return is_guest_mode(vcpu) && (svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK); in nested_svm_virtualize_tpr() 595 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_SMI); in nested_exit_on_smi() 600 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_INTR); in nested_exit_on_intr() 605 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_NMI); in nested_exit_on_nmi()
|
/linux-6.3-rc2/arch/x86/kvm/vmx/ |
A D | nested.c | 241 hv_vcpu->nested.vm_id = 0; in nested_release_evmcs() 301 if (!vmx->nested.vmxon && !vmx->nested.smm.vmxon) in free_nested() 306 vmx->nested.vmxon = false; in free_nested() 1370 if (vmx->nested.vmxon) in vmx_set_vmx_msr() 2020 vmx->nested.hv_evmcs = vmx->nested.hv_evmcs_map.hva; in nested_vmx_handle_enlightened_vmptrld() 2239 if (vmx->nested.dirty_vmcs12 || evmptr_is_valid(vmx->nested.hv_evmcs_vmptr)) in prepare_vmcs02_early() 2535 if (vmx->nested.dirty_vmcs12 || evmptr_is_valid(vmx->nested.hv_evmcs_vmptr)) { in prepare_vmcs02() 3251 vmx->nested.pi_desc = in nested_get_vmcs12_pages() 5178 if (vmx->nested.vmxon) in handle_vmxon() 5313 } else if (vmx->nested.hv_evmcs && vmptr == vmx->nested.hv_evmcs_vmptr) { in handle_vmclear() [all …]
|
A D | nested.h | 41 return to_vmx(vcpu)->nested.cached_vmcs12; in get_vmcs12() 46 return to_vmx(vcpu)->nested.cached_shadow_vmcs12; in get_shadow_vmcs12() 59 return vmx->nested.current_vmptr != -1ull || in vmx_has_valid_vmcs12() 60 vmx->nested.hv_evmcs_vmptr != EVMPTR_INVALID; in vmx_has_valid_vmcs12() 67 return vmx->nested.vpid02 ? vmx->nested.vpid02 : vmx->vpid; in nested_get_vpid02() 110 return to_vmx(vcpu)->nested.msrs.misc_low & in nested_cpu_has_vmwrite_any_field() 258 u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0; in nested_guest_cr0_valid() 259 u64 fixed1 = to_vmx(vcpu)->nested.msrs.cr0_fixed1; in nested_guest_cr0_valid() 272 u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0; in nested_host_cr0_valid() 273 u64 fixed1 = to_vmx(vcpu)->nested.msrs.cr0_fixed1; in nested_host_cr0_valid() [all …]
|
A D | vmx.c | 1949 if (!nested) in vmx_get_msr_feature() 2777 if (nested) in vmx_check_processor_compat() 4531 if (nested) { in vmx_adjust_secondary_exec_control() 4704 if (nested) in init_vmcs() 4823 if (nested) in __vmx_vcpu_reset() 4824 memcpy(&vmx->nested.msrs, &vmcs_config.nested, sizeof(vmx->nested.msrs)); in __vmx_vcpu_reset() 6961 return nested; in vmx_has_emulated_msr() 7797 if (nested) in vmx_set_cpu_caps() 8057 vmx->nested.smm.vmxon = vmx->nested.vmxon; in vmx_enter_smm() 8109 if (nested) in vmx_hardware_unsetup() [all …]
|
/linux-6.3-rc2/Documentation/virt/kvm/x86/ |
A D | running-nested-guests.rst | 4 Running nested guests with KVM 76 Enabling "nested" (x86) 98 parm: nested:bool 105 options kvm-intel nested=y 144 Starting a nested guest (x86) 159 nested guest with accelerated KVM. 162 Enabling "nested" (s390x) 169 $ modprobe kvm nested=1 184 Live migration with nested KVM 213 Reporting bugs from nested setups [all …]
|
A D | index.rst | 16 nested-vmx 17 running-nested-guests
|
A D | nested-vmx.rst | 16 hypervisors (which use VMX) with their own nested guests. It does so by 20 We describe in much greater detail the theory behind the nested VMX feature, 32 In nested virtualization, we have three levels: The host (KVM), which we call 33 L0, the guest hypervisor, which we call L1, and its nested guest, which we 37 Running nested VMX 40 The nested VMX feature is enabled by default since Linux kernel v4.20. For 41 older Linux kernel, it can be enabled by giving the "nested=1" option to the 65 As a VMX implementation, nested VMX presents a VMCS structure to L1.
|
/linux-6.3-rc2/Documentation/netlink/specs/ |
A D | ethtool.yaml | 41 nested-attributes: bitset-bit 54 nested-attributes: bitset-bits 72 nested-attributes: string 86 nested-attributes: strings 94 nested-attributes: stringset 101 nested-attributes: header 116 nested-attributes: header 120 nested-attributes: bitset 128 nested-attributes: header 199 nested-attributes: header [all …]
|
/linux-6.3-rc2/Documentation/networking/ |
A D | ethtool-netlink.rst | 109 Compact form: nested (bitset) attribute contents: 134 Bit-by-bit form: nested (bitset) attribute contents: 379 ``ETHTOOL_A_LINKINFO_HEADER`` nested reply header 493 ``ETHTOOL_A_LINKSTATE_HEADER`` nested reply header 660 ``ETHTOOL_A_DEBUG_HEADER`` nested reply header 708 ``ETHTOOL_A_WOL_HEADER`` nested reply header 749 ``ETHTOOL_A_FEATURES_HEADER`` nested reply header 781 ``ETHTOOL_A_FEATURES_HEADER`` nested reply header 821 ``ETHTOOL_A_PRIVFLAGS_HEADER`` nested reply header 864 ``ETHTOOL_A_RINGS_HEADER`` nested reply header [all …]
|
/linux-6.3-rc2/tools/perf/bench/ |
A D | epoll-ctl.c | 57 static unsigned int nested = 0; variable 79 …OPT_UINTEGER( 'N', "nested", &nested, "Nesting level epoll hierarchy (default is 0, no nesting)… 105 if (nested > EPOLL_MAXNESTS) in nest_epollfd() 106 nested = EPOLL_MAXNESTS; in nest_epollfd() 107 printinfo("Nesting level(s): %d\n", nested); in nest_epollfd() 109 epollfdp = calloc(nested, sizeof(int)); in nest_epollfd() 113 for (i = 0; i < nested; i++) { in nest_epollfd() 122 for (i = nested - 1; i; i--) { in nest_epollfd() 345 if (nested) in bench_epoll_ctl()
|
A D | epoll-wait.c | 105 static unsigned int nested = 0; variable 138 …OPT_UINTEGER( 'N', "nested", &nested, "Nesting level epoll hierarchy (default is 0, no nesting)… 246 if (nested > EPOLL_MAXNESTS) in nest_epollfd() 247 nested = EPOLL_MAXNESTS; in nest_epollfd() 249 epollfdp = calloc(nested, sizeof(*epollfdp)); in nest_epollfd() 253 for (i = 0; i < nested; i++) { in nest_epollfd() 262 for (i = nested - 1; i; i--) { in nest_epollfd() 325 if (nested) in do_threads() 460 if (nested) in bench_epoll_wait() 465 printinfo("Nesting level(s): %d\n", nested); in bench_epoll_wait()
|
/linux-6.3-rc2/net/netfilter/ipset/ |
A D | ip_set_bitmap_gen.h | 95 struct nlattr *nested; in mtype_head() local 98 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in mtype_head() 99 if (!nested) in mtype_head() 108 nla_nest_end(skb, nested); in mtype_head() 207 struct nlattr *adt, *nested; in mtype_list() local 229 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in mtype_list() 230 if (!nested) { in mtype_list() 243 nla_nest_end(skb, nested); in mtype_list() 253 nla_nest_cancel(skb, nested); in mtype_list()
|
A D | ip_set_list_set.c | 462 struct nlattr *nested; in list_set_head() local 465 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in list_set_head() 466 if (!nested) in list_set_head() 475 nla_nest_end(skb, nested); in list_set_head() 487 struct nlattr *atd, *nested; in list_set_list() local 505 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in list_set_list() 506 if (!nested) in list_set_list() 513 nla_nest_end(skb, nested); in list_set_list() 523 nla_nest_cancel(skb, nested); in list_set_list()
|
/linux-6.3-rc2/scripts/coccinelle/locks/ |
A D | flags.cocci | 2 /// Find nested lock+irqsave functions that use the same flags variables 73 cocci.print_secs("nested lock+irqsave that reuses flags",p2) 80 msg="ERROR: nested lock+irqsave that reuses flags from line %s." % (p1[0].line)
|
/linux-6.3-rc2/arch/um/os-Linux/ |
A 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()
|
/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | book3s_hv_p9_entry.c | 137 if (!vcpu->arch.nested) { in store_vcpu_state() 201 if (!vcpu->arch.nested) { in restore_p9_host_os_sprs() 303 struct kvm_nested_guest *nested = vcpu->arch.nested; in switch_mmu_to_guest_radix() local 307 lpid = nested ? nested->shadow_lpid : kvm->arch.lpid; in switch_mmu_to_guest_radix() 454 struct kvm_nested_guest *nested) in check_need_tlb_flush() argument 460 if (nested) in check_need_tlb_flush() 461 need_tlb_flush = &nested->need_tlb_flush; in check_need_tlb_flush() 536 struct kvm_nested_guest *nested = vcpu->arch.nested; in kvmhv_vcpu_entry_p9() local 703 check_need_tlb_flush(kvm, vc->pcpu, nested); in kvmhv_vcpu_entry_p9()
|
A D | book3s_64_mmu_radix.c | 106 if (vcpu->arch.nested) in kvmhv_copy_tofrom_guest_radix() 803 if (nested) in kvmppc_hv_handle_set_rc() 1299 struct kvm_nested_guest *nested; in debugfs_radix_read() local 1335 nested = NULL; in debugfs_radix_read() 1341 if (nested) { in debugfs_radix_read() 1342 kvmhv_put_nested(nested); in debugfs_radix_read() 1343 nested = NULL; in debugfs_radix_read() 1355 if (!nested) { in debugfs_radix_read() 1359 pgt = nested->shadow_pgtable; in debugfs_radix_read() 1434 if (nested) in debugfs_radix_read() [all …]
|
/linux-6.3-rc2/Documentation/dev-tools/ |
A D | ktap.rst | 16 KTAP test results describe a series of tests (which may be nested: i.e., test 29 information, in particular nested test results, may be lost. Also note that 46 start of the nested test results. This differs from TAP14, which uses a 59 Plan lines follow version lines to indicate the number of nested tests. 185 In KTAP, tests can be nested. This is done by having a test include within its 201 An example of a test with two nested subtests: 214 An example format with multiple levels of nested testing: 240 allows an arbitrary number of tests to be nested no yes 245 The TAP14 specification does permit nested tests, but instead of using another 246 nested version line, uses a line of the form
|
/linux-6.3-rc2/Documentation/x86/ |
A D | kernel-stacks.rst | 28 hardware interrupt (i.e. not a nested hardware interrupt) then the 54 nested IST interrupts then the handler must adjust the IST values on 59 nested. For example, a debug interrupt can safely be interrupted by an 62 IST events with the same code to be nested. However in most cases, the 95 To handle nested #DB correctly there exist two instances of DB stacks. On 97 so a nested #DB starts from a clean stack. The nested #DB switches
|
/linux-6.3-rc2/arch/arm64/kvm/ |
A D | Makefile | 17 arch_timer.o trng.o vmid.o emulate-nested.o nested.o \
|
/linux-6.3-rc2/arch/x86/kvm/ |
A D | Makefile | 26 vmx/hyperv.o vmx/nested.o vmx/posted_intr.o 29 kvm-amd-y += svm/svm.o svm/vmenter.o svm/pmu.o svm/nested.o svm/avic.o \
|
/linux-6.3-rc2/arch/um/kernel/ |
A 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
|
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/ |
A D | memstress.c | 159 if (args->nested) in memstress_create_vm() 180 if (args->nested) in memstress_create_vm() 219 if (args->nested) { in memstress_create_vm()
|