From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFi3m-0003gj-Ve for qemu-devel@nongnu.org; Wed, 13 Mar 2013 05:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFi3i-00063P-P8 for qemu-devel@nongnu.org; Wed, 13 Mar 2013 05:33:22 -0400 Received: from smtp23.cstnet.cn ([2001:cc0:2fff:7::23]:43832 helo=cstnet.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFi3i-00062r-41 for qemu-devel@nongnu.org; Wed, 13 Mar 2013 05:33:18 -0400 Message-ID: <51403FFE.8000208@ict.ac.cn> Date: Wed, 13 Mar 2013 16:59:42 +0800 From: =?GB2312?B?veKx2s6w?= MIME-Version: 1.0 References: <513EF6A0.4000601@ict.ac.cn> <513FAB7F.3040000@redhat.com> In-Reply-To: <513FAB7F.3040000@redhat.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] =?gb2312?b?QWJvdXQgdGhlIFRocmVhZCBtb2RlbCBpbiBRZW11?= =?gb2312?b?ob4gSXMgaXQgb25lIHRocmVhZCBwZXIgdmNwdT+hvw==?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: qemu-devel@nongnu.org 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] > >