summary refs log tree commit diff stats
path: root/vl.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-05-24 09:00:24 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-05-24 09:00:24 -0500
commit3853528a913f0807170e2c78b6ea692f8515c859 (patch)
tree9592f6b3f07aabac6bbbaa0f593750e4d3205e9c /vl.c
parent16f04416175844507b20072c422d08286ebbced6 (diff)
parent41836a9f7e4da3a265989d79f35c44f659f7b3cf (diff)
downloadfocaccia-qemu-3853528a913f0807170e2c78b6ea692f8515c859.tar.gz
focaccia-qemu-3853528a913f0807170e2c78b6ea692f8515c859.zip
Merge remote branch 'qmp/for-anthony' into staging
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/vl.c b/vl.c
index d77b47c6f7..8c818f0d24 100644
--- a/vl.c
+++ b/vl.c
@@ -1708,7 +1708,6 @@ static int shutdown_requested;
 static int powerdown_requested;
 int debug_requested;
 int vmstop_requested;
-static int exit_requested;
 
 int qemu_shutdown_requested(void)
 {
@@ -1731,12 +1730,6 @@ int qemu_powerdown_requested(void)
     return r;
 }
 
-int qemu_exit_requested(void)
-{
-    /* just return it, we'll exit() anyway */
-    return exit_requested;
-}
-
 static int qemu_debug_requested(void)
 {
     int r = debug_requested;
@@ -1807,12 +1800,6 @@ void qemu_system_powerdown_request(void)
     qemu_notify_event();
 }
 
-void qemu_system_exit_request(void)
-{
-    exit_requested = 1;
-    qemu_notify_event();
-}
-
 #ifdef _WIN32
 static void host_main_loop_wait(int *timeout)
 {
@@ -1949,8 +1936,6 @@ static int vm_can_run(void)
         return 0;
     if (debug_requested)
         return 0;
-    if (exit_requested)
-        return 0;
     return 1;
 }
 
@@ -2003,9 +1988,6 @@ static void main_loop(void)
         if ((r = qemu_vmstop_requested())) {
             vm_stop(r);
         }
-        if (qemu_exit_requested()) {
-            exit(0);
-        }
     }
     pause_all_vcpus();
 }