migration: move migration thread init code to migrate_fd_put_ready

This way everything related with migration is run on the migration
thread and no locking is needed.

Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
Juan Quintela 2012-07-23 05:45:29 +02:00
parent edfa1af52f
commit 766bd1769e
2 changed files with 18 additions and 12 deletions

View file

@ -46,6 +46,7 @@ struct MigrationState
bool enabled_capabilities[MIGRATION_CAPABILITY_MAX];
int64_t xbzrle_cache_size;
bool complete;
bool first_time;
};
void process_incoming_migration(QEMUFile *f);