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