4 * Copyright IBM, Corp. 2008
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #ifndef QEMU_MIGRATION_H
15 #define QEMU_MIGRATION_H
17 #define MIG_STATE_ERROR -1
18 #define MIG_STATE_COMPLETED 0
19 #define MIG_STATE_CANCELLED 1
20 #define MIG_STATE_ACTIVE 2
22 typedef struct MigrationState MigrationState
;
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
);
32 void qemu_start_incoming_migration(const char *uri
);
34 void do_migrate(int detach
, const char *uri
);
36 void do_migrate_cancel(void);
38 void do_migrate_set_speed(const char *value
);
40 void do_info_migrate(void);
42 int tcp_start_incoming_migration(const char *host_port
);
44 MigrationState
*tcp_start_outgoing_migration(const char *host_port
,
45 int64_t bandwidth_limit
,