]> git.proxmox.com Git - qemu.git/commitdiff
iothread stops the vcpu thread via IPI
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Mar 2011 16:44:04 +0000 (17:44 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Mar 2011 14:44:22 +0000 (14:44 +0000)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpus.c

diff --git a/cpus.c b/cpus.c
index 430518441dfdcaeac72acff9b78afe151a5073be..32e93527e4df89cd7eb9d5cd2624114f1d8485cc 100644 (file)
--- 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);