summary refs log tree commit diff stats
path: root/migration/migration.h
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2025-05-29 14:45:58 +0900
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-06 14:32:55 +0200
commitd401b7aed83af96fa0e68f46b15446838f6f5e0f (patch)
tree243fa53680d4e20feac358c8ff34636ec4b214d5 /migration/migration.h
parentda926a8b9dd67be3432c525a6db998141be444e2 (diff)
downloadfocaccia-qemu-d401b7aed83af96fa0e68f46b15446838f6f5e0f.tar.gz
focaccia-qemu-d401b7aed83af96fa0e68f46b15446838f6f5e0f.zip
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 <akihiko.odaki@daynix.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20250529-event-v5-9-53b285203794@daynix.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r--migration/migration.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/migration.h b/migration/migration.h
index aaec471c00..739289de93 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -98,9 +98,9 @@ struct MigrationIncomingState {
     void (*transport_cleanup)(void *data);
     /*
      * Used to sync thread creations.  Note that we can't create threads in
-     * parallel with this sem.
+     * parallel with this event.
      */
-    QemuSemaphore  thread_sync_sem;
+    QemuEvent  thread_sync_event;
     /*
      * Free at the start of the main state load, set as the main thread finishes
      * loading state.