diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-11 08:28:31 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-17 19:00:55 +0200 |
| commit | 9cf342b491f6872d316b7b0c3cbc0f6157f28797 (patch) | |
| tree | ffd088f3d982db5637de28a149372e8c0bb584a1 /linux-user | |
| parent | f084ff128b6136e1aebfd73e1cf7066a077a79bf (diff) | |
| download | focaccia-qemu-9cf342b491f6872d316b7b0c3cbc0f6157f28797.tar.gz focaccia-qemu-9cf342b491f6872d316b7b0c3cbc0f6157f28797.zip | |
accel/tcg: create a thread-kick function for TCG
Round-robin TCG is calling into cpu_exit() directly. In preparation for making cpu_exit() usable from all accelerators, define a generic thread-kick function for TCG which is used directly in the multi-threaded case, and through CPU_FOREACH in the round-robin case. Use it also for user-mode emulation, and take the occasion to move the implementation to accel/tcg/user-exec.c. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user')
| -rw-r--r-- | linux-user/main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 7b0ccb6fd6..4ddfc9a619 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -189,11 +189,6 @@ bool qemu_cpu_is_self(CPUState *cpu) return thread_cpu == cpu; } -void qemu_cpu_kick(CPUState *cpu) -{ - cpu_exit(cpu); -} - void task_settid(TaskState *ts) { if (ts->ts_tid == 0) { |