* KVM CPU Numbering
[not found] <AANLkTinP1uY_bdLpZZ_ziJdpG3Ku+koGukMZ0V1xkhWL@mail.gmail.com>
@ 2010-10-01 11:23 ` Yushu Yao
2010-10-03 8:45 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Yushu Yao @ 2010-10-01 11:23 UTC (permalink / raw)
To: kvm
Hi Experts,
Question:
IN Qemu Monitor if i type "info cpus" the shown cpu list like:
QEMU 0.12.5 monitor - type 'help' for more information
(qemu) info cpus
* CPU #0: pc=0x00000000fffffff0 thread_id=11170
CPU #1: pc=0x00000000fffffff0 (halted) thread_id=11171
CPU #2: pc=0x00000000fffffff0 (halted) thread_id=11172
CPU #3: pc=0x00000000fffffff0 (halted) thread_id=11173
CPU #4: pc=0x00000000fffffff0 (halted) thread_id=11174
CPU #5: pc=0x00000000fffffff0 (halted) thread_id=11175
CPU #6: pc=0x00000000fffffff0 (halted) thread_id=11176
CPU #7: pc=0x00000000fffffff0 (halted) thread_id=11177
Does these #0, #1, ... map to the numbering in /proc/cpuinfo of the
guest? (processor : xxx)
I am asking this because I'd like to pin the cores on a
hyper-threading host. In the guest I'm using -smp
8,cores=4,threads=2,sockets=1.
Only if I know which thread_id corresponds to which core in the guest,
can I pin the cores correctly.
Thanks a lot!
-Yushu
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: KVM CPU Numbering
2010-10-01 11:23 ` KVM CPU Numbering Yushu Yao
@ 2010-10-03 8:45 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2010-10-03 8:45 UTC (permalink / raw)
To: Yushu Yao; +Cc: kvm
On 10/01/2010 01:23 PM, Yushu Yao wrote:
> Hi Experts,
>
> Question:
>
> IN Qemu Monitor if i type "info cpus" the shown cpu list like:
>
> QEMU 0.12.5 monitor - type 'help' for more information
> (qemu) info cpus
> * CPU #0: pc=0x00000000fffffff0 thread_id=11170
> CPU #1: pc=0x00000000fffffff0 (halted) thread_id=11171
> CPU #2: pc=0x00000000fffffff0 (halted) thread_id=11172
> CPU #3: pc=0x00000000fffffff0 (halted) thread_id=11173
> CPU #4: pc=0x00000000fffffff0 (halted) thread_id=11174
> CPU #5: pc=0x00000000fffffff0 (halted) thread_id=11175
> CPU #6: pc=0x00000000fffffff0 (halted) thread_id=11176
> CPU #7: pc=0x00000000fffffff0 (halted) thread_id=11177
>
> Does these #0, #1, ... map to the numbering in /proc/cpuinfo of the
> guest? (processor : xxx)
The map to the guest's APIC ID of those processors (also visible in
/proc/cpuinfo, under the 'initial apicid' field).
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-03 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTinP1uY_bdLpZZ_ziJdpG3Ku+koGukMZ0V1xkhWL@mail.gmail.com>
2010-10-01 11:23 ` KVM CPU Numbering Yushu Yao
2010-10-03 8:45 ` Avi Kivity
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.