diff mbox

qemu-kvm: Process exit requests in kvm loop

Message ID 4BDFE8C7.4040802@siemens.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka May 4, 2010, 9:28 a.m. UTC
None
diff mbox

Patch

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();