aboutsummaryrefslogtreecommitdiff
path: root/include/migration
diff options
context:
space:
mode:
authorzhanghailiang <zhang.zhanghailiang@huawei.com>2015-12-16 11:47:34 +0000
committerAmit Shah <amit.shah@redhat.com>2016-01-13 16:01:24 +0530
commit93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b (patch)
tree99f06844d6347340468e7024299a1a5613bd3e6e /include/migration
parent48781e5bf26a285f43b9c328b668021d28d2e690 (diff)
downloadqemu-93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b.zip
qemu-93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b.tar.gz
qemu-93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b.tar.bz2
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 a64ca7c..0fc1ffa 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;
};