diff mbox series

[Bug,1774677] Re: -icount increases boot time by >10x

Message ID 153113727103.18448.9241465897870365878.malone@chaenomeles.canonical.com
State New
Headers show
Series [Bug,1774677] Re: -icount increases boot time by >10x | expand

Commit Message

Pavel Dovgalyuk July 9, 2018, 11:54 a.m. UTC
Yes, I tried to revert (with some updates to the current code base) and
the bug was fixed:
diff mbox series

Patch

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);
     }