]> git.proxmox.com Git - mirror_qemu.git/blobdiff - vl.c
migration/postcopy: simplify calculation of run_start and fixup_start_addr
[mirror_qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index 53335a54704ac1d2e17b36626ad6a8b4649295cf..b426b3213461210565bd1db15a0c89d71e9fea7c 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1550,7 +1550,7 @@ void qemu_system_reset(ShutdownCause reason)
     } else {
         qemu_devices_reset();
     }
-    if (reason != SHUTDOWN_CAUSE_SUBSYSTEM_RESET) {
+    if (reason && reason != SHUTDOWN_CAUSE_SUBSYSTEM_RESET) {
         qapi_event_send_reset(shutdown_caused_by_guest(reason), reason);
     }
     cpu_synchronize_all_post_reset();