migration: Add state records for migration incoming
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Wed, 16 Dec 2015 11:47:34 +0000 (11:47 +0000)
committerAmit Shah <amit.shah@redhat.com>
Wed, 13 Jan 2016 10:31:24 +0000 (16:01 +0530)
commit93d7af6ff0243f8a9843a3e8a9362d64c9ab4d4b
tree99f06844d6347340468e7024299a1a5613bd3e6e
parent48781e5bf26a285f43b9c328b668021d28d2e690
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>
include/migration/migration.h
migration/migration.c