]> git.proxmox.com Git - mirror_qemu.git/blobdiff - replay/replay.c
migration/postcopy: reduce one operation to calculate fixup_start_addr
[mirror_qemu.git] / replay / replay.c
index 379b51ab46f13e354e3d1479c7bed471b3a8ae4f..8b172b2d1bee57a0ae533b4fcc856b471655fb9d 100644 (file)
@@ -214,7 +214,14 @@ bool replay_checkpoint(ReplayCheckpoint checkpoint)
         /* This checkpoint belongs to several threads.
            Processing events from different threads is
            non-deterministic */
-        if (checkpoint != CHECKPOINT_CLOCK_WARP_START) {
+        if (checkpoint != CHECKPOINT_CLOCK_WARP_START
+            /* FIXME: this is temporary fix, other checkpoints
+                      may also be invoked from the different threads someday.
+                      Asynchronous event processing should be refactored
+                      to create additional replay event kind which is
+                      nailed to the one of the threads and which processes
+                      the event queue. */
+            && checkpoint != CHECKPOINT_CLOCK_VIRTUAL) {
             replay_save_events(checkpoint);
         }
         res = true;