On 23/9/25 04:39, Richard Henderson wrote:
Expose a routine to be called when no cpus are running.
Simplify the do_tb_flush run_on_cpu callback, because
that is explicitly called with start_exclusive; there
is no need for the mmap_lock as well.

Reviewed-by: Pierrick Bouvier <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
---
  include/exec/tb-flush.h | 13 +++++++++++++
  accel/tcg/tb-maint.c    | 33 ++++++++++++++++++++-------------
  2 files changed, 33 insertions(+), 13 deletions(-)


diff --git a/accel/tcg/tb-maint.c b/accel/tcg/tb-maint.c
index 0048316f99..71216fa75e 100644
--- a/accel/tcg/tb-maint.c
+++ b/accel/tcg/tb-maint.c
@@ -36,6 +36,9 @@
  #include "internal-common.h"
  #ifdef CONFIG_USER_ONLY
  #include "user/page-protection.h"
+#define runstate_is_running()  true

Hmm, acceptable.

+#else
+#include "system/runstate.h"
  #endif
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>


Reply via email to