From 93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b Mon Sep 17 00:00:00 2001 From: zhanghailiang Date: Wed, 16 Dec 2015 11:47:34 +0000 Subject: 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 dgilbert: Fixed early free of MigraitonIncomingState Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela Reviewed-by: Amit Shah Message-Id: <1450266458-3178-3-git-send-email-dgilbert@redhat.com> Signed-off-by: Amit Shah --- include/migration/migration.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/migration') 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; }; -- cgit v1.1