From d6f4ade214a9f74dca9495b83a24ff9c113e4f9a Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 10 Mar 2010 11:38:54 +0100 Subject: disentangle tcg and deadline calculation Just tell main_loop_wait whether to be blocking or nonblocking, so that there is no need to call qemu_cpus_have_work from the timer subsystem. Instead, tcg_cpu_exec can say "we want the main loop not to block because we have stuff to do". Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysemu.h') diff --git a/sysemu.h b/sysemu.h index 8a9c630ebd..525efd13cb 100644 --- a/sysemu.h +++ b/sysemu.h @@ -64,7 +64,7 @@ void cpu_synchronize_all_post_init(void); void qemu_announce_self(void); -void main_loop_wait(int timeout); +void main_loop_wait(int nonblocking); int qemu_savevm_state_begin(Monitor *mon, QEMUFile *f, int blk_enable, int shared); -- cgit v1.2.3-55-g7522