/openbmc/qemu/hw/riscv/ |
H A D | numa.c | 47 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_first_hartid() 67 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_last_hartid() 122 if (ms->possible_cpus->cpus[i].props.node_id != socket_id) { in riscv_socket_check_hartids() 200 const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(ms); in riscv_numa_cpu_index_to_props() local 202 assert(cpu_index < possible_cpus->len); in riscv_numa_cpu_index_to_props() 203 return possible_cpus->cpus[cpu_index].props; in riscv_numa_cpu_index_to_props() 231 if (ms->possible_cpus) { in riscv_numa_possible_cpu_arch_ids() 232 assert(ms->possible_cpus->len == max_cpus); in riscv_numa_possible_cpu_arch_ids() 233 return ms->possible_cpus; in riscv_numa_possible_cpu_arch_ids() 236 ms->possible_cpus = g_malloc0(sizeof(CPUArchIdList) + in riscv_numa_possible_cpu_arch_ids() [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | x86.c | 81 const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(ms); in x86_cpu_index_to_props() local 83 assert(cpu_index < possible_cpus->len); in x86_cpu_index_to_props() 84 return possible_cpus->cpus[cpu_index].props; in x86_cpu_index_to_props() 95 assert(idx < ms->possible_cpus->len); in x86_get_default_cpu_node_id() 96 x86_topo_ids_from_apicid(ms->possible_cpus->cpus[idx].arch_id, in x86_get_default_cpu_node_id() 108 if (ms->possible_cpus) { in x86_possible_cpu_arch_ids() 113 assert(ms->possible_cpus->len == max_cpus); in x86_possible_cpu_arch_ids() 114 return ms->possible_cpus; in x86_possible_cpu_arch_ids() 117 ms->possible_cpus = g_malloc0(sizeof(CPUArchIdList) + in x86_possible_cpu_arch_ids() 119 ms->possible_cpus->len = max_cpus; in x86_possible_cpu_arch_ids() [all …]
|
H A D | x86-common.c | 72 const CPUArchIdList *possible_cpus; in x86_cpus_init() local 112 possible_cpus = mc->possible_cpu_arch_ids(ms); in x86_cpus_init() 114 x86_cpu_new(x86ms, possible_cpus->cpus[i].arch_id, &error_fatal); in x86_cpus_init() 152 found_cpu = bsearch(&apic_id, ms->possible_cpus->cpus, in x86_find_cpu_slot() 153 ms->possible_cpus->len, sizeof(*ms->possible_cpus->cpus), in x86_find_cpu_slot() 156 *idx = found_cpu - ms->possible_cpus->cpus; in x86_find_cpu_slot() 363 ms->possible_cpus->len - 1); in x86_cpu_pre_plug()
|
H A D | fw_cfg.c | 71 X86CPU *cpu = X86_CPU(ms->possible_cpus->cpus[0].cpu); in fw_cfg_build_smbios() 177 X86CPU *cpu = X86_CPU(ms->possible_cpus->cpus[0].cpu); in fw_cfg_build_feature_control()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | bpf_util.h | 13 int possible_cpus = libbpf_num_possible_cpus(); in bpf_num_possible_cpus() local 15 if (possible_cpus < 0) { in bpf_num_possible_cpus() 17 strerror(-possible_cpus)); in bpf_num_possible_cpus() 20 return possible_cpus; in bpf_num_possible_cpus()
|
/openbmc/qemu/hw/arm/ |
H A D | sbsa-ref.c | 268 if (ms->possible_cpus->cpus[cs->cpu_index].props.has_node_id) { in create_fdt() 270 ms->possible_cpus->cpus[cs->cpu_index].props.node_id); in create_fdt() 719 const CPUArchIdList *possible_cpus; in sbsa_ref_init() local 761 possible_cpus = mc->possible_cpu_arch_ids(machine); in sbsa_ref_init() 762 for (n = 0; n < possible_cpus->len; n++) { in sbsa_ref_init() 770 cpuobj = object_new(possible_cpus->cpus[n].type); in sbsa_ref_init() 772 possible_cpus->cpus[n].arch_id, NULL); in sbsa_ref_init() 777 numa_cpu_pre_plug(&possible_cpus->cpus[cs->cpu_index], DEVICE(cpuobj), in sbsa_ref_init() 840 if (ms->possible_cpus) { in sbsa_ref_possible_cpu_arch_ids() 841 assert(ms->possible_cpus->len == max_cpus); in sbsa_ref_possible_cpu_arch_ids() [all …]
|
H A D | virt.c | 472 if (ms->possible_cpus->cpus[cs->cpu_index].props.has_node_id) { in fdt_add_cpu_nodes() 474 ms->possible_cpus->cpus[cs->cpu_index].props.node_id); in fdt_add_cpu_nodes() 2099 const CPUArchIdList *possible_cpus; in machvirt_init() local 2111 possible_cpus = mc->possible_cpu_arch_ids(machine); in machvirt_init() 2128 cpuobj = object_new(possible_cpus->cpus[0].type); in machvirt_init() 2225 assert(possible_cpus->len == max_cpus); in machvirt_init() 2226 for (n = 0; n < possible_cpus->len; n++) { in machvirt_init() 2234 cpuobj = object_new(possible_cpus->cpus[n].type); in machvirt_init() 2236 possible_cpus->cpus[n].arch_id, NULL); in machvirt_init() 2241 numa_cpu_pre_plug(&possible_cpus->cpus[cs->cpu_index], DEVICE(cpuobj), in machvirt_init() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | loongarch_ipi.c | 31 found_cpu = bsearch(&apic_id, ms->possible_cpus->cpus, in find_cpu_by_archid() 32 ms->possible_cpus->len, in find_cpu_by_archid() 33 sizeof(*ms->possible_cpus->cpus), in find_cpu_by_archid()
|
/openbmc/qemu/hw/loongarch/ |
H A D | virt.c | 385 if (ms->possible_cpus->cpus[cs->cpu_index].props.has_node_id) { in fdt_add_cpu_nodes() 387 ms->possible_cpus->cpus[cs->cpu_index].props.node_id); in fdt_add_cpu_nodes() 1146 const CPUArchIdList *possible_cpus; in virt_init() local 1166 possible_cpus = mc->possible_cpu_arch_ids(machine); in virt_init() 1167 for (i = 0; i < possible_cpus->len; i++) { in virt_init() 1170 machine->possible_cpus->cpus[i].cpu = cpu; in virt_init() 1172 lacpu->phy_id = machine->possible_cpus->cpus[i].arch_id; in virt_init() 1391 if (ms->possible_cpus) { in virt_possible_cpu_arch_ids() 1392 assert(ms->possible_cpus->len == max_cpus); in virt_possible_cpu_arch_ids() 1393 return ms->possible_cpus; in virt_possible_cpu_arch_ids() [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-virtio-ccw.c | 320 g_assert(!ms->possible_cpus->cpus[cpu->env.core_id].cpu); in s390_cpu_plug() 321 ms->possible_cpus->cpus[cpu->env.core_id].cpu = CPU(dev); in s390_cpu_plug() 559 const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(ms); in s390_cpu_index_to_props() local 561 assert(cpu_index < possible_cpus->len); in s390_cpu_index_to_props() 562 return possible_cpus->cpus[cpu_index].props; in s390_cpu_index_to_props() 570 if (ms->possible_cpus) { in s390_possible_cpu_arch_ids() 571 g_assert(ms->possible_cpus && ms->possible_cpus->len == max_cpus); in s390_possible_cpu_arch_ids() 572 return ms->possible_cpus; in s390_possible_cpu_arch_ids() 575 ms->possible_cpus = g_malloc0(sizeof(CPUArchIdList) + in s390_possible_cpu_arch_ids() 577 ms->possible_cpus->len = max_cpus; in s390_possible_cpu_arch_ids() [all …]
|
H A D | sclp.c | 87 for (i = 0, *count = 0; i < ms->possible_cpus->len; i++) { in prepare_cpu_entries() 88 if (!ms->possible_cpus->cpus[i].cpu) { in prepare_cpu_entries() 91 entry[*count].address = ms->possible_cpus->cpus[i].arch_id; in prepare_cpu_entries() 113 int required_len = SCCB_REQ_LEN(ReadInfo, machine->possible_cpus->len); in read_SCP_info() 185 int required_len = SCCB_REQ_LEN(ReadCpuInfo, machine->possible_cpus->len); in sclp_read_cpu_info()
|
H A D | cpu-topology.c | 296 props = &ms->possible_cpus->cpus[cpu->env.core_id].props; in s390_update_cpu_props()
|
/openbmc/qemu/hw/core/ |
H A D | machine.c | 729 for (i = 0; i < machine->possible_cpus->len; i++) { in machine_query_hotpluggable_cpus() 733 cpu_item->type = g_strdup(machine->possible_cpus->cpus[i].type); in machine_query_hotpluggable_cpus() 734 cpu_item->vcpus_count = machine->possible_cpus->cpus[i].vcpus_count; in machine_query_hotpluggable_cpus() 735 cpu_item->props = g_memdup(&machine->possible_cpus->cpus[i].props, in machine_query_hotpluggable_cpus() 738 cpu = machine->possible_cpus->cpus[i].cpu; in machine_query_hotpluggable_cpus() 791 for (i = 0; i < machine->possible_cpus->len; i++) { in machine_set_cpu_numa_node() 792 CPUArchId *slot = &machine->possible_cpus->cpus[i]; in machine_set_cpu_numa_node() 1377 const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(machine); in machine_numa_finish_cpu_init() local 1380 for (i = 0; i < possible_cpus->len; i++) { in machine_numa_finish_cpu_init() 1381 if (possible_cpus->cpus[i].props.has_node_id) { in machine_numa_finish_cpu_init() [all …]
|
/openbmc/linux/Documentation/translations/zh_CN/admin-guide/ |
H A D | cputopology.rst | 86 在本例中,NR_CPUS配置项是128,但内核启动时设置possible_cpus=144。系统中有4个CPU, 95 阅读Documentation/core-api/cpu_hotplug.rst可了解开机参数possible_cpus=NUM,同时还
|
/openbmc/qemu/target/s390x/ |
H A D | sigp.c | 441 g_assert(ms->possible_cpus); in s390_cpu_addr2state() 445 if (cpu_addr >= ms->possible_cpus->len) { in s390_cpu_addr2state() 448 return S390_CPU(ms->possible_cpus->cpus[cpu_addr].cpu); in s390_cpu_addr2state()
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | cputopology.rst | 90 started with possible_cpus=144. There are 4 CPUs in the system and cpu2 100 See Documentation/core-api/cpu_hotplug.rst for the possible_cpus=NUM
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr.c | 2564 if (index >= ms->possible_cpus->len) { in spapr_find_cpu_slot() 2570 return &ms->possible_cpus->cpus[index]; in spapr_find_cpu_slot() 2660 const CPUArchIdList *possible_cpus; in spapr_init_cpus() local 2667 possible_cpus = mc->possible_cpu_arch_ids(machine); in spapr_init_cpus() 2684 boot_cores_nr = possible_cpus->len; in spapr_init_cpus() 2687 for (i = 0; i < possible_cpus->len; i++) { in spapr_init_cpus() 4328 if (machine->possible_cpus) { in spapr_possible_cpu_arch_ids() 4329 assert(machine->possible_cpus->len == spapr_max_cores); in spapr_possible_cpu_arch_ids() 4330 return machine->possible_cpus; in spapr_possible_cpu_arch_ids() 4339 machine->possible_cpus = g_malloc0(sizeof(CPUArchIdList) + in spapr_possible_cpu_arch_ids() [all …]
|
/openbmc/linux/kernel/ |
H A D | padata.c | 1134 unsigned int i, possible_cpus; in padata_init() local 1150 possible_cpus = num_possible_cpus(); in padata_init() 1151 padata_works = kmalloc_array(possible_cpus, sizeof(struct padata_work), in padata_init() 1156 for (i = 0; i < possible_cpus; ++i) in padata_init()
|
/openbmc/linux/Documentation/translations/zh_CN/core-api/ |
H A D | cpu_hotplug.rst | 58 ``possible_cpus=n`` 59 这个选项设置 ``cpu_possible_mask`` 中的 ``possible_cpus`` 位。
|
/openbmc/qemu/target/s390x/tcg/ |
H A D | misc_helper.c | 301 for (i = 0; i < ms->possible_cpus->len; i++) { in HELPER() 303 if (ms->possible_cpus->cpus[i].cpu) { in HELPER()
|
/openbmc/qemu/include/hw/ |
H A D | boards.h | 437 CPUArchIdList *possible_cpus; member
|
/openbmc/linux/Documentation/core-api/ |
H A D | cpu_hotplug.rst | 49 ``possible_cpus=n`` 50 This option sets ``possible_cpus`` bits in ``cpu_possible_mask``.
|
/openbmc/qemu/target/s390x/kvm/ |
H A D | kvm.c | 1827 for (i = 0; i < ms->possible_cpus->len; i++) { in insert_stsi_3_2_2() 1828 if (ms->possible_cpus->cpus[i].cpu) { in insert_stsi_3_2_2()
|
/openbmc/qemu/hw/acpi/ |
H A D | aml-build.c | 2140 CPUArchIdList *cpus = ms->possible_cpus; in build_pptt()
|