Searched refs:topo_ids (Results 1 – 5 of 5) sorted by relevance
/qemu/include/hw/i386/ |
H A D | topology.h | 130 const X86CPUTopoIDs *topo_ids) in x86_apicid_from_topo_ids() argument 132 return (topo_ids->pkg_id << apicid_pkg_offset(topo_info)) | in x86_apicid_from_topo_ids() 133 (topo_ids->die_id << apicid_die_offset(topo_info)) | in x86_apicid_from_topo_ids() 134 (topo_ids->module_id << apicid_module_offset(topo_info)) | in x86_apicid_from_topo_ids() 135 (topo_ids->core_id << apicid_core_offset(topo_info)) | in x86_apicid_from_topo_ids() 136 topo_ids->smt_id; in x86_apicid_from_topo_ids() 145 X86CPUTopoIDs *topo_ids) in x86_topo_ids_from_idx() argument 152 topo_ids->pkg_id = cpu_index / (nr_dies * nr_modules * in x86_topo_ids_from_idx() 154 topo_ids->die_id = cpu_index / (nr_modules * nr_cores * in x86_topo_ids_from_idx() 156 topo_ids->module_id = cpu_index / (nr_cores * nr_threads) % in x86_topo_ids_from_idx() [all …]
|
/qemu/hw/i386/ |
H A D | x86-common.c | 247 X86CPUTopoIDs topo_ids; in x86_cpu_pre_plug() local 343 topo_ids.pkg_id = cpu->socket_id; in x86_cpu_pre_plug() 344 topo_ids.die_id = cpu->die_id; in x86_cpu_pre_plug() 345 topo_ids.module_id = cpu->module_id; in x86_cpu_pre_plug() 346 topo_ids.core_id = cpu->core_id; in x86_cpu_pre_plug() 347 topo_ids.smt_id = cpu->thread_id; in x86_cpu_pre_plug() 348 cpu->apic_id = x86_apicid_from_topo_ids(topo_info, &topo_ids); in x86_cpu_pre_plug() 353 x86_topo_ids_from_apicid(cpu->apic_id, topo_info, &topo_ids); in x86_cpu_pre_plug() 358 topo_ids.pkg_id, topo_ids.die_id, topo_ids.module_id, in x86_cpu_pre_plug() 359 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()
|
/qemu/target/i386/kvm/ |
H A D | kvm.c | 2740 X86CPUTopoIDs topo_ids; in kvm_msr_energy_thread() local 2889 &vmsr->guest_topo_info, &topo_ids); in kvm_msr_energy_thread() 2890 thd_stat[j].vpkg_id = topo_ids.pkg_id; in kvm_msr_energy_thread()
|
/qemu/target/i386/ |
H A D | cpu.c | 520 X86CPUTopoIDs topo_ids; in encode_topo_cpuid8000001e() local 522 x86_topo_ids_from_apicid(cpu->apic_id, topo_info, &topo_ids); in encode_topo_cpuid8000001e() 540 *ebx = ((topo_info->threads_per_core - 1) << 8) | (topo_ids.core_id & 0xFF); in encode_topo_cpuid8000001e()
|