Home
last modified time | relevance | path

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

123456

/linux/arch/x86/kvm/svm/
H A Dnested.c62 u64 cr3 = svm->nested.ctl.nested_cr3; in nested_svm_get_tdp_pdptr()
81 return svm->nested.ctl.nested_cr3; in nested_svm_get_tdp_cr3()
99 svm->nested.ctl.nested_cr3); in nested_svm_init_mmu_context()
120 if (!(svm->nested.ctl.virt_ext & VIRTUAL_VMLOAD_VMSAVE_ENABLE_MASK)) in nested_vmcb_needs_vls_intercept()
139 g = &svm->nested.ctl; in recalc_intercepts()
267 nsvm_msrpm_merge_t *msrpm02 = svm->nested.msrpm; in nested_svm_merge_msrpm()
280 if (!svm->nested.force_msr_bitmap_recalc) { in nested_svm_merge_msrpm()
281 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; in nested_svm_merge_msrpm()
285 (svm->nested.ctl.clean & BIT(HV_VMCB_NESTED_ENLIGHTENMENTS))) in nested_svm_merge_msrpm()
290 if (!(vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_MSR_PROT))) in nested_svm_merge_msrpm()
[all …]
H A Dhyperv.h18 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; in nested_svm_hv_update_vm_vp_ids()
24 hv_vcpu->nested.pa_page_gpa = hve->partition_assist_page; in nested_svm_hv_update_vm_vp_ids()
25 hv_vcpu->nested.vm_id = hve->hv_vm_id; in nested_svm_hv_update_vm_vp_ids()
26 hv_vcpu->nested.vp_id = hve->hv_vp_id; in nested_svm_hv_update_vm_vp_ids()
32 struct hv_vmcb_enlightenments *hve = &svm->nested.ctl.hv_enlightenments; in nested_svm_l2_tlb_flush_enabled()
H A Dsvm.h279 struct svm_nested_state nested; member
505 (svm->nested.ctl.int_ctl & V_GIF_ENABLE_MASK); in nested_vgif_enabled()
514 return svm->nested.vmcb02.ptr; in get_vgif_vmcb()
551 return svm->nested.ctl.nested_ctl & SVM_NESTED_CTL_NP_ENABLE; in nested_npt_enabled()
557 (svm->nested.ctl.int_ctl & V_NMI_ENABLE_MASK); in nested_vnmi_enabled()
730 return is_guest_mode(vcpu) && (svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK); in nested_svm_virtualize_tpr()
735 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_SMI); in nested_exit_on_smi()
740 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_INTR); in nested_exit_on_intr()
745 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_NMI); in nested_exit_on_nmi()
/linux/arch/x86/kvm/vmx/
H A Dnested.c185 to_vmx(vcpu)->nested.need_vmcs12_to_shadow_sync = true; in nested_vmx_failValid()
198 if (vmx->nested.current_vmptr == INVALID_GPA && in nested_vmx_fail()
226 vmx->nested.need_vmcs12_to_shadow_sync = false; in vmx_disable_shadow_vmcs()
235 kvm_vcpu_unmap(vcpu, &vmx->nested.hv_evmcs_map); in nested_release_evmcs()
236 vmx->nested.hv_evmcs = NULL; in nested_release_evmcs()
237 vmx->nested.hv_evmcs_vmptr = EVMPTR_INVALID; in nested_release_evmcs()
240 hv_vcpu->nested.pa_page_gpa = INVALID_GPA; in nested_release_evmcs()
241 hv_vcpu->nested.vm_id = 0; in nested_release_evmcs()
242 hv_vcpu->nested.vp_id = 0; in nested_release_evmcs()
265 if (nested_vmx_evmcs(vmx) && vmptr == vmx->nested.hv_evmcs_vmptr) in nested_evmcs_handle_vmclear()
[all …]
H A Dnested.h63 return to_vmx(vcpu)->nested.cached_vmcs12; in get_vmcs12()
71 return to_vmx(vcpu)->nested.cached_shadow_vmcs12; in get_shadow_vmcs12()
84 return vmx->nested.current_vmptr != -1ull || in vmx_has_valid_vmcs12()
92 return vmx->nested.vpid02 ? vmx->nested.vpid02 : vmx->vpid; in nested_get_vpid02()
125 return vmx_misc_cr3_count(to_vmx(vcpu)->nested.msrs.misc_low); in nested_cpu_vmx_misc_cr3_count()
135 return to_vmx(vcpu)->nested.msrs.misc_low & in nested_cpu_has_vmwrite_any_field()
141 return to_vmx(vcpu)->nested.msrs.misc_low & VMX_MISC_ZERO_LEN_INS; in nested_cpu_has_zero_length_injection()
146 return to_vmx(vcpu)->nested.msrs.procbased_ctls_high & in nested_cpu_supports_monitor_trap_flag()
152 return to_vmx(vcpu)->nested.msrs.secondary_ctls_high & in nested_cpu_has_vmx_shadow_vmcs()
283 u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0; in nested_guest_cr0_valid()
[all …]
H A Dvmx.c127 static bool __read_mostly nested = 1; variable
128 module_param(nested, bool, 0444);
1263 if (vmx->nested.need_vmcs12_to_shadow_sync) in vmx_prepare_switch_to_guest()
1749 vmx->nested.mtf_pending = true; in vmx_update_emulated_instruction()
1752 vmx->nested.mtf_pending = false; in vmx_update_emulated_instruction()
1948 if (!nested) in vmx_get_feature_msr()
1950 return vmx_get_vmx_msr(&vmcs_config.nested, msr, data); in vmx_get_feature_msr()
2035 if (vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index, in vmx_get_msr()
2247 ((vmx->nested.msrs.entry_ctls_high & VM_ENTRY_LOAD_BNDCFGS) || in vmx_set_msr()
2248 (vmx->nested.msrs.exit_ctls_high & VM_EXIT_CLEAR_BNDCFGS))) in vmx_set_msr()
[all …]
/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/rust/pin-init/internal/src/
H A Dzeroable.rs34 let mut nested = 0; in parse_zeroable_derive_input() localVariable
38 TokenTree::Punct(p) if nested == 0 && p.as_char() == ',' => { in parse_zeroable_derive_input()
47 TokenTree::Punct(p) if nested == 0 && p.as_char() == '\'' => { in parse_zeroable_derive_input()
51 TokenTree::Punct(p) if nested == 0 && p.as_char() == ':' => { in parse_zeroable_derive_input()
59 nested += 1; in parse_zeroable_derive_input()
63 assert!(nested > 0); in parse_zeroable_derive_input()
64 nested -= 1; in parse_zeroable_derive_input()
70 assert_eq!(nested, 0); in parse_zeroable_derive_input()
/linux/Documentation/networking/
H A Dethtool-netlink.rst53 Each request or reply message contains a nested attribute with common header.
96 type is used. For arbitrary length bitmaps, ethtool netlink uses a nested
116 Compact form: nested (bitset) attribute contents:
141 Bit-by-bit form: nested (bitset) attribute contents:
148 | ``ETHTOOL_A_BITSET_BITS`` | nested | array of bits |
150 | | ``ETHTOOL_A_BITSET_BITS_BIT+`` | nested | one bit |
348 | ``ETHTOOL_A_STRSET_HEADER`` | nested | request header |
350 | ``ETHTOOL_A_STRSET_STRINGSETS`` | nested | string set to request |
352 | | ``ETHTOOL_A_STRINGSETS_STRINGSET+`` | nested | one string set |
360 | ``ETHTOOL_A_STRSET_HEADER`` | nested | reply header |
[all …]
/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()
H A Depoll-wait.c105 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()
465 if (nested) in bench_epoll_wait()
470 printinfo("Nesting level(s): %d\n", nested); in bench_epoll_wait()
/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()
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()
/linux/arch/riscv/kernel/
H A Dkernel_mode_vector.c190 #define riscv_v_start_kernel_context(nested) (-ENOENT) argument
209 bool nested = false; in kernel_vector_begin() local
216 if (riscv_v_start_kernel_context(&nested)) { in kernel_vector_begin()
221 if (!nested) in kernel_vector_begin()
/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/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/arch/arm64/kvm/
H A DMakefile20 arch_timer.o trng.o vmid.o emulate-nested.o nested.o at.o \
26 vgic/vgic-its.o vgic/vgic-debug.o vgic/vgic-v3-nested.o \
/linux/arch/powerpc/kvm/
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/dev-tools/
H A Dktap.rst16 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/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/tools/net/ynl/pyynl/
H A Dynl_gen_c.py66 nested = attr['nested-attributes']
68 nested = attr['sub-message']
70 nested = None
72 if nested:
73 self.nested_attrs = nested
955 self.nested = type_list is None
961 if self.nested and space_name in family.consts:
1326 nested = spec['nested-attributes']
1328 nested = spec.sub_message
1333 if self.pure_nested_structs[nested].recursive:
[all …]
/linux/tools/accounting/
H A Ddelaytop.c478 struct nlattr *nested; in fetch_and_fill_task_info() local
503 nested = (struct nlattr *) NLA_DATA(na); in fetch_and_fill_task_info()
506 if (nested->nla_type == TASKSTATS_TYPE_STATS) { in fetch_and_fill_task_info()
507 memcpy(&stats, NLA_DATA(nested), sizeof(stats)); in fetch_and_fill_task_info()
534 nested_len -= NLA_ALIGN(nested->nla_len); in fetch_and_fill_task_info()
535 nested = NLA_NEXT(nested); in fetch_and_fill_task_info()
/linux/arch/x86/kvm/
H A DMakefile18 vmx/nested.o vmx/posted_intr.o vmx/main.o
24 kvm-amd-y += svm/svm.o svm/vmenter.o svm/pmu.o svm/nested.o svm/avic.o
/linux/scripts/coccinelle/misc/
H A Dirqf_oneshot.cocci106 …ING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is nested IRQ)"
112 …ING: Threaded IRQ with no primary handler requested without IRQF_ONESHOT (unless it is nested IRQ)"

123456