Skip to content

Commit

Permalink
Avoid sending vmdescription during postcopy
Browse files Browse the repository at this point in the history
VMDescription is normally sent at the end, after all
of the devices; however that's not the end for postcopy,
so just don't send it when in postcopy.

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>
Signed-off-by: Juan Quintela <quintela@redhat.com>
  • Loading branch information
dagrh authored and Juan Quintela committed Nov 10, 2015
1 parent 9ec055a commit 8421b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion migration/savevm.c
Expand Up @@ -974,7 +974,8 @@ int qemu_savevm_state_iterate(QEMUFile *f)
static bool should_send_vmdesc(void)
{
MachineState *machine = MACHINE(qdev_get_machine());
return !machine->suppress_vmdesc;
bool in_postcopy = migration_in_postcopy(migrate_get_current());
return !machine->suppress_vmdesc && !in_postcopy;
}

void qemu_savevm_state_complete_precopy(QEMUFile *f)
Expand Down

0 comments on commit 8421b20

Please sign in to comment.