]>
Commit | Line | Data |
---|---|---|
5bb7910a AL |
1 | /* |
2 | * QEMU live migration | |
3 | * | |
4 | * Copyright IBM, Corp. 2008 | |
5 | * | |
6 | * Authors: | |
7 | * Anthony Liguori <[email protected]> | |
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 | ||
22 | typedef struct MigrationState MigrationState; | |
23 | ||
24 | struct 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 | ||
32 | void qemu_start_incoming_migration(const char *uri); | |
33 | ||
34 | void do_migrate(int detach, const char *uri); | |
35 | ||
36 | void do_migrate_cancel(void); | |
37 | ||
38 | void do_migrate_set_speed(const char *value); | |
39 | ||
40 | void do_info_migrate(void); | |
41 | ||
42 | #endif | |
43 |