Re: [Qemu-devel] Round robin of multi-vcpu in qemu

2013-04-22 Thread Wei-Ren Chen
> I've examined the alarm timmer, this timer is used to interrupt the > execution of VCPUs to handle interruptions. IIRC, alarm timer will interrupt VCPU to execute the next one. You can check where QEMU register the alarm timer, and see how it works. Regards, chenwj -- Wei-Ren Chen (陳韋任) Com

[Qemu-devel] Round robin of multi-vcpu in qemu

2013-04-15 Thread 解壁伟
Hi there: I'm studying the execution details of multi-vcpu in TCG mode. The vcpus in TCG mode are executed one by one in a sequencial way. I read the function [tcg_exec_all] in Qemu 1.3.0 as bellow, but the implementation is not as I expected. [tcg_exec_all] will finally call [cpu_exec] to excu