From df646dfd56332a5313feac75d6d168e4c78cf404 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 12 Mar 2011 17:43:58 +0100 Subject: [PATCH] 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 --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }