Home
last modified time | relevance | path

Searched refs:nested (Results 1 – 25 of 130) sorted by relevance

123456

/linux/tools/testing/selftests/verification/test.d/
H A Drv_monitor_enable_disable.tc7 local prefix="$2" # nested monitors
24 local nested
31 nested=$(basename "$nested_dir")
32 grep -q "^$monitor:$nested$" enabled_monitors
34 test -n "$nested"
41 nested=$(basename "$nested_dir")
42 ! grep -q "^$monitor:$nested$" enabled_monitors || false
50 nested=$(basename "$nested_dir")
51 grep -q "^$monitor:$nested$" enabled_monitors
59 nested
[all...]
H A Drv_monitor_reactor.tc8 local prefix="$2" # nested monitors
23 local nested
33 nested=$(basename "$nested_dir")
34 grep -q "\\[$reactor\\]" "monitors/$monitor/$nested/reactors"
37 test -n "$nested"
44 nested=$(basename "$nested_dir")
45 grep -q "\\[nop\\]" "monitors/$monitor/$nested/reactors"
50 nested=$(basename "$nested_dir")
51 test_monitor_reactor "$nested" "$monitor/"
H A Drv_monitors_available.tc13 nested=$(basename "$nested_dir")
15 grep -q "^$monitor:$nested$" available_monitors
/linux/Documentation/virt/kvm/x86/
H A Drunning-nested-guests.rst4 Running nested guests with KVM
7 A nested guest is the ability to run a guest inside another guest (it
36 - L2 – level-2 guest; a VM running on L1, this is the "nested guest"
44 resulting in at least four levels in a nested setup — L0 (bare
46 (guest hypervisor), L3 (nested guest).
56 There are several scenarios where nested KVM can be useful, to name a
61 Provider, using nested KVM lets you rent a large enough "guest
63 multiple nested guests (level-2 guests), running different OSes, on
66 - Live migration of "guest hypervisors" and their nested guests, for
76 Enabling "nested" (x86)
[all …]
H A Dindex.rst17 nested-vmx
18 running-nested-guests
H A Dnested-vmx.rst16 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/arch/x86/kvm/svm/
H A Dnested.c59 * All nested page faults should be annotated as occurring on the in nested_svm_inject_npf_exit()
77 u64 cr3 = svm->nested.ctl.nested_cr3; in nested_svm_get_tdp_pdptr()
96 return svm->nested.ctl.nested_cr3; in nested_svm_get_tdp_cr3()
114 svm->nested.ctl.nested_cr3, in nested_svm_init_mmu_context()
115 svm->nested.ctl.misc_ctl); in nested_svm_init_mmu_context()
135 if (!(svm->nested.ctl.misc_ctl2 & SVM_MISC2_ENABLE_V_VMLOAD_VMSAVE)) in nested_vmcb_needs_vls_intercept()
143 struct vmcb_ctrl_area_cached *vmcb12_ctrl = &svm->nested.ctl; in nested_vmcb02_recalc_intercepts()
144 struct vmcb *vmcb02 = svm->nested.vmcb02.ptr; in nested_vmcb02_recalc_intercepts()
186 if (!vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_PAUSE)) in nested_vmcb02_recalc_intercepts()
298 nsvm_msrpm_merge_t *msrpm02 = svm->nested in nested_svm_merge_msrpm()
[all...]
H A Dsvm.h311 struct svm_nested_state nested;
611 (svm->nested.ctl.int_ctl & V_GIF_ENABLE_MASK); in nested_vgif_enabled()
620 return svm->nested.vmcb02.ptr; in get_vgif_vmcb()
657 return svm->nested.ctl.misc_ctl & SVM_MISC_ENABLE_NP; in nested_npt_enabled()
673 (svm->nested.ctl.int_ctl & V_NMI_ENABLE_MASK); in nested_vnmi_enabled()
853 /* nested.c */ in nested_svm_virtualize_tpr()
856 #define NESTED_EXIT_DONE 1 /* Exit caused nested vmexit */
863 return is_guest_mode(vcpu) && (svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK); in nested_exit_on_intr()
868 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_SMI); in nested_exit_on_nmi()
873 return vmcb12_is_intercept(&svm->nested
310 struct svm_nested_state nested; global() member
[all...]
/linux/arch/x86/kvm/vmx/
H A Dnested.c16 #include "nested.h"
190 to_vmx(vcpu)->nested.need_vmcs12_to_shadow_sync = true; in nested_vmx_failValid()
203 if (vmx->nested.current_vmptr == INVALID_GPA && in nested_vmx_fail()
214 pr_debug_ratelimited("nested vmx abort, indicator %d\n", indicator); in nested_vmx_abort()
231 vmx->nested.need_vmcs12_to_shadow_sync = false; in vmx_disable_shadow_vmcs()
240 kvm_vcpu_unmap(vcpu, &vmx->nested.hv_evmcs_map); in nested_release_evmcs()
241 vmx->nested.hv_evmcs = NULL; in nested_release_evmcs()
242 vmx->nested.hv_evmcs_vmptr = EVMPTR_INVALID; in nested_release_evmcs()
245 hv_vcpu->nested.pa_page_gpa = INVALID_GPA; in nested_release_evmcs()
246 hv_vcpu->nested in nested_release_evmcs()
[all...]
H A Dvmx.c65 #include "nested.h"
131 * If nested=1, nested virtualization is supported, i.e., guests may use
132 * VMX and be a hypervisor for its own guests. If nested=0, guests may not
135 static bool __read_mostly nested = 1; variable
136 module_param(nested, bool, 0444);
297 * order to protect against KSM in the nested in __vmx_setup_l1d_flush()
931 /* When we are running a nested L2 guest and L1 specified for it a in vmx_update_exception_bitmap()
1365 if (vmx->nested.need_vmcs12_to_shadow_sync) in vmx_prepare_switch_to_guest()
1611 WARN_ON_ONCE(vmx->loaded_vmcs != &vmx->nested in vmx_load_vmcs01()
[all...]
/linux/rust/macros/
H A Dzeroable.rs
/linux/rust/pin-init/internal/src/
H A Dzeroable.rs34 let mut nested = 0; parse_zeroable_derive_input() localVariable
/linux/Documentation/networking/devlink/
H A Dindex.rst33 lock of both nested and parent instances at the same time, devlink
34 instance lock of the nested instance should be taken first, only then
36 - Driver should use object-specific helpers to setup the nested relationship
37 before registering the nested devlink instance:
39 - ``devl_nested_devlink_set()`` - called to setup devlink -> nested
40 devlink relationship (could be used for multiple nested instances).
42 nested devlink relationship.
44 nested devlink relationship.
46 The nested devlink info is exposed to the userspace over object-specific
/linux/tools/perf/bench/
H A Depoll-ctl.c57 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()
/linux/net/netfilter/ipset/
H A Dip_set_bitmap_gen.h95 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()
208 struct nlattr *adt, *nested; in mtype_list() local
230 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in mtype_list()
231 if (!nested) { in mtype_list()
244 nla_nest_end(skb, nested); in mtype_list()
254 nla_nest_cancel(skb, nested); in mtype_list()
H A Dip_set_list_set.c459 struct nlattr *nested; in list_set_head() local
462 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in list_set_head()
463 if (!nested) in list_set_head()
472 nla_nest_end(skb, nested); in list_set_head()
484 struct nlattr *atd, *nested; in list_set_list() local
502 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in list_set_list()
503 if (!nested) in list_set_list()
510 nla_nest_end(skb, nested); in list_set_list()
520 nla_nest_cancel(skb, nested); in list_set_list()
/linux/kernel/sched/ext/
H A Dinlines.h54 struct task_struct *prev, bool nested) in scx_dispatch_sched()
126 /* stash @prev so that nested invocations can access it */ in scx_dispatch_sched()
127 if (!nested) in scx_dispatch_sched()
140 if (!nested) in scx_dispatch_sched()
31 scx_dispatch_sched(struct scx_sched * sch,struct rq * rq,struct task_struct * prev,bool nested) scx_dispatch_sched() argument
/linux/arch/arm64/kvm/
H A Dmmu.c1060 * Otherwise, we're building nested page tables, and that's in kvm_uninit_stage2_mmu()
1453 struct kvm_s2_trans *nested; in transparent_hugepage_adjust()
1681 static enum kvm_pgtable_prot adjust_nested_fault_perms(struct kvm_s2_trans *nested,
1684 if (!kvm_s2_trans_writable(nested))
1686 if (!kvm_s2_trans_readable(nested))
1689 return prot | kvm_encode_nested_level(nested);
1693 struct kvm_s2_trans *nested,
1696 if (!kvm_s2_trans_exec_el0(kvm, nested)) in pkvm_mem_abort()
1698 if (!kvm_s2_trans_exec_el1(kvm, nested)) in pkvm_mem_abort()
1789 if (s2fd->nested) in kvm_s2_resolve_vma_size()
1565 adjust_nested_fault_perms(struct kvm_s2_trans * nested,enum kvm_pgtable_prot prot) adjust_nested_fault_perms() argument
1577 adjust_nested_exec_perms(struct kvm * kvm,struct kvm_s2_trans * nested,enum kvm_pgtable_prot prot) adjust_nested_exec_perms() argument
1591 struct kvm_s2_trans *nested; global() member
2226 struct kvm_s2_trans nested_trans, *nested = NULL; kvm_handle_guest_abort() local
[all...]
/linux/scripts/coccinelle/locks/
H A Dflags.cocci2 /// 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/Documentation/tools/rv/
H A Drv-mon-sched.rst28 As a monitor container, it will enable all nested monitors and set them
30 Nevertheless nested monitors can also be activated independently both by name
48 The available nested monitors are:
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_entry.c48 * DAR, DSISR, and for nested HV, SPRGs must be set with MSR[RI] in load_spr_state()
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 in check_need_tlb_flush()
536 struct kvm_nested_guest *nested = vcpu->arch.nested; kvmhv_vcpu_entry_p9() local
[all...]
H A Dbook3s_64_mmu_radix.c110 if (vcpu->arch.nested) in kvmhv_copy_tofrom_guest_radix()
111 lpid = vcpu->arch.nested->shadow_lpid; in kvmhv_copy_tofrom_guest_radix()
793 bool kvmppc_hv_handle_set_rc(struct kvm *kvm, bool nested, bool writing, in kvmppc_hv_handle_set_rc() argument
809 if (nested) in kvmppc_hv_handle_set_rc()
1289 struct kvm_nested_guest *nested; in debugfs_radix_read() local
1325 nested = NULL; in debugfs_radix_read()
1331 if (nested) { in debugfs_radix_read()
1332 kvmhv_put_nested(nested); in debugfs_radix_read()
1333 nested = NULL; in debugfs_radix_read()
1344 nested = kvmhv_get_nested(kvm, p->lpid, false); in debugfs_radix_read()
[all …]
/linux/Documentation/arch/x86/
H A Dkernel-stacks.rst28 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/rust/syn/
H A Ddiscouraged.rs218 let nested = crate::parse::advance_step_cursor(cursor, content); in parse_any_delimiter() localVariable
220 let content = crate::parse::new_parse_buffer(scope, nested, unexpected); in parse_any_delimiter()
/linux/tools/net/ynl/pyynl/
H A Dynl_gen_c.py7 # pylint: disable=too-many-nested-blocks, too-many-lines, too-few-public-methods
77 if 'nested-attributes' in attr:
78 nested = attr['nested-attributes']
80 nested = attr['sub-message']
82 nested = None
84 if nested:
85 self.nested_attrs = nested
1022 self.nested = type_list is None
1028 if self.nested an
[all...]

123456