Message ID | 153113727103.18448.9241465897870365878.malone@chaenomeles.canonical.com |
---|---|
State | New |
Headers | show |
Series | [Bug,1774677] Re: -icount increases boot time by >10x | expand |
diff --git a/cpus.c b/cpus.c index 181ce33..e2fc972 100644 --- a/cpus.c +++ b/cpus.c @@ -1172,6 +1172,13 @@ static void qemu_tcg_rr_wait_io_event(CPUState *cpu) { while (all_cpu_threads_idle()) { stop_tcg_kick_timer(); + + qemu_mutex_unlock_iothread(); + replay_mutex_lock(); + qemu_mutex_lock_iothread(); + qemu_start_warp_timer(); + replay_mutex_unlock(); + qemu_cond_wait(cpu->halt_cond, &qemu_global_mutex); }