From: Jan Kiszka <[email protected]>

This unbreaks the monitor quit command for qemu-kvm.

Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 91f0222..43d599d 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -2047,6 +2047,9 @@ int kvm_main_loop(void)
             vm_stop(EXCP_DEBUG);
             kvm_debug_cpu_requested = NULL;
         }
+        if (qemu_exit_requested()) {
+            exit(0);
+        }
     }
 
     pause_all_threads();
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to