diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-04-12 10:45:04 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-04-12 10:45:04 -0300 |
commit | a1b705841caa33fca0b95928505c01d5105b706f (patch) | |
tree | 5799627d70e43955d4180e75b6f9dd1202abf439 /qemu-kvm.c | |
parent | 5c781061a45abe1855ad0a95d834336da574703c (diff) |
qemu-kvm: main_loop_wait now takes blocking/nonblocking argument
Otherwise qemu-kvm iothread never sleeps on select().
Reported-by: "David S. Ahern" <daahern@cisco.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm.c')
-rw-r--r-- | qemu-kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-kvm.c b/qemu-kvm.c index 714a59226..cc5b35237 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -2030,7 +2030,7 @@ int kvm_main_loop(void) cpu_single_env = NULL; while (1) { - main_loop_wait(1000); + main_loop_wait(0); if (qemu_shutdown_requested()) { monitor_protocol_event(QEVENT_SHUTDOWN, NULL); if (qemu_no_shutdown()) { |