]> git.proxmox.com Git - qemu.git/blame - migration.h
target-alpha: fix decoding of CVTST /S
[qemu.git] / migration.h
CommitLineData
5bb7910a
AL
1/*
2 * QEMU live migration
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
11 *
12 */
13
14#ifndef QEMU_MIGRATION_H
15#define QEMU_MIGRATION_H
16
17#define MIG_STATE_ERROR -1
18#define MIG_STATE_COMPLETED 0
19#define MIG_STATE_CANCELLED 1
20#define MIG_STATE_ACTIVE 2
21
22typedef struct MigrationState MigrationState;
23
24struct MigrationState
25{
26 /* FIXME: add more accessors to print migration info */
27 void (*cancel)(MigrationState *s);
28 int (*get_status)(MigrationState *s);
29 void (*release)(MigrationState *s);
30};
31
32void qemu_start_incoming_migration(const char *uri);
33
34void do_migrate(int detach, const char *uri);
35
36void do_migrate_cancel(void);
37
38void do_migrate_set_speed(const char *value);
39
40void do_info_migrate(void);
41
34c9dd8e
AL
42int tcp_start_incoming_migration(const char *host_port);
43
44MigrationState *tcp_start_outgoing_migration(const char *host_port,
45 int64_t bandwidth_limit,
46 int detach);
47
5bb7910a
AL
48#endif
49