mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +00:00
migrate_init: Call from savevm
Suspend to file is very much like a migrate, and it makes life easier if we have the Migration state available, so initialise it in the savevm.c code for suspending. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewd-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
committed by
Juan Quintela
parent
a776aa15a7
commit
aefeb18bde
@@ -922,6 +922,8 @@ static int qemu_savevm_state(QEMUFile *f, Error **errp)
|
||||
.blk = 0,
|
||||
.shared = 0
|
||||
};
|
||||
MigrationState *ms = migrate_init(¶ms);
|
||||
ms->file = f;
|
||||
|
||||
if (qemu_savevm_state_blocked(errp)) {
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user