From patchwork Mon Feb 21 08:43:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [17/21] iothread stops the vcpu thread via IPI Date: Sun, 20 Feb 2011 22:43:36 -0000 From: Paolo Bonzini X-Patchwork-Id: 83801 Message-Id: <1298277820-8817-18-git-send-email-pbonzini@redhat.com> To: qemu-devel@nongnu.org Signed-off-by: Paolo Bonzini --- cpus.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/cpus.c b/cpus.c index ee9999b..1b6893d 100644 --- a/cpus.c +++ b/cpus.c @@ -1086,9 +1086,11 @@ bool cpu_exec_all(void) qemu_clock_enable(vm_clock, (env->singlestep_enabled & SSTEP_NOTIMER) == 0); +#ifndef CONFIG_IOTHREAD if (qemu_alarm_pending()) { break; } +#endif if (cpu_can_run(env)) { if (kvm_enabled()) { r = kvm_cpu_exec(env);