From d401b7aed83af96fa0e68f46b15446838f6f5e0f Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Thu, 29 May 2025 14:45:58 +0900 Subject: migration/postcopy: Replace QemuSemaphore with QemuEvent thread_sync_sem is an one-shot event so it can be converted into QemuEvent, which is more lightweight. Signed-off-by: Akihiko Odaki Reviewed-by: Fabiano Rosas Link: https://lore.kernel.org/r/20250529-event-v5-9-53b285203794@daynix.com Signed-off-by: Paolo Bonzini --- migration/savevm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'migration/savevm.c') diff --git a/migration/savevm.c b/migration/savevm.c index 006514c3e3..52105dd2f1 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -2078,7 +2078,7 @@ static void *postcopy_ram_listen_thread(void *opaque) migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE, MIGRATION_STATUS_POSTCOPY_ACTIVE); - qemu_sem_post(&mis->thread_sync_sem); + qemu_event_set(&mis->thread_sync_event); trace_postcopy_ram_listen_thread_start(); rcu_register_thread(); -- cgit 1.4.1