]> git.proxmox.com Git - qemu.git/blobdiff - cpus.c
Process pending work while waiting for initial kick-off in TCG mode
[qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index 4e6589457e62914c4a5c091ec0a78736414632bc..4a10775cb6150ab92ad09e97964a9fed90e44859 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -761,6 +761,11 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)
     /* wait for initial kick-off after machine start */
     while (first_cpu->stopped) {
         qemu_cond_wait(tcg_halt_cond, &qemu_global_mutex);
+
+        /* process any pending work */
+        for (env = first_cpu; env != NULL; env = env->next_cpu) {
+            qemu_wait_io_event_common(env);
+        }
     }
 
     while (1) {