Fix interrupt exclusion via SSTEP_NOIRQ
[qemu/mini2440.git] / migration.h
blob9947f6a45f2aa178cbe41b11a6f4637a3345ccfe
1 /*
2 * QEMU live migration
4 * Copyright IBM, Corp. 2008
6 * Authors:
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;
24 struct 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,
46 int detach);
48 #endif