Searched refs:topo_ids (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/include/hw/i386/ |
H A D | topology.h | 129 const X86CPUTopoIDs *topo_ids) in x86_apicid_from_topo_ids() argument 131 return (topo_ids->pkg_id << apicid_pkg_offset(topo_info)) | in x86_apicid_from_topo_ids() 132 (topo_ids->die_id << apicid_die_offset(topo_info)) | in x86_apicid_from_topo_ids() 133 (topo_ids->module_id << apicid_module_offset(topo_info)) | in x86_apicid_from_topo_ids() 134 (topo_ids->core_id << apicid_core_offset(topo_info)) | in x86_apicid_from_topo_ids() 135 topo_ids->smt_id; in x86_apicid_from_topo_ids() 144 X86CPUTopoIDs *topo_ids) in x86_topo_ids_from_idx() argument 151 topo_ids->pkg_id = cpu_index / (nr_dies * nr_modules * in x86_topo_ids_from_idx() 153 topo_ids->die_id = cpu_index / (nr_modules * nr_cores * in x86_topo_ids_from_idx() 155 topo_ids->module_id = cpu_index / (nr_cores * nr_threads) % in x86_topo_ids_from_idx() [all …]
|
/openbmc/qemu/hw/i386/ |
H A D | x86-common.c | 246 X86CPUTopoIDs topo_ids; in x86_cpu_pre_plug() local 346 topo_ids.pkg_id = cpu->socket_id; in x86_cpu_pre_plug() 347 topo_ids.die_id = cpu->die_id; in x86_cpu_pre_plug() 348 topo_ids.module_id = cpu->module_id; in x86_cpu_pre_plug() 349 topo_ids.core_id = cpu->core_id; in x86_cpu_pre_plug() 350 topo_ids.smt_id = cpu->thread_id; in x86_cpu_pre_plug() 351 cpu->apic_id = x86_apicid_from_topo_ids(&topo_info, &topo_ids); in x86_cpu_pre_plug() 356 x86_topo_ids_from_apicid(cpu->apic_id, &topo_info, &topo_ids); in x86_cpu_pre_plug() 361 topo_ids.pkg_id, topo_ids.die_id, topo_ids.module_id, in x86_cpu_pre_plug() 362 topo_ids.core_id, topo_ids.smt_id, cpu->apic_id, in x86_cpu_pre_plug() [all …]
|
H A D | x86.c | 89 X86CPUTopoIDs topo_ids; in x86_get_default_cpu_node_id() local 97 &topo_info, &topo_ids); in x86_get_default_cpu_node_id() 98 return topo_ids.pkg_id % ms->numa_state->num_nodes; in x86_get_default_cpu_node_id() 124 X86CPUTopoIDs topo_ids; in x86_possible_cpu_arch_ids() local 131 &topo_info, &topo_ids); in x86_possible_cpu_arch_ids() 133 ms->possible_cpus->cpus[i].props.socket_id = topo_ids.pkg_id; in x86_possible_cpu_arch_ids() 136 ms->possible_cpus->cpus[i].props.die_id = topo_ids.die_id; in x86_possible_cpu_arch_ids() 140 ms->possible_cpus->cpus[i].props.module_id = topo_ids.module_id; in x86_possible_cpu_arch_ids() 143 ms->possible_cpus->cpus[i].props.core_id = topo_ids.core_id; in x86_possible_cpu_arch_ids() 145 ms->possible_cpus->cpus[i].props.thread_id = topo_ids.smt_id; in x86_possible_cpu_arch_ids()
|
/openbmc/qemu/target/i386/kvm/ |
H A D | kvm.c | 2720 X86CPUTopoIDs topo_ids; in kvm_msr_energy_thread() local 2869 &vmsr->guest_topo_info, &topo_ids); in kvm_msr_energy_thread() 2870 thd_stat[j].vpkg_id = topo_ids.pkg_id; in kvm_msr_energy_thread()
|
/openbmc/qemu/target/i386/ |
H A D | cpu.c | 515 X86CPUTopoIDs topo_ids; in encode_topo_cpuid8000001e() local 517 x86_topo_ids_from_apicid(cpu->apic_id, topo_info, &topo_ids); in encode_topo_cpuid8000001e() 535 *ebx = ((topo_info->threads_per_core - 1) << 8) | (topo_ids.core_id & 0xFF); in encode_topo_cpuid8000001e()
|