From: Jan Kiszka Date: Tue, 1 Feb 2011 21:15:45 +0000 (+0100) Subject: Trigger exit from cpu_exec_all on pending IO events X-Git-Tag: TizenStudio_2.0_p2.3~3372^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66cc71e2ce96c406acffbe5d5e4636c299a1cef6;p=sdk%2Femulator%2Fqemu.git Trigger exit from cpu_exec_all on pending IO events Except for timer events, we currently do not leave the loop over all VCPUs if an IO event was filed. That may cause unexpected IO latencies under !CONFIG_IOTHREAD in SMP scenarios. Fix it by setting the global exit_request which breaks the loop. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- diff --git a/cpus.c b/cpus.c index f8a88e3..0abc009 100644 --- a/cpus.c +++ b/cpus.c @@ -307,6 +307,7 @@ void qemu_notify_event(void) if (next_cpu && env != next_cpu) { cpu_exit(next_cpu); } + exit_request = 1; } void qemu_mutex_lock_iothread(void) {}