aboutsummaryrefslogtreecommitdiff
path: root/migration/dirtyrate.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-10-11 11:36:52 -0400
committerPeter Xu <peterx@redhat.com>2024-10-31 15:48:18 -0400
commite620b1e4770bc779a6a9467ff753e0acdd4c57f5 (patch)
treec197f21095873034e4762373ae8fc29fe66dc307 /migration/dirtyrate.c
parent6dd4f44c4f6b1046e5ceb593b9ab4f8fbb92f028 (diff)
downloadqemu-e620b1e4770bc779a6a9467ff753e0acdd4c57f5.zip
qemu-e620b1e4770bc779a6a9467ff753e0acdd4c57f5.tar.gz
qemu-e620b1e4770bc779a6a9467ff753e0acdd4c57f5.tar.bz2
migration: Put thread names together with macros
Keep migration thread names together, so it's easier to see a list of all possible migration threads. Still two functional changes below besides the macro defintions: - There's one dirty rate thread that we overlooked before, now we add that too and name it as "mig/dirtyrate" following the old rules. - The old name "mig/src/rp-thr" has "-thr" but it may not be useful if it's a thread name anyway, while "rp" can be slightly hard to read. Taking this chance to rename it to "mig/src/return", hopefully a better name. Reviewed-by: Fabiano Rosas <farosas@suse.de> Acked-by: Hyman Huang <yong.huang@smartx.com> Reviewed-by: Zhang Chen <chen.zhang@intel.com> Link: https://lore.kernel.org/r/20241011153652.517440-1-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/dirtyrate.c')
-rw-r--r--migration/dirtyrate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c
index 233acb0..a74a6ae 100644
--- a/migration/dirtyrate.c
+++ b/migration/dirtyrate.c
@@ -29,6 +29,7 @@
#include "sysemu/runstate.h"
#include "exec/memory.h"
#include "qemu/xxhash.h"
+#include "migration.h"
/*
* total_dirty_pages is procted by BQL and is used
@@ -839,8 +840,9 @@ void qmp_calc_dirty_rate(int64_t calc_time,
init_dirtyrate_stat(config);
- qemu_thread_create(&thread, "get_dirtyrate", get_dirtyrate_thread,
- (void *)&config, QEMU_THREAD_DETACHED);
+ qemu_thread_create(&thread, MIGRATION_THREAD_DIRTY_RATE,
+ get_dirtyrate_thread, (void *)&config,
+ QEMU_THREAD_DETACHED);
}