From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFXdR-0006BA-E3 for qemu-devel@nongnu.org; Tue, 12 Mar 2013 18:26:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFXcN-0000Hu-CJ for qemu-devel@nongnu.org; Tue, 12 Mar 2013 18:25:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFXcN-0000HR-4O for qemu-devel@nongnu.org; Tue, 12 Mar 2013 18:24:23 -0400 Message-ID: <513FAB7F.3040000@redhat.com> Date: Tue, 12 Mar 2013 23:26:07 +0100 From: Laszlo Ersek MIME-Version: 1.0 References: <513EF6A0.4000601@ict.ac.cn> In-Reply-To: <513EF6A0.4000601@ict.ac.cn> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] =?gb2312?b?QWJvdXQgdGhlIFRocmVhZCBtb2RlbCBpbiBRZW11?= =?gb2312?b?ob4gSXMgaXQgb25lIHRocmVhZCBwZXIgdmNwdT+hvw==?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?GB2312?B?veKx2s6w?= Cc: qemu-devel@nongnu.org On 03/12/13 10:34, =BD=E2=B1=DA=CE=B0 wrote: > Hi there: >=20 > I've read this an article discribe the thread model in Qemu. > http://blog.vmsplice.net/2011/03/qemu-internals-overall-architecture-an= d.html > Is there really one thread per vcpu in qemu? >=20 > 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. >=20 > So I want to know that if qemu excuting the vcpu in one thread per vcpu= way? >=20 > or, qemu simply excuting all the vcpus in one thread? >=20 > How can I trace the generation of the vcpu thread? qemu_init_vcpu() --> qemu_kvm_start_vcpu() [cpus.c]