mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: create Migration Incoming State at init time
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <1485207141-1941-3-git-send-email-quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
7d2c6c9551
commit
b4b076daf3
3 changed files with 19 additions and 24 deletions
|
@ -2199,7 +2199,6 @@ void qmp_xen_load_devices_state(const char *filename, Error **errp)
|
|||
qio_channel_set_name(QIO_CHANNEL(ioc), "migration-xen-load-state");
|
||||
f = qemu_fopen_channel_input(QIO_CHANNEL(ioc));
|
||||
|
||||
migration_incoming_state_new(f);
|
||||
ret = qemu_loadvm_state(f);
|
||||
qemu_fclose(f);
|
||||
if (ret < 0) {
|
||||
|
@ -2215,6 +2214,7 @@ int load_vmstate(const char *name)
|
|||
QEMUFile *f;
|
||||
int ret;
|
||||
AioContext *aio_context;
|
||||
MigrationIncomingState *mis = migration_incoming_get_current();
|
||||
|
||||
if (!bdrv_all_can_snapshot(&bs)) {
|
||||
error_report("Device '%s' is writable but does not support snapshots.",
|
||||
|
@ -2265,7 +2265,7 @@ int load_vmstate(const char *name)
|
|||
}
|
||||
|
||||
qemu_system_reset(VMRESET_SILENT);
|
||||
migration_incoming_state_new(f);
|
||||
mis->from_src_file = f;
|
||||
|
||||
aio_context_acquire(aio_context);
|
||||
ret = qemu_loadvm_state(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue