mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
migration: Remove MigrationState from migration_in_postcopy
We need to call for the migrate_get_current() in more that half of the uses, so call that inside. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
6d358d9494
commit
5727309d25
4 changed files with 17 additions and 17 deletions
|
@ -1062,7 +1062,7 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy)
|
|||
static bool should_send_vmdesc(void)
|
||||
{
|
||||
MachineState *machine = MACHINE(qdev_get_machine());
|
||||
bool in_postcopy = migration_in_postcopy(migrate_get_current());
|
||||
bool in_postcopy = migration_in_postcopy();
|
||||
return !machine->suppress_vmdesc && !in_postcopy;
|
||||
}
|
||||
|
||||
|
@ -1111,7 +1111,7 @@ void qemu_savevm_state_complete_precopy(QEMUFile *f, bool iterable_only)
|
|||
int vmdesc_len;
|
||||
SaveStateEntry *se;
|
||||
int ret;
|
||||
bool in_postcopy = migration_in_postcopy(migrate_get_current());
|
||||
bool in_postcopy = migration_in_postcopy();
|
||||
|
||||
trace_savevm_state_complete_precopy();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue