migration_completion: Take current state
commite0b266f01dd21748c12f35e18e6f300035f2f336
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 5 Nov 2015 18:11:02 +0000 (5 18:11 +0000)
committerJuan Quintela <quintela@redhat.com>
Tue, 10 Nov 2015 14:00:27 +0000 (10 15:00 +0100)
treeede6e70d462196e8488f7028eb06dc5aac190421
parentf3f491fcd6dd594ba695b7da5ecbdacb4e84b364
migration_completion: Take current state

Soon we'll be in either ACTIVE or POSTCOPY_ACTIVE when we
complete migration, and we need to know which we expect to be
in to change state safely.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/migration.h
include/migration/postcopy-ram.h
include/qemu/typedefs.h
migration/migration.c
migration/postcopy-ram.c
migration/ram.c
migration/savevm.c
trace-events