xref: /openbmc/qemu/migration/threadinfo.h (revision 919a0423)
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 "qemu/queue.h"
14 #include "qemu/osdep.h"
15 #include "qapi/error.h"
16 #include "qapi/qapi-commands-migration.h"
17 
18 typedef struct MigrationThread MigrationThread;
19 
20 struct MigrationThread {
21     const char *name; /* the name of migration thread */
22     int thread_id; /* ID of the underlying host thread */
23     QLIST_ENTRY(MigrationThread) node;
24 };
25 
26 MigrationThread *MigrationThreadAdd(const char *name, int thread_id);
27 
28 void MigrationThreadDel(MigrationThread *info);
29