Home
last modified time | relevance | path

Searched refs:possible_cpus (Results 1 – 18 of 18) sorted by relevance

/qemu/hw/riscv/
H A Dnuma.c202 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()
238 ms->possible_cpus->len = max_cpus; in riscv_numa_possible_cpu_arch_ids()
239 for (n = 0; n < ms->possible_cpus->len; n++) { in riscv_numa_possible_cpu_arch_ids()
240 ms->possible_cpus->cpus[n].type = ms->cpu_type; in riscv_numa_possible_cpu_arch_ids()
241 ms->possible_cpus->cpus[n].arch_id = n; in riscv_numa_possible_cpu_arch_ids()
243 ms->possible_cpus->cpus[n].props.core_id = n; in riscv_numa_possible_cpu_arch_ids()
[all …]
/qemu/hw/i386/
H A Dx86.c83 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()
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()
119 ms->possible_cpus->len = max_cpus; in x86_possible_cpu_arch_ids()
123 for (i = 0; i < ms->possible_cpus->len; i++) { in x86_possible_cpu_arch_ids()
127 ms->possible_cpus->cpus[i].vcpus_count = 1; in x86_possible_cpu_arch_ids()
128 ms->possible_cpus->cpus[i].arch_id = in x86_possible_cpu_arch_ids()
[all …]
H A Dx86-common.c72 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 Dfw_cfg.c71 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()
/qemu/hw/arm/
H A Dsbsa-ref.c719 const CPUArchIdList *possible_cpus; in sbsa_ref_init() local
762 for (n = 0; n < possible_cpus->len; n++) { 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()
842 return ms->possible_cpus; in sbsa_ref_possible_cpu_arch_ids()
847 ms->possible_cpus->len = max_cpus; in sbsa_ref_possible_cpu_arch_ids()
848 for (n = 0; n < ms->possible_cpus->len; n++) { in sbsa_ref_possible_cpu_arch_ids()
850 ms->possible_cpus->cpus[n].arch_id = in sbsa_ref_possible_cpu_arch_ids()
855 return ms->possible_cpus; in sbsa_ref_possible_cpu_arch_ids()
864 assert(cpu_index < possible_cpus->len); in sbsa_ref_cpu_index_to_props()
[all …]
H A Dvirt.c2099 const CPUArchIdList *possible_cpus; in machvirt_init() local
2225 assert(possible_cpus->len == max_cpus); in machvirt_init()
2226 for (n = 0; n < possible_cpus->len; n++) { in machvirt_init()
2765 assert(cpu_index < possible_cpus->len); in virt_cpu_index_to_props()
2766 return possible_cpus->cpus[cpu_index].props; in virt_cpu_index_to_props()
2783 if (ms->possible_cpus) { in virt_possible_cpu_arch_ids()
2785 return ms->possible_cpus; in virt_possible_cpu_arch_ids()
2790 ms->possible_cpus->len = max_cpus; in virt_possible_cpu_arch_ids()
2791 for (n = 0; n < ms->possible_cpus->len; n++) { in virt_possible_cpu_arch_ids()
2793 ms->possible_cpus->cpus[n].arch_id = in virt_possible_cpu_arch_ids()
[all …]
/qemu/hw/loongarch/
H A Dvirt.c1146 const CPUArchIdList *possible_cpus; in virt_init() local
1167 for (i = 0; i < possible_cpus->len; i++) { in virt_init()
1170 machine->possible_cpus->cpus[i].cpu = cpu; in virt_init()
1391 if (ms->possible_cpus) { in virt_possible_cpu_arch_ids()
1393 return ms->possible_cpus; in virt_possible_cpu_arch_ids()
1398 ms->possible_cpus->len = max_cpus; in virt_possible_cpu_arch_ids()
1399 for (n = 0; n < ms->possible_cpus->len; n++) { in virt_possible_cpu_arch_ids()
1401 ms->possible_cpus->cpus[n].arch_id = n; in virt_possible_cpu_arch_ids()
1412 return ms->possible_cpus; in virt_possible_cpu_arch_ids()
1421 assert(cpu_index < possible_cpus->len); in virt_cpu_index_to_props()
[all …]
/qemu/hw/intc/
H A Dloongarch_ipi.c31 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()
/qemu/hw/s390x/
H A Ds390-virtio-ccw.c561 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()
577 ms->possible_cpus->len = max_cpus; in s390_possible_cpu_arch_ids()
578 for (i = 0; i < ms->possible_cpus->len; i++) { in s390_possible_cpu_arch_ids()
581 ms->possible_cpus->cpus[i].type = ms->cpu_type; in s390_possible_cpu_arch_ids()
582 ms->possible_cpus->cpus[i].vcpus_count = 1; in s390_possible_cpu_arch_ids()
583 ms->possible_cpus->cpus[i].arch_id = i; in s390_possible_cpu_arch_ids()
[all …]
H A Dsclp.c87 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 Dcpu-topology.c296 props = &ms->possible_cpus->cpus[cpu->env.core_id].props; in s390_update_cpu_props()
/qemu/hw/core/
H A Dmachine.c719 for (i = 0; i < machine->possible_cpus->len; i++) { in machine_query_hotpluggable_cpus()
728 cpu = machine->possible_cpus->cpus[i].cpu; in machine_query_hotpluggable_cpus()
781 for (i = 0; i < machine->possible_cpus->len; i++) { in machine_set_cpu_numa_node()
782 CPUArchId *slot = &machine->possible_cpus->cpus[i]; in machine_set_cpu_numa_node()
1326 for (i = 0; i < possible_cpus->len; i++) { in machine_numa_finish_cpu_init()
1327 if (possible_cpus->cpus[i].props.has_node_id) { in machine_numa_finish_cpu_init()
1331 default_mapping = (i == possible_cpus->len); in machine_numa_finish_cpu_init()
1333 for (i = 0; i < possible_cpus->len; i++) { in machine_numa_finish_cpu_init()
1377 const CPUArchId *cpus = possible_cpus->cpus; in validate_cpu_cluster_to_numa_boundary()
1389 for (i = 0; i < possible_cpus->len; i++) { in validate_cpu_cluster_to_numa_boundary()
[all …]
/qemu/target/s390x/
H A Dsigp.c441 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()
/qemu/hw/ppc/
H A Dspapr.c2564 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()
4330 return machine->possible_cpus; in spapr_possible_cpu_arch_ids()
4341 machine->possible_cpus->len = spapr_max_cores; in spapr_possible_cpu_arch_ids()
4342 for (i = 0; i < machine->possible_cpus->len; i++) { in spapr_possible_cpu_arch_ids()
[all …]
/qemu/target/s390x/tcg/
H A Dmisc_helper.c301 for (i = 0; i < ms->possible_cpus->len; i++) { in HELPER()
303 if (ms->possible_cpus->cpus[i].cpu) { in HELPER()
/qemu/include/hw/
H A Dboards.h422 CPUArchIdList *possible_cpus; member
/qemu/target/s390x/kvm/
H A Dkvm.c1827 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()
/qemu/hw/acpi/
H A Daml-build.c2140 CPUArchIdList *cpus = ms->possible_cpus; in build_pptt()