Skip to contentSkip to conversation

qemu-kvm: Process exit requests in kvm loop

PATCH Applied Jan Kiszka 2 participants 2 messages May 4, 2010 – May 5, 2010 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 qemu-kvm: Process exit requests in kvm loop

This unbreaks the monitor quit command for qemu-kvm.

---
 qemu-kvm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
qemu-kvm.c +3 -0
index 91f0222..43d599d 100644
@@ -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();
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

This unbreaks the monitor quit command for qemu-kvm.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function