提交 df646dfd 编写于 作者: P Paolo Bonzini 提交者: Blue Swirl

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: NPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 94ad5b00
...@@ -1098,7 +1098,7 @@ bool cpu_exec_all(void) ...@@ -1098,7 +1098,7 @@ bool cpu_exec_all(void)
cpu_handle_debug_exception(env); cpu_handle_debug_exception(env);
break; break;
} }
} else if (env->stop) { } else if (env->stop || env->stopped) {
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册