mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
migration: Introduce MIG_STATE_SETUP
Use MIG_STATE_ACTIVE only when migration has really started. Use this new state to setup migration parameters. Change defines for an anonymous struct. Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
07af445291
commit
d5934dde1c
2 changed files with 12 additions and 5 deletions
11
migration.h
11
migration.h
|
@ -18,10 +18,13 @@
|
|||
#include "qemu-common.h"
|
||||
#include "notify.h"
|
||||
|
||||
#define MIG_STATE_ERROR -1
|
||||
#define MIG_STATE_COMPLETED 0
|
||||
#define MIG_STATE_CANCELLED 1
|
||||
#define MIG_STATE_ACTIVE 2
|
||||
enum {
|
||||
MIG_STATE_ERROR,
|
||||
MIG_STATE_SETUP,
|
||||
MIG_STATE_CANCELLED,
|
||||
MIG_STATE_ACTIVE,
|
||||
MIG_STATE_COMPLETED,
|
||||
};
|
||||
|
||||
typedef struct MigrationState MigrationState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue