From: Marcelo Tosatti <[email protected]> Otherwise qemu-kvm iothread never sleeps on select().
Reported-by: "David S. Ahern" <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]> diff --git a/qemu-kvm.c b/qemu-kvm.c index 714a592..cc5b352 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()) { diff --git a/qemu-timer.c b/qemu-timer.c index bdc8206..6021ad8 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -182,6 +182,8 @@ static int64_t cpu_get_clock(void) } } +/* FIXME: qemu-kvm hack */ +#define CONFIG_IOTHREAD 1 #ifndef CONFIG_IOTHREAD static int64_t qemu_icount_delta(void) { -- 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
