Skip to contentSkip to conversation

Change name of live migration thread

PATCH Superseded Pankaj Gupta 5 participants 7 messages Jan 22, 2017 – Jan 23, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change name of live migration thread

Change the name of live migration thread from 'migration' to 'qemu_vm_migration' to identify it clearly. 'migration' is a generic word and kernel also has tasks for process migration with the name 'migration/cpu#'.

---
 migration/migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration/migration.c +1 -1
index f498ab8..6ebd606 100644
@@ -1969,7 +1969,7 @@ void migrate_fd_connect(MigrationState *s)
     }
 
     migrate_compress_threads_create();
-    qemu_thread_create(&s->thread, "migration", migration_thread, s,
+    qemu_thread_create(&s->thread, "qemu_vm_migration", migration_thread, s,
                        QEMU_THREAD_JOINABLE);
     s->migration_thread_running = true;
 }
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Pankaj Gupta

Change the name of live migration thread from 'migration' to 'qemu_vm_migration' to identify it clearly. 'migration' is a generic word and kernel also has tasks for process migration with the name 'migration/cpu#'.

Makes sense.

Amit

Reviewed-by on v1 1/1
#4 lore raw
In reply to Pankaj Gupta
Quoted 6 lines · Pankaj Gupta

Change the name of live migration thread from 'migration' to 'qemu_vm_migration' to identify it clearly. 'migration' is a generic word and kernel also has tasks for process migration with the name 'migration/cpu#'.

Once here, I will change the name of the compression threads.

Thanks, Juan.

#5 lore raw
In reply to Pankaj Gupta
Quoted 15 lines · * Pankaj Gupta ([email protected]) wrote:

Change the name of live migration thread from 'migration' to 'qemu_vm_migration' to identify it clearly. 'migration' is a generic word and kernel also has tasks for process migration with the name 'migration/cpu#'.

---
 migration/migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration/migration.c +0 -0
index f498ab8..6ebd606 100644

migration/migration.c void migrate_fd_connect(MigrationState *s) · line 1973

Quoted 6 lines
migration/migration.c +1 -1
@@ -1969,7 +1969,7 @@ void migrate_fd_connect(MigrationState *s)
     }
 
     migrate_compress_threads_create();
-    qemu_thread_create(&s->thread, "migration", migration_thread, s,
+    qemu_thread_create(&s->thread, "qemu_vm_migration", migration_thread, s,
                        QEMU_THREAD_JOINABLE);

Are you sure that works? For me it doesn't change the name.

There's a maximum length that I think is somewhere around 16 characters and that name is too long.

Changing it to "qemu_migration" seems to work.

Dave

Quoted 5 lines
migration/migration.c +0 -0
     s->migration_thread_running = true;
 }
Signature · 1 line
2.7.4

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#2 lore raw
In reply to Amit Shah
Quoted 9 lines · Amit Shah
Quoted 4 lines · Pankaj Gupta

Change the name of live migration thread from 'migration' to 'qemu_vm_migration' to identify it clearly. 'migration' is a generic word and kernel also has tasks for process migration with the name 'migration/cpu#'.

Makes sense.

It's a bit ugly that no other thread name has qemu in it, and the limit is 15 characters---which is more than "qemu_vm_migration"'s length. So maybe "live_migration" or "migrate" would be better.

Spaces vs. underscores are also inconsistent. A patch to fix that would be helpful!

Paolo

#6 lore raw
In reply to Dr. David Alan Gilbert

Hi Dave,

Quoted 25 lines
Quoted 15 lines

Change the name of live migration thread from 'migration' to 'qemu_vm_migration' to identify it clearly. 'migration' is a generic word and kernel also has tasks for process migration with the name 'migration/cpu#'.

---
 migration/migration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
migration/migration.c +0 -0
index f498ab8..6ebd606 100644

migration/migration.c void migrate_fd_connect(MigrationState *s) · line 1974

Quoted 7 lines
migration/migration.c +1 -1
@@ -1969,7 +1969,7 @@ void migrate_fd_connect(MigrationState *s)
     }
 
     migrate_compress_threads_create();
-    qemu_thread_create(&s->thread, "migration", migration_thread, s,
+    qemu_thread_create(&s->thread, "qemu_vm_migration", migration_thread,
 s,
                        QEMU_THREAD_JOINABLE);

Are you sure that works? For me it doesn't change the name.

Quoted 5 lines

There's a maximum length that I think is somewhere around 16 characters and that
name is too long.

Changing it to "qemu_migration" seems to work.

Thanks for pointing out.
I will send a v2.

Quoted 11 lines

Dave

Quoted 5 lines
migration/migration.c +0 -0
     s->migration_thread_running = true;

}
--
2.7.4

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#3 lore raw
In reply to Paolo Bonzini

Hi Paolo,

Quoted 6 lines
Quoted 6 lines · Pankaj Gupta
Quoted 4 lines

Change the name of live migration thread from 'migration' to 'qemu_vm_migration' to identify it clearly. 'migration' is a generic word and kernel also has tasks for process migration with the name 'migration/cpu#'.

Quoted 7 lines
Quoted 3 lines

Makes sense.

It's a bit ugly that no other thread name has qemu in it, and the limit is 15 characters---which is more than "qemu_vm_migration"'s length. So maybe "live_migration" or "migrate" would be better.

Thanks for the suggestion.
"live_migration" seems like good option.

Quoted 3 lines

Spaces vs. underscores are also inconsistent. A patch to fix that would be helpful!

Sure, will do that.

Quoted 3 lines

Paolo