2 * Migration Threads info
4 * Copyright (c) 2022 HUAWEI TECHNOLOGIES CO., LTD.
7 * Jiang Jiacheng <jiangjiacheng@huawei.com>
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.
13 #include "qemu/queue.h"
14 #include "qemu/osdep.h"
15 #include "qapi/error.h"
16 #include "qapi/qapi-commands-migration.h"
18 typedef struct MigrationThread MigrationThread
;
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
;
26 MigrationThread
*MigrationThreadAdd(const char *name
, int thread_id
);
28 void MigrationThreadDel(MigrationThread
*info
);