[Qemu-devel] icount strange behavior

2009-11-05 Thread Tommy Huang
Hi, My guest system is 2 cpu smp environment and use icount=0 to measure the total instructions.I called cpu_get_icount() when the cpu switches in vl.c Sometimes the return value of cpu_get_icount() increased a lot (> 1 million) but the cpu actually is in halted state.Normally, the return value

[Qemu-devel] CPU switch timing question

2009-10-20 Thread Tommy Huang
Hi, Suppose I use two cores, smp environment.I am wondering when QEMU switches CPUs and the time when the interrupt is raised.I've observed that every time cpu_interrupt is executed, there will be a cpu switch.CPU switch means the current running vCPU will stop and the other vCPU will run, sinc