diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-01 13:50:04 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-17 19:00:55 +0200 |
| commit | f8217ae54e4c44a7f0d20d56a5368ec1818f1cc2 (patch) | |
| tree | ee2fe1ada00d338c8f5de57263ed0aa03debdeee /cpu-common.c | |
| parent | dcb46ecb2e90d532fcdc04702c92e732a0ef77e8 (diff) | |
| download | focaccia-qemu-f8217ae54e4c44a7f0d20d56a5368ec1818f1cc2.tar.gz focaccia-qemu-f8217ae54e4c44a7f0d20d56a5368ec1818f1cc2.zip | |
cpus: properly kick CPUs out of inner execution loop
Now that cpu_exit() actually kicks all accelerators, use it whenever the message to another thread is processed in qemu_wait_io_event(). Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cpu-common.c')
| -rw-r--r-- | cpu-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu-common.c b/cpu-common.c index ef5757d23b..152661df8e 100644 --- a/cpu-common.c +++ b/cpu-common.c @@ -137,7 +137,8 @@ static void queue_work_on_cpu(CPUState *cpu, struct qemu_work_item *wi) wi->done = false; qemu_mutex_unlock(&cpu->work_mutex); - qemu_cpu_kick(cpu); + /* exit the inner loop and reach qemu_wait_io_event_common(). */ + cpu_exit(cpu); } void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data, |