qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] spawning and killing threads in qemu


From: 陳韋任
Subject: Re: [Qemu-devel] spawning and killing threads in qemu
Date: Thu, 9 Feb 2012 11:19:53 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Feb 08, 2012 at 09:40:08PM -0500, Xin Tong wrote:
> can you show me where these threads  get created in the qemu code ?

  If you mean vcpu thread, see cpu_x86_init (target-i386/helper.c).
At the end of this function,

CPUX86State *cpu_x86_init(const char *cpu_model)
{
    qemu_init_vcpu(env); <---
 
    return env;
}

Just follow qemu_init_vcpu and you'll see how vcpu thread is spawn.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]