mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: pass MigrationState to migrate_init()
Let the callers take the object, then pass it to migrate_init(). Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20180208103132.28452-12-peterx@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
d6208e35e4
commit
3e0c8050eb
3 changed files with 7 additions and 7 deletions
|
@ -1257,8 +1257,11 @@ void qemu_savevm_state_cleanup(void)
|
|||
static int qemu_savevm_state(QEMUFile *f, Error **errp)
|
||||
{
|
||||
int ret;
|
||||
MigrationState *ms = migrate_init();
|
||||
MigrationState *ms = migrate_get_current();
|
||||
MigrationStatus status;
|
||||
|
||||
migrate_init(ms);
|
||||
|
||||
ms->to_dst_file = f;
|
||||
|
||||
if (migration_is_blocked(errp)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue