summary refs log tree commit diff stats
path: root/include/exec/tb-flush.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-09-23 10:59:07 -0700
committerRichard Henderson <richard.henderson@linaro.org>2025-09-24 10:29:43 -0700
commita9519a46154105713c3f2d3039b40b205ac35e56 (patch)
treed2151d2dd9d95b85e262a8e553b25ef89be9e766 /include/exec/tb-flush.h
parent430014bee7a6c26a70e9f3854428843d5918cdf5 (diff)
downloadfocaccia-qemu-a9519a46154105713c3f2d3039b40b205ac35e56.tar.gz
focaccia-qemu-a9519a46154105713c3f2d3039b40b205ac35e56.zip
accel/tcg: Create queue_tb_flush from tb_flush
Rename the function and remove the path which
performs the flush immediately.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to '')
-rw-r--r--include/exec/tb-flush.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/exec/tb-flush.h b/include/exec/tb-flush.h
index 090ffc8818..e971d4ba6d 100644
--- a/include/exec/tb-flush.h
+++ b/include/exec/tb-flush.h
@@ -24,19 +24,14 @@
 void tb_flush__exclusive_or_serial(void);
 
 /**
- * tb_flush() - flush all translation blocks
- * @cs: CPUState (must be valid, but treated as anonymous pointer)
+ * queue_tb_flush() - add flush to the cpu work queue
+ * @cs: CPUState
  *
- * Used to flush all the translation blocks in the system. Sometimes
- * it is simpler to flush everything than work out which individual
- * translations are now invalid and ensure they are not called
- * anymore.
- *
- * tb_flush() takes care of running the flush in an exclusive context
- * if it is not already running in one. This means no guest code will
- * run until this complete.
+ * Flush all translation blocks the next time @cs processes the work queue.
+ * This should generally be followed by cpu_loop_exit(), so that the work
+ * queue is processed promptly.
  */
-void tb_flush(CPUState *cs);
+void queue_tb_flush(CPUState *cs);
 
 void tcg_flush_jmp_cache(CPUState *cs);