migration: query-migrationthreads enhancements and cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | migration: Unify names of migration src main threadmigration/ migration/ | +5 | 0 replies | |
| 2/7 | migration: Put thread names together with macrosmigration/ migration/ migration/ +4 more | +30 | 0 replies | |
| 3/7 | migration: Remove thread_id in migration_threads_add()migration/ migration/ migration/ +1 more | +6 | 0 replies | |
| 4/7 | migration: Simplify migration-threads APImigration/ migration/ migration/ +1 more | +20 | 0 replies | |
| 5/7 | migration: Add all threads with QMP query-migrationthreadsmigration/ migration/ migration/ +6 more | +40 | 0 replies | |
| 6/7 | migration: Remove MigrationThread and threadinfo.hmigration/ migration/ migration/ +1 more | +25 | 0 replies | |
| 7/7 | hmp: Add "info migrationthreads"hmp-commands-info.hx include/ migration/ | +39 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] migration: query-migrationthreads enhancements and cleanups
Prasad reported a misalignment issue with query-migrationthreads v.s. the recently migration thread name changes. So I prepared patch 1, which will make the main thread on src be named the same way reported either in pthread or QMP query-migrationthreads API.
Then I found quite something missing around query-migrationthreads. E.g., it so far only accounts multifd sender threads, while it ignored too many other kinds of migration threads (either postcopy ones, destination multifd threads, temporary threads etc.). It means even if an admin can get TIDs on src QEMU and does pinning (assuming that was the goal of the original API), it won't be able to do the same for dest QEMUs, which seems to lose its purpose.
HMP is also missing, I added it too, as thread IDs can definitely be good candidates during debugging. If we have QMP ready, it sounds like it should naturally fit the HMP one too.
I did some cleanups here and there all around. Feel free to have a look, thanks.
CI: https://gitlab.com/peterx/qemu/-/pipelines/1475958754
Peter Xu (7):
migration: Unify names of migration src main thread
migration: Put thread names together with macros
migration: Remove thread_id in migration_threads_add()
migration: Simplify migration-threads API
migration: Add all threads with QMP query-migrationthreads
migration: Remove MigrationThread and threadinfo.h
hmp: Add "info migrationthreads"
include/monitor/hmp.h | 1 + migration/migration.h | 17 ++++++++++ migration/threadinfo.h | 25 -------------- migration/colo.c | 10 ++++-- migration/dirtyrate.c | 13 ++++++-- migration/migration-hmp-cmds.c | 25 ++++++++++++++ migration/migration.c | 19 ++++++----- migration/multifd.c | 18 ++++++---- migration/postcopy-ram.c | 16 ++++++--- migration/savevm.c | 13 +++++--- migration/threadinfo.c | 61 ++++++++++++++++++++-------------- hmp-commands-info.hx | 13 ++++++++ 12 files changed, 150 insertions(+), 81 deletions(-) delete mode 100644 migration/threadinfo.h
Signature · 1 line
2.45.0