aboutsummaryrefslogtreecommitdiff
path: root/migration/threadinfo.h
blob: 4d69423c0a45e99a98748a3587baf07f76600c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 *  Migration Threads info
 *
 *  Copyright (c) 2022 HUAWEI TECHNOLOGIES CO., LTD.
 *
 *  Authors:
 *  Jiang Jiacheng <jiangjiacheng@huawei.com>
 *
 *  This work is licensed under the terms of the GNU GPL, version 2 or later.
 *  See the COPYING file in the top-level directory.
 */

#include "qemu/queue.h"
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qapi/qapi-commands-migration.h"

typedef struct MigrationThread MigrationThread;

struct MigrationThread {
    const char *name; /* the name of migration thread */
    int thread_id; /* ID of the underlying host thread */
    QLIST_ENTRY(MigrationThread) node;
};

MigrationThread *MigrationThreadAdd(const char *name, int thread_id);

void MigrationThreadDel(MigrationThread *info);