]> git.proxmox.com Git - mirror_qemu.git/commitdiff
replay: bh scheduling fix
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Mon, 14 Mar 2016 07:44:59 +0000 (10:44 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 10:12:15 +0000 (12:12 +0200)
This patch fixes scheduling of bottom halves when record/replay is enabled.
Now BH are not added to replay queue when asynchronous events are disabled.
This may happen in startup and loadvm/savevm phases of execution.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
replay/replay-events.c

index ca940f70e7f45761b23d985c657d1e4d6edea34e..4aa8034d988e98809ce4b912738578b88160dc3c 100644 (file)
@@ -135,7 +135,7 @@ void replay_add_event(ReplayAsyncEventKind event_kind,
 
 void replay_bh_schedule_event(QEMUBH *bh)
 {
-    if (replay_mode != REPLAY_MODE_NONE) {
+    if (replay_mode != REPLAY_MODE_NONE && events_enabled) {
         uint64_t id = replay_get_current_step();
         replay_add_event(REPLAY_ASYNC_EVENT_BH, bh, NULL, id);
     } else {