| /Linux-v5.4/arch/x86/kvm/vmx/ | 
| D | nested.c | 179 	if (vmx->nested.current_vmptr == -1ull && !vmx->nested.hv_evmcs)  in nested_vmx_failValid()215 	vmx->nested.need_vmcs12_to_shadow_sync = false;  in vmx_disable_shadow_vmcs()
 222 	if (!vmx->nested.hv_evmcs)  in nested_release_evmcs()
 225 	kvm_vcpu_unmap(vcpu, &vmx->nested.hv_evmcs_map, true);  in nested_release_evmcs()
 226 	vmx->nested.hv_evmcs_vmptr = -1ull;  in nested_release_evmcs()
 227 	vmx->nested.hv_evmcs = NULL;  in nested_release_evmcs()
 238 	if (!vmx->nested.vmxon && !vmx->nested.smm.vmxon)  in free_nested()
 243 	vmx->nested.vmxon = false;  in free_nested()
 244 	vmx->nested.smm.vmxon = false;  in free_nested()
 245 	free_vpid(vmx->nested.vpid02);  in free_nested()
 [all …]
 
 | 
| D | nested.h | 39 	return to_vmx(vcpu)->nested.cached_vmcs12;  in get_vmcs12()44 	return to_vmx(vcpu)->nested.cached_shadow_vmcs12;  in get_shadow_vmcs12()
 57 	return is_guest_mode(vcpu) || vmx->nested.current_vmptr != -1ull ||  in vmx_has_valid_vmcs12()
 58 		vmx->nested.hv_evmcs;  in vmx_has_valid_vmcs12()
 118 	return vmx_misc_cr3_count(to_vmx(vcpu)->nested.msrs.misc_low);  in nested_cpu_vmx_misc_cr3_count()
 128 	return to_vmx(vcpu)->nested.msrs.misc_low &  in nested_cpu_has_vmwrite_any_field()
 134 	return to_vmx(vcpu)->nested.msrs.misc_low & VMX_MISC_ZERO_LEN_INS;  in nested_cpu_has_zero_length_injection()
 139 	return to_vmx(vcpu)->nested.msrs.procbased_ctls_high &  in nested_cpu_supports_monitor_trap_flag()
 145 	return to_vmx(vcpu)->nested.msrs.secondary_ctls_high &  in nested_cpu_has_vmx_shadow_vmcs()
 261 	u64 fixed0 = to_vmx(vcpu)->nested.msrs.cr0_fixed0;  in nested_guest_cr0_valid()
 [all …]
 
 | 
| D | evmcs.c | 343        if (vmx->nested.enlightened_vmcs_enabled)  in nested_get_evmcs_version()353 	bool evmcs_already_enabled = vmx->nested.enlightened_vmcs_enabled;  in nested_enable_evmcs()
 355 	vmx->nested.enlightened_vmcs_enabled = true;  in nested_enable_evmcs()
 364 	vmx->nested.msrs.pinbased_ctls_high &= ~EVMCS1_UNSUPPORTED_PINCTRL;  in nested_enable_evmcs()
 365 	vmx->nested.msrs.entry_ctls_high &= ~EVMCS1_UNSUPPORTED_VMENTRY_CTRL;  in nested_enable_evmcs()
 366 	vmx->nested.msrs.exit_ctls_high &= ~EVMCS1_UNSUPPORTED_VMEXIT_CTRL;  in nested_enable_evmcs()
 367 	vmx->nested.msrs.secondary_ctls_high &= ~EVMCS1_UNSUPPORTED_2NDEXEC;  in nested_enable_evmcs()
 368 	vmx->nested.msrs.vmfunc_controls &= ~EVMCS1_UNSUPPORTED_VMFUNC;  in nested_enable_evmcs()
 
 | 
| D | vmx.c | 106 static bool __read_mostly nested = 1;  variable107 module_param(nested, bool, S_IRUGO);
 1735 	return nested && guest_cpuid_has(vcpu, X86_FEATURE_VMX);  in nested_vmx_allowed()
 1750 		if (!nested)  in vmx_get_msr_feature()
 1752 		return vmx_get_vmx_msr(&vmcs_config.nested, msr->index, &msr->data);  in vmx_get_msr_feature()
 1827 		return vmx_get_vmx_msr(&vmx->nested.msrs, msr_info->index,  in vmx_get_msr()
 2094 			vmx->nested.vmxon)  in vmx_set_msr()
 3065 	if (vmx->nested.vmxon && !nested_cr4_valid(vcpu, cr4))  in vmx_set_cr4()
 3770 		WARN_ON_ONCE(!vmx->nested.virtual_apic_map.gfn))  in vmx_guest_apic_has_interrupt()
 3775 	vapic_page = vmx->nested.virtual_apic_map.hva;  in vmx_guest_apic_has_interrupt()
 [all …]
 
 | 
