Thank you very much. I've find the generation of thread in qemu, following your advice.
qemu_init_vcpu() --> qemu_kvm_start_vcpu() [cpus.c] puck 于 2013/3/13 6:26, Laszlo Ersek 写道: > On 03/12/13 10:34, 解壁伟 wrote: >> Hi there: >> >> I've read this an article discribe the thread model in Qemu. >> http://blog.vmsplice.net/2011/03/qemu-internals-overall-architecture-and.html >> Is there really one thread per vcpu in qemu? >> >> When I run the qemu using "-smp 16", I can see only two threads using >> "ps -xH". > What ps is that? I'd try ps -efL. > >> So I want to know that if qemu excuting the vcpu in one thread per vcpu way? >> >> or, qemu simply excuting all the vcpus in one thread? >> >> How can I trace the generation of the vcpu thread? > qemu_init_vcpu() --> qemu_kvm_start_vcpu() [cpus.c] > >