diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2015-12-16 11:47:34 +0000 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2016-01-13 16:01:24 +0530 |
commit | 93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b (patch) | |
tree | 99f06844d6347340468e7024299a1a5613bd3e6e /include/migration/migration.h | |
parent | 48781e5bf26a285f43b9c328b668021d28d2e690 (diff) | |
download | qemu-93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b.zip |
migration: Add state records for migration incoming
For migration destination, we also need to know its state,
we will use it in COLO.
Here we add a new member 'state' for MigrationIncomingState,
and also use migrate_set_state() to modify its value.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
dgilbert: Fixed early free of MigraitonIncomingState
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <1450266458-3178-3-git-send-email-dgilbert@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'include/migration/migration.h')
-rw-r--r-- | include/migration/migration.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index a64ca7c399..0fc1ffa9a9 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -105,6 +105,7 @@ struct MigrationIncomingState { QemuMutex rp_mutex; /* We send replies from multiple threads */ void *postcopy_tmp_page; + int state; /* See savevm.c */ LoadStateEntry_Head loadvm_handlers; }; |