Change qemu_cond_wait to qemu_cond_wait_bql when waiting on the bql.
Signed-off-by: tahsina13 <tahsinahmed217@gmail.com>
---
system/cpus.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/system/cpus.c b/system/cpus.c
index bded87feb1..33b33bd4e1 100644
--- a/system/cpus.c
+++ b/system/cpus.c
@@ -469,7 +469,7 @@ void qemu_process_cpu_events(CPUState *cpu)
slept = true;
qemu_plugin_vcpu_idle_cb(cpu);
}
- qemu_cond_wait(cpu->halt_cond, &bql);
+ qemu_cond_wait_bql(cpu->halt_cond);
}
if (slept) {
qemu_plugin_vcpu_resume_cb(cpu);
@@ -654,7 +654,7 @@ void pause_all_vcpus(void)
replay_mutex_unlock();
while (!all_vcpus_paused()) {
- qemu_cond_wait(&qemu_pause_cond, &bql);
+ qemu_cond_wait_bql(&qemu_pause_cond);
/* FIXME: is this needed? */
CPU_FOREACH(cpu) {
qemu_cpu_kick(cpu);
@@ -726,7 +726,7 @@ void qemu_init_vcpu(CPUState *cpu)
cpus_accel->create_vcpu_thread(cpu);
while (!cpu->created) {
- qemu_cond_wait(&qemu_cpu_cond, &bql);
+ qemu_cond_wait_bql(&qemu_cpu_cond);
}
}
---
base-commit: 405c32d2b18a683ba36301351af75125d9afda08
change-id: 20260602-qemu_cond_wait_bql-3909c5e27244
Best regards,
--
tahsina13 <tahsinahmed217@gmail.com>