From: Paolo Bonzini Date: Sat, 12 Mar 2011 16:43:58 +0000 (+0100) Subject: exit round-robin vcpu loop if cpu->stopped is true X-Git-Tag: v0.15.0-rc0~715 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=df646dfd56332a5313feac75d6d168e4c78cf404;p=users%2Fdwmw2%2Fqemu.git exit round-robin vcpu loop if cpu->stopped is true Sometimes vcpus are stopped directly without going through ->stop = 1. Exit the VCPU execution loop in this case as well. Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- diff --git a/cpus.c b/cpus.c index c5743c4bd3..785a104b60 100644 --- a/cpus.c +++ b/cpus.c @@ -1098,7 +1098,7 @@ bool cpu_exec_all(void) cpu_handle_debug_exception(env); break; } - } else if (env->stop) { + } else if (env->stop || env->stopped) { break; } }