| /Linux-v5.4/tools/perf/bench/ | 
| D | epoll-wait.c | 106 static unsigned int nested = 0;  variable139 …OPT_UINTEGER( 'N', "nested",  &nested,   "Nesting level epoll hierarchy (default is 0, no nesting)…
 247 	if (nested > EPOLL_MAXNESTS)  in nest_epollfd()
 248 		nested = EPOLL_MAXNESTS;  in nest_epollfd()
 250 	epollfdp = calloc(nested, sizeof(*epollfdp));  in nest_epollfd()
 254 	for (i = 0; i < nested; i++) {  in nest_epollfd()
 263 	for (i = nested - 1; i; i--) {  in nest_epollfd()
 319 			if (nested)  in do_threads()
 447 		if (nested)  in bench_epoll_wait()
 452 	printinfo("Nesting level(s): %d\n", nested);  in bench_epoll_wait()
 
 | 
| D | epoll-ctl.c | 58 static unsigned int nested = 0;  variable80 …OPT_UINTEGER( 'N', "nested",  &nested,   "Nesting level epoll hierarchy (default is 0, no nesting)…
 106 	if (nested > EPOLL_MAXNESTS)  in nest_epollfd()
 107 		nested = EPOLL_MAXNESTS;  in nest_epollfd()
 108 	printinfo("Nesting level(s): %d\n", nested);  in nest_epollfd()
 110 	epollfdp = calloc(nested, sizeof(int));  in nest_epollfd()
 114 	for (i = 0; i < nested; i++) {  in nest_epollfd()
 123 	for (i = nested - 1; i; i--) {  in nest_epollfd()
 332 	if (nested)  in bench_epoll_ctl()
 
 | 
| /Linux-v5.4/net/netfilter/ipset/ | 
| D | ip_set_bitmap_gen.h | 95 	struct nlattr *nested;  in mtype_head()  local98 	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()
 
 | 
| D | ip_set_list_set.c | 462 	struct nlattr *nested;  in list_set_head()  local465 	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-v5.4/scripts/coccinelle/locks/ | 
| D | flags.cocci | 2 /// Find nested lock+irqsave functions that use the same flags variables73 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-v5.4/arch/um/os-Linux/ | 
| D | signal.c | 158 		int nested, bail;  in hard_handler()  local174 		nested = pending & 1;  in hard_handler()
 189 		if (!nested)  in hard_handler()
 190 			pending = from_irq_stack(nested);  in hard_handler()
 
 | 
| /Linux-v5.4/Documentation/virt/kvm/ | 
| D | nested-vmx.txt | 13 hypervisors (which use VMX) with their own nested guests. It does so by17 We describe in much greater detail the theory behind the nested VMX feature,
 29 In nested virtualization, we have three levels: The host (KVM), which we call
 30 L0, the guest hypervisor, which we call L1, and its nested guest, which we
 34 Running nested VMX
 37 The nested VMX feature is disabled by default. It can be enabled by giving
 38 the "nested=1" option to the kvm-intel module.
 60 As a VMX implementation, nested VMX presents a VMCS structure to L1.
 
 | 
| /Linux-v5.4/arch/um/kernel/ | 
| D | irq.c | 542 	int nested;  in to_irq_stack()  local564 	nested = (ti->real_thread != NULL);  in to_irq_stack()
 565 	if (!nested) {  in to_irq_stack()
 578 	*mask_out |= mask | nested;  in to_irq_stack()
 582 unsigned long from_irq_stack(int nested)  in from_irq_stack()  argument
 
 | 
| /Linux-v5.4/arch/x86/kvm/ | 
| D | svm.c | 221 	struct nested_state nested;  member356 static int nested = true;  variable
 357 module_param(nested, int, S_IRUGO);
 512 	h = &svm->nested.hsave->control;  in recalc_intercepts()
 513 	g = &svm->nested;  in recalc_intercepts()
 524 		return svm->nested.hsave;  in get_host_vmcb()
 1049 	msrpm = is_guest_mode(vcpu) ? to_svm(vcpu)->nested.msrpm:  in msr_write_intercepted()
 1339 	if (nested) {  in svm_hardware_setup()
 1453 		return svm->nested.hsave->control.tsc_offset;  in svm_read_l1_tsc_offset()
 1466 			       svm->nested.hsave->control.tsc_offset;  in svm_write_l1_tsc_offset()
 [all …]
 
 | 
| /Linux-v5.4/Documentation/x86/ | 
| D | kernel-stacks.rst | 28   hardware interrupt (i.e. not a nested hardware interrupt) then the54 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-v5.4/arch/powerpc/kvm/ | 
| D | book3s_64_mmu_radix.c | 95 	if (vcpu->arch.nested)  in kvmhv_copy_tofrom_guest_radix()96 		lpid = vcpu->arch.nested->shadow_lpid;  in kvmhv_copy_tofrom_guest_radix()
 1198 	struct kvm_nested_guest *nested;  in debugfs_radix_read()  local
 1233 	nested = NULL;  in debugfs_radix_read()
 1239 			if (nested) {  in debugfs_radix_read()
 1240 				kvmhv_put_nested(nested);  in debugfs_radix_read()
 1241 				nested = NULL;  in debugfs_radix_read()
 1252 				nested = kvmhv_get_nested(kvm, p->lpid, false);  in debugfs_radix_read()
 1253 				if (!nested) {  in debugfs_radix_read()
 1257 				pgt = nested->shadow_pgtable;  in debugfs_radix_read()
 [all …]
 
 | 
| /Linux-v5.4/Documentation/filesystems/ | 
| D | ceph.txt | 19  * Recursive accounting (nested files, directories, bytes)52 a snapshot on any subdirectory (and its nested contents) in the
 56 Ceph also provides some recursive accounting on directories for nested
 58 system will reveal the total number of nested regular files and
 59 subdirectories, and a summation of all nested file sizes.  This makes
 125 	the summation of file sizes over all files nested beneath that
 
 | 
| /Linux-v5.4/Documentation/devicetree/bindings/interrupt-controller/ | 
| D | arm,vic.txt | 5 nested or have the outputs wire-OR'd together.20 - interrupts : Interrupt source for parent controllers if the VIC is nested.
 
 | 
| /Linux-v5.4/arch/x86/hyperv/ | 
| D | Makefile | 2 obj-y			:= hv_init.o mmu.o nested.o
 | 
| /Linux-v5.4/tools/perf/scripts/python/Perf-Trace-Util/ | 
| D | Build | 3 …EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs
 | 
| /Linux-v5.4/tools/perf/scripts/perl/Perf-Trace-Util/ | 
| D | Build | 4 CFLAGS_Context.o += -Wno-unused-parameter -Wno-nested-externs -Wno-undef
 | 
| /Linux-v5.4/tools/testing/selftests/kvm/lib/x86_64/ | 
| D | processor.c | 997 		struct kvm_nested_state nested;  member1074 		state->nested.size = sizeof(state->nested_);  in vcpu_save_state()
 1075 		r = ioctl(vcpu->fd, KVM_GET_NESTED_STATE, &state->nested);  in vcpu_save_state()
 1078 		TEST_ASSERT(state->nested.size <= nested_size,  in vcpu_save_state()
 1080 			state->nested.size, nested_size);  in vcpu_save_state()
 1082 		state->nested.size = 0;  in vcpu_save_state()
 1138 	if (state->nested.size) {  in vcpu_load_state()
 1139 		r = ioctl(vcpu->fd, KVM_SET_NESTED_STATE, &state->nested);  in vcpu_load_state()
 
 | 
| /Linux-v5.4/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ | 
| D | init.h | 16 	u32 nested;  member
 | 
| /Linux-v5.4/tools/perf/util/scripting-engines/ | 
| D | Build | 4 …dant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow -Wno-nested-externs -Wno-undef…
 | 
| /Linux-v5.4/Documentation/admin-guide/hw-vuln/ | 
| D | l1tf.rst | 556 When nested virtualization is in use, three operating systems are involved:557 the bare metal hypervisor, the nested hypervisor and the nested virtual
 558 machine.  VMENTER operations from the nested hypervisor into the nested
 562  - Flush the L1D cache on every switch from the nested hypervisor to the
 563    nested virtual machine, so that the nested hypervisor's secrets are not
 564    exposed to the nested virtual machine;
 566  - Flush the L1D cache on every switch from the nested virtual machine to
 567    the nested hypervisor; this is a complex operation, and flushing the L1D
 569    nested virtual machine;
 571  - Instruct the nested hypervisor to not perform any L1D cache flush. This
 
 | 
| /Linux-v5.4/Documentation/trace/ | 
| D | ring-buffer-design.txt | 36 commit_page - a pointer to the page with the last finished non-nested write.679 against nested writers.
 686 page. If this fails, a nested write pushed it forward, the current write
 703                     tail page (moved by nested writer)
 736 But if a nested writer preempts here, it will see that the next
 737 page is a head page, but it is also nested. It will detect that
 738 it is nested and will save that information. The detection is the
 742 The nested writer will set the new head page pointer.
 764 After the nested writer finishes, the outermost writer will convert
 777 It can be even more complex if several nested writes came in and moved
 [all …]
 
 |