Skip to contentSkip to conversation

migration: Fix extra cleanup at postcopy listen

PATCH In review Fabiano Rosas 2 participants 3 messages Nov 25, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 migration: Fix extra cleanup at postcopy listen

After fixing the loadvm cleanup race the qemu_loadvm_state_cleanup() is now being called twice in the postcopy listen thread.

Fixes 4ce5622908 ("migration/multifd: Fix rb->receivedmap cleanup race")
---
 migration/savevm.c | 1 -
 1 file changed, 1 deletion(-)
migration/savevm.c +0 -1
index f4e4876f72..98821c8120 100644
@@ -2057,7 +2057,6 @@ static void *postcopy_ram_listen_thread(void *opaque)
      * got a bad migration state).
      */
     migration_incoming_state_destroy();
-    qemu_loadvm_state_cleanup();
 
     rcu_unregister_thread();
     mis->have_listen_thread = false;
Signature · 1 line
2.35.3
#1 lore raw
Quoted 5 lines · Fabiano Rosas

After fixing the loadvm cleanup race the qemu_loadvm_state_cleanup() is now being called twice in the postcopy listen thread.

Fixes 4ce5622908 ("migration/multifd: Fix rb->receivedmap cleanup race")

This is so far harmless, right? I think we can still queue this for 9.2, but I'd just like to double check..

Quoted 19 lines
---
 migration/savevm.c | 1 -
 1 file changed, 1 deletion(-)
migration/savevm.c +0 -1
index f4e4876f72..98821c8120 100644
@@ -2057,7 +2057,6 @@ static void *postcopy_ram_listen_thread(void *opaque)
      * got a bad migration state).
      */
     migration_incoming_state_destroy();
-    qemu_loadvm_state_cleanup();
 
     rcu_unregister_thread();
     mis->have_listen_thread = false;
Signature · 1 line
2.35.3
Signature · 1 line
Peter Xu
#2 lore raw
Quoted 10 lines · Peter Xu
Quoted 5 lines · Fabiano Rosas

After fixing the loadvm cleanup race the qemu_loadvm_state_cleanup() is now being called twice in the postcopy listen thread.

Fixes 4ce5622908 ("migration/multifd: Fix rb->receivedmap cleanup race")

This is so far harmless, right? I think we can still queue this for 9.2, but I'd just like to double check..

I believe so, yes.

Quoted 19 lines
Quoted 19 lines
---
 migration/savevm.c | 1 -
 1 file changed, 1 deletion(-)
migration/savevm.c +0 -1
index f4e4876f72..98821c8120 100644
@@ -2057,7 +2057,6 @@ static void *postcopy_ram_listen_thread(void *opaque)
      * got a bad migration state).
      */
     migration_incoming_state_destroy();
-    qemu_loadvm_state_cleanup();
 
     rcu_unregister_thread();
     mis->have_listen_thread = false;
Signature · 1 line
2.35.3