mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06: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:
parent
a776aa15a7
commit
aefeb18bde
4 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue