Lines Matching refs:threads
85 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local
140 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
152 width = MIN(0xF, log2(threads * cores)); in x86_emulate_cpuid()
153 logical_cpus = MIN(0xFF, threads * cores - 1); in x86_emulate_cpuid()
238 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
242 logical_cpus = threads; in x86_emulate_cpuid()
247 logical_cpus = threads; in x86_emulate_cpuid()
252 logical_cpus = threads * cores; in x86_emulate_cpuid()
257 logical_cpus = sockets * threads * cores; in x86_emulate_cpuid()
286 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
289 threads = MIN(0xFF, threads - 1); in x86_emulate_cpuid()
290 regs[1] = (threads << 8) | in x86_emulate_cpuid()
291 (vcpu_id >> log2(threads + 1)); in x86_emulate_cpuid()
386 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
388 logical_cpus = threads * cores; in x86_emulate_cpuid()
398 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
409 logical_cpus = threads; in x86_emulate_cpuid()
488 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid()
491 logical_cpus = threads; in x86_emulate_cpuid()
498 logical_cpus = threads * cores; in x86_emulate_cpuid()