We need get more migration thread information to support migration pin, especially thread name and its pid. Add an qmp interface to query migration threads information.
v2 of: https://lists.nongnu.org/archive/html/qemu-devel/2023-01/msg04618.html diff to v2: * remove the event that report thread name * modify the qmp interface, now it doesn't need thread name and return with all the migration threads information we saved Jiang Jiacheng (2): migration: Introduce interface query-migrationthreads migration: save/delete migration thread info migration/meson.build | 1 + migration/migration.c | 5 ++++ migration/multifd.c | 5 ++++ migration/threadinfo.c | 54 ++++++++++++++++++++++++++++++++++++++++++ migration/threadinfo.h | 28 ++++++++++++++++++++++ qapi/migration.json | 29 +++++++++++++++++++++++ 6 files changed, 122 insertions(+) create mode 100644 migration/threadinfo.c create mode 100644 migration/threadinfo.h -- 2.33.0