summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorzhanghailiang2015-12-16 12:47:34 +0100
committerAmit Shah2016-01-13 11:31:24 +0100
commit93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b (patch)
tree99f06844d6347340468e7024299a1a5613bd3e6e /include/migration
parentmigration: Export migrate_set_state() (diff)
downloadqemu-93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b.tar.gz
qemu-93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b.tar.xz
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')
-rw-r--r--include/migration/migration.h1
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;
};