]> git.proxmox.com Git - mirror_qemu.git/blobdiff - replay/replay.c
shutdown: Add source information to SHUTDOWN and RESET
[mirror_qemu.git] / replay / replay.c
index bf94e812611ddbd4cf1ef91a2610eba6fd7a138c..ff58a5adf905f9052ceac58507c62b6f98fb42e1 100644 (file)
@@ -51,8 +51,8 @@ bool replay_next_event_is(int event)
         switch (replay_state.data_kind) {
         case EVENT_SHUTDOWN ... EVENT_SHUTDOWN_LAST:
             replay_finish_event();
-            /* TODO - pass replay_state.data_kind - EVENT_SHUTDOWN as cause */
-            qemu_system_shutdown_request();
+            qemu_system_shutdown_request(replay_state.data_kind -
+                                         EVENT_SHUTDOWN);
             break;
         default:
             /* clock, time_t, checkpoint and other events */