xref: /openbmc/qemu/migration/threadinfo.h (revision c36dd41b)
1 /*
2  *  Migration Threads info
3  *
4  *  Copyright (c) 2022 HUAWEI TECHNOLOGIES CO., LTD.
5  *
6  *  Authors:
7  *  Jiang Jiacheng <jiangjiacheng@huawei.com>
8  *
9  *  This work is licensed under the terms of the GNU GPL, version 2 or later.
10  *  See the COPYING file in the top-level directory.
11  */
12 
13 #include "qapi/error.h"
14 #include "qapi/qapi-commands-migration.h"
15 
16 typedef struct MigrationThread MigrationThread;
17 
18 struct MigrationThread {
19     const char *name; /* the name of migration thread */
20     int thread_id; /* ID of the underlying host thread */
21     QLIST_ENTRY(MigrationThread) node;
22 };
23 
24 MigrationThread *migration_threads_add(const char *name, int thread_id);
25 void migration_threads_remove(MigrationThread *info);
26