Home
last modified time | relevance | path

Searched refs:thread_id (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/qemu/migration/
H A Dthreadinfo.c26 MigrationThread *migration_threads_add(const char *name, int thread_id) in migration_threads_add() argument
30 thread->thread_id = thread_id; in migration_threads_add()
58 info->thread_id = thread->thread_id; in qmp_query_migrationthreads()
H A Dthreadinfo.h20 int thread_id; /* ID of the underlying host thread */ member
24 MigrationThread *migration_threads_add(const char *name, int thread_id);
/openbmc/qemu/tests/tcg/multiarch/
H A Dtb-link.c38 pthread_t thread_id; in main() local
53 tmp = pthread_create(&thread_id, NULL, (void *(*)(void *))buf, &hold); in main()
63 tmp = pthread_join(thread_id, NULL); in main()
/openbmc/qemu/util/
H A Dthread-context.c46 tc->thread_id = qemu_get_thread_id(); in thread_context_run()
116 if (tc->thread_id != -1) { in thread_context_set_cpu_affinity()
145 if (tc->thread_id == -1) { in thread_context_get_cpu_affinity()
216 if (tc->thread_id != -1) { in thread_context_set_node_affinity()
243 uint64_t value = tc->thread_id; in thread_context_get_thread_id()
261 while (tc->thread_id == -1) { in thread_context_instance_complete()
295 tc->thread_id = -1; in thread_context_instance_init()
305 if (tc->thread_id != -1) { in thread_context_instance_finalize()
/openbmc/qemu/target/i386/kvm/
H A Dvmsr_energy.h45 unsigned int thread_id; member
78 unsigned int thread_id,
H A Dvmsr_energy.c245 unsigned int thread_id, in vmsr_read_thread_stat() argument
253 path_name = g_strdup_printf("/proc/%u/task/%d/stat", pid, thread_id); in vmsr_read_thread_stat()
/openbmc/qemu/
H A Diothread.c50 iothread->thread_id = qemu_get_thread_id(); in iothread_run()
106 iothread->thread_id = -1; in iothread_instance_init()
217 while (iothread->thread_id == -1) { in iothread_init()
355 info->thread_id = iothread->thread_id; in query_one_iothread()
/openbmc/qemu/accel/tcg/
H A Dtcg-accel-ops-rr.c194 cpu->thread_id = qemu_get_thread_id(); in rr_cpu_thread_fn()
335 cpu->thread_id = first_cpu->thread_id; in rr_start_vcpu_thread()
H A Dtcg-accel-ops-mttcg.c81 cpu->thread_id = qemu_get_thread_id(); in mttcg_cpu_thread_fn()
/openbmc/qemu/hw/loongarch/
H A Dvirt.c860 topo->thread_id = index % ms->smp.threads; in virt_get_topo_from_index()
892 arch_id = topo->thread_id + topo->core_id * threads; in virt_get_arch_id_from_topo()
935 if ((cpu->thread_id < 0) || (cpu->thread_id >= ms->smp.threads)) { in virt_cpu_pre_plug()
938 cpu->thread_id, ms->smp.threads - 1); in virt_cpu_pre_plug()
958 topo.thread_id = cpu->thread_id; in virt_cpu_pre_plug()
965 cpu->thread_id, cpu_slot->arch_id); in virt_cpu_pre_plug()
973 topo.thread_id = cpu_slot->props.thread_id; in virt_cpu_pre_plug()
976 object_property_set_int(OBJECT(dev), "thread-id", topo.thread_id, NULL); in virt_cpu_pre_plug()
995 cpu->core_id, cpu->thread_id); in virt_cpu_unplug_request()
1175 ms->possible_cpus->cpus[n].props.thread_id = topo.thread_id; in virt_possible_cpu_arch_ids()
/openbmc/qemu/include/qemu/
H A Dthread-context.h33 unsigned int thread_id; member
/openbmc/qemu/gdbstub/
H A Dgdbstub.c240 static CPUState *find_cpu(uint32_t thread_id) in find_cpu() argument
245 if (gdb_get_cpu_index(cpu) == thread_id) { in find_cpu()
931 this_param.thread_id.kind = in cmd_parse_params()
933 &this_param.thread_id.pid, in cmd_parse_params()
934 &this_param.thread_id.tid); in cmd_parse_params()
1059 if (gdb_get_cmd_param(params, 0)->thread_id.kind == GDB_READ_THREAD_ERR) { in handle_thread_alive()
1064 cpu = gdb_get_cpu(gdb_get_cmd_param(params, 0)->thread_id.pid, in handle_thread_alive()
1065 gdb_get_cmd_param(params, 0)->thread_id.tid); in handle_thread_alive()
1113 if (gdb_get_cmd_param(params, 1)->thread_id.kind == GDB_READ_THREAD_ERR) { in handle_set_thread()
1118 if (gdb_get_cmd_param(params, 1)->thread_id.kind != GDB_ONE_THREAD) { in handle_set_thread()
[all …]
/openbmc/qemu/include/system/
H A Diothread.h35 int thread_id; member
/openbmc/qemu/include/gdbstub/
H A Dcommands.h22 } thread_id; member
/openbmc/qemu/tests/functional/
H A Dtest_x86_64_hotplug_cpu.py55 thread_id=0)
/openbmc/qemu/hw/i386/
H A Dx86-common.c345 if (cpu->thread_id < 0) { in x86_cpu_pre_plug()
348 } else if (cpu->thread_id > (ms->smp.threads - 1)) { in x86_cpu_pre_plug()
350 cpu->thread_id, ms->smp.threads - 1); in x86_cpu_pre_plug()
358 topo_ids.smt_id = cpu->thread_id; in x86_cpu_pre_plug()
419 if (cpu->thread_id != -1 && cpu->thread_id != topo_ids.smt_id) { in x86_cpu_pre_plug()
421 " 0x%x (thread-id: %u)", cpu->thread_id, cpu->apic_id, in x86_cpu_pre_plug()
425 cpu->thread_id = topo_ids.smt_id; in x86_cpu_pre_plug()
/openbmc/qemu/target/ppc/
H A Dmisc_helper.c270 uint32_t thread_id = ppc_cpu_tir(ccpu); in helper_load_dpdes() local
273 dpdes |= (0x1 << thread_id); in helper_load_dpdes()
299 uint32_t thread_id = ppc_cpu_tir(ccpu); in helper_store_dpdes() local
301 ppc_set_irq(ccpu, PPC_INTERRUPT_DOORBELL, val & (0x1 << thread_id)); in helper_store_dpdes()
/openbmc/qemu/accel/
H A Ddummy-cpus.c30 cpu->thread_id = qemu_get_thread_id(); in dummy_cpu_thread_fn()
/openbmc/dbus-sensors/include/linux/
H A Dpeci-ioctl.h297 __u8 thread_id; member
320 __u8 thread_id; member
349 __u16 thread_id; member
/openbmc/qemu/target/i386/nvmm/
H A Dnvmm-accel-ops.c31 cpu->thread_id = qemu_get_thread_id(); in qemu_nvmm_cpu_thread_fn()
/openbmc/qemu/target/i386/whpx/
H A Dwhpx-accel-ops.c31 cpu->thread_id = qemu_get_thread_id(); in whpx_cpu_thread_fn()
/openbmc/qemu/accel/kvm/
H A Dkvm-accel-ops.c39 cpu->thread_id = qemu_get_thread_id(); in kvm_vcpu_thread_fn()
/openbmc/qemu/hw/ppc/
H A Dpnv.c1220 uint32_t core_id, uint32_t thread_id, in pnv_get_pir_tir_p8() argument
1224 *pir = (chip->chip_id << 7) | (core_id << 3) | thread_id; in pnv_get_pir_tir_p8()
1227 *tir = thread_id; in pnv_get_pir_tir_p8()
1281 uint32_t core_id, uint32_t thread_id, in pnv_get_pir_tir_p9() argument
1286 thread_id <<= 1; in pnv_get_pir_tir_p9()
1287 thread_id |= core_id & 1; in pnv_get_pir_tir_p9()
1291 *pir = (chip->chip_id << 8) | (core_id << 3) | thread_id; in pnv_get_pir_tir_p9()
1295 *pir = (chip->chip_id << 8) | (core_id << 2) | thread_id; in pnv_get_pir_tir_p9()
1299 *tir = thread_id; in pnv_get_pir_tir_p9()
1315 uint32_t core_id, uint32_t thread_id, in pnv_get_pir_tir_p10() argument
[all …]
/openbmc/qemu/include/hw/ppc/
H A Dpnv_chip.h160 void (*get_pir_tir)(PnvChip *chip, uint32_t core_id, uint32_t thread_id,
/openbmc/qemu/hw/core/
H A Dmachine-qmp-cmds.c49 value->thread_id = cpu->thread_id; in qmp_query_cpus_fast()

12