summary refs log tree commit diff stats
path: root/accel/dummy-cpus.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-08-11 09:52:46 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2025-09-17 19:00:56 +0200
commitd5e33b5f8f5a787bc4bb38bd0b9a8c3e3a0aa9f0 (patch)
tree3407645edce0806c0c480b1c721859ca6d39745f /accel/dummy-cpus.c
parent9a191d3782d707062c42b9fc9f22d9f55d4ed375 (diff)
downloadfocaccia-qemu-d5e33b5f8f5a787bc4bb38bd0b9a8c3e3a0aa9f0.tar.gz
focaccia-qemu-d5e33b5f8f5a787bc4bb38bd0b9a8c3e3a0aa9f0.zip
accel: make all calls to qemu_process_cpu_events look the same
There is no reason for some accelerators to use qemu_process_cpu_events_common
(which is separated from qemu_process_cpu_events() specifically for round
robin TCG).  They can also check for events directly on the first pass through
the loop, instead of setting cpu->exit_request to true.

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 'accel/dummy-cpus.c')
-rw-r--r--accel/dummy-cpus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/dummy-cpus.c b/accel/dummy-cpus.c
index 225a47c31f..5752f6302c 100644
--- a/accel/dummy-cpus.c
+++ b/accel/dummy-cpus.c
@@ -43,6 +43,7 @@ static void *dummy_cpu_thread_fn(void *arg)
     qemu_guest_random_seed_thread_part2(cpu->random_seed);
 
     do {
+        qemu_process_cpu_events(cpu);
         bql_unlock();
 #ifndef _WIN32
         do {
@@ -57,7 +58,6 @@ static void *dummy_cpu_thread_fn(void *arg)
         qemu_sem_wait(&cpu->sem);
 #endif
         bql_lock();
-        qemu_process_cpu_events(cpu);
     } while (!cpu->unplug);
 
     bql_unlock();