/openbmc/linux/arch/x86/kvm/vmx/ |
H A D | nested.c | 302 if (!vmx->nested.vmxon && !vmx->nested.smm.vmxon) in free_nested() 307 vmx->nested.vmxon = false; in free_nested() 1377 if (vmx->nested.vmxon) in vmx_set_vmx_msr() 2027 vmx->nested.hv_evmcs = vmx->nested.hv_evmcs_map.hva; in nested_vmx_handle_enlightened_vmptrld() 2246 if (vmx->nested.dirty_vmcs12 || evmptr_is_valid(vmx->nested.hv_evmcs_vmptr)) in prepare_vmcs02_early() 2541 if (vmx->nested.dirty_vmcs12 || evmptr_is_valid(vmx->nested.hv_evmcs_vmptr)) { in prepare_vmcs02() 3257 vmx->nested.pi_desc = in nested_get_vmcs12_pages() 3994 if (vmx->nested.pi_pending && vmx->nested.pi_desc && in vmx_has_nested_events() 5221 if (vmx->nested.vmxon) in handle_vmxon() 5356 } else if (vmx->nested.hv_evmcs && vmptr == vmx->nested.hv_evmcs_vmptr) { in handle_vmclear() [all …]
|
H 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 …]
|
/openbmc/linux/arch/x86/kvm/svm/ |
H A D | nested.c | 95 svm->nested.ctl.nested_cr3); in nested_svm_init_mmu_context() 135 g = &svm->nested.ctl; in recalc_intercepts() 528 if (!svm->nested.vmcb02.ptr) in nested_vmcb02_compute_g_pat() 545 if (svm->nested.vmcb12_gpa != svm->nested.last_vmcb12_gpa) { in nested_vmcb02_prepare_save() 547 svm->nested.last_vmcb12_gpa = svm->nested.vmcb12_gpa; in nested_vmcb02_prepare_save() 681 svm->nested.ctl.tsc_offset, in nested_vmcb02_prepare_control() 844 if (!svm->nested.hsave_msr) { in nested_svm_vmrun() 985 svm->nested.vmcb12_gpa = 0; in nested_svm_vmexit() 1179 if (svm->nested.initialized) in svm_allocate_nested() 1189 if (!svm->nested.msrpm) in svm_allocate_nested() [all …]
|
H 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()
|
H A D | svm.h | 237 struct svm_nested_state nested; member 448 (svm->nested.ctl.int_ctl & V_GIF_ENABLE_MASK); in nested_vgif_enabled() 457 return svm->nested.vmcb02.ptr; in get_vgif_vmcb() 494 return svm->nested.ctl.nested_ctl & SVM_NESTED_CTL_NP_ENABLE; in nested_npt_enabled() 500 (svm->nested.ctl.int_ctl & V_NMI_ENABLE_MASK); in nested_vnmi_enabled() 573 return is_guest_mode(vcpu) && (svm->nested.ctl.int_ctl & V_INTR_MASKING_MASK); in nested_svm_virtualize_tpr() 578 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_SMI); in nested_exit_on_smi() 583 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_INTR); in nested_exit_on_intr() 588 return vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_NMI); in nested_exit_on_nmi()
|
/openbmc/linux/Documentation/virt/kvm/x86/ |
H 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 …]
|
H A D | index.rst | 16 nested-vmx 17 running-nested-guests
|
H 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.
|
/openbmc/linux/rust/macros/ |
H A D | zeroable.rs | 23 let mut nested = 0; in derive() localVariable 27 TokenTree::Punct(p) if nested == 0 && p.as_char() == ',' => { in derive() 36 TokenTree::Punct(p) if nested == 0 && p.as_char() == '\'' => { in derive() 40 TokenTree::Punct(p) if nested == 0 && p.as_char() == ':' => { in derive() 48 nested += 1; in derive() 52 assert!(nested > 0); in derive() 53 nested -= 1; in derive() 59 assert_eq!(nested, 0); in derive()
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | ethtool.yaml | 53 nested-attributes: bitset-bit 84 nested-attributes: string 98 nested-attributes: strings 113 nested-attributes: header 128 nested-attributes: header 132 nested-attributes: bitset 140 nested-attributes: header 217 nested-attributes: header 255 nested-attributes: header 277 nested-attributes: header [all …]
|
H A D | ovs_flow.yaml | 379 nested-attributes: key-attrs 386 nested-attributes: action-attrs 426 nested-attributes: key-attrs 468 nested-attributes: key-attrs 613 nested-attributes: key-attrs 627 nested-attributes: sample-attrs 654 nested-attributes: key-attrs 665 nested-attributes: ct-attrs 703 nested-attributes: action-attrs 807 nested-attributes: action-attrs [all …]
|
/openbmc/qemu/tests/qapi-schema/ |
H A D | alternate-nested.err | 1 alternate-nested.json: In alternate 'Alt2': 2 alternate-nested.json:4: branch 'nested' cannot use alternate type 'Alt1'
|
H A D | alternate-nested.json | 1 # we reject a nested alternate branch 5 'data': { 'nested': 'Alt1', 'b': 'bool' } }
|
H A D | nested-struct-data-invalid-dict.err | 1 nested-struct-data-invalid-dict.json: In command 'foo': 2 nested-struct-data-invalid-dict.json:3: 'data' member 'a' misses key 'type'
|
H A D | nested-struct-data.err | 1 nested-struct-data.json: In command 'foo': 2 nested-struct-data.json:2: 'data' member 'a' should be a type name or array
|
/openbmc/qemu/tests/unit/ |
H A D | test-nested-aio-poll.c | 28 bool nested; member 50 g_assert(!td->nested); in io_poll_ready() 51 td->nested = true; in io_poll_ready() 59 td->nested = false; in io_poll_ready()
|
/openbmc/linux/Documentation/networking/ |
H 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 916 ``ETHTOOL_A_RINGS_HEADER`` nested reply header [all …]
|
/openbmc/linux/tools/perf/bench/ |
H 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()
|
H 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()
|
/openbmc/linux/net/netfilter/ipset/ |
H A D | ip_set_bitmap_gen.h | 93 struct nlattr *nested; in mtype_head() local 96 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in mtype_head() 97 if (!nested) in mtype_head() 106 nla_nest_end(skb, nested); in mtype_head() 205 struct nlattr *adt, *nested; in mtype_list() local 227 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in mtype_list() 228 if (!nested) { in mtype_list() 241 nla_nest_end(skb, nested); in mtype_list() 251 nla_nest_cancel(skb, nested); in mtype_list()
|
H A D | ip_set_list_set.c | 457 struct nlattr *nested; in list_set_head() local 460 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in list_set_head() 461 if (!nested) in list_set_head() 470 nla_nest_end(skb, nested); in list_set_head() 482 struct nlattr *atd, *nested; in list_set_list() local 500 nested = nla_nest_start(skb, IPSET_ATTR_DATA); in list_set_list() 501 if (!nested) in list_set_list() 508 nla_nest_end(skb, nested); in list_set_list() 518 nla_nest_cancel(skb, nested); in list_set_list()
|
/openbmc/qemu/docs/devel/ |
H A D | nested-papr.txt | 4 This API aims at providing support to enable nested virtualization with 5 KVM on PowerVM. While the existing support for nested KVM on PowerNV was 6 introduced with cap-nested-hv option, however, with a slight design change, 7 to enable this on papr/pseries, a new cap-nested-papr option is added. eg: 9 qemu-system-ppc64 -cpu POWER10 -machine pseries,cap-nested-papr=true ... 25 hypervisor and run nested guests through the use of hypercalls, if the 44 KVM: PPC: Book3S HV: Framework and hcall stubs for nested virtualization 110 docs: powerpc: Document nested KVM on POWER 112 Document support for nested KVM on POWER using the existing API as well
|
/openbmc/linux/scripts/coccinelle/locks/ |
H 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)
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | signal.c | 196 int nested, bail; in hard_handler() local 212 nested = pending & 1; in hard_handler() 227 if (!nested) in hard_handler() 228 pending = from_irq_stack(nested); in hard_handler()
|
/openbmc/linux/arch/powerpc/kvm/ |
H 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()
|