mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
migration: migrate-continue
A new qmp command allows the caller to continue from a given paused state. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
e91d8951d5
commit
89cfc02cb6
2 changed files with 28 additions and 0 deletions
|
@ -1374,6 +1374,17 @@ void qmp_migrate_cancel(Error **errp)
|
|||
migrate_fd_cancel(migrate_get_current());
|
||||
}
|
||||
|
||||
void qmp_migrate_continue(MigrationStatus state, Error **errp)
|
||||
{
|
||||
MigrationState *s = migrate_get_current();
|
||||
if (s->state != state) {
|
||||
error_setg(errp, "Migration not in expected state: %s",
|
||||
MigrationStatus_str(s->state));
|
||||
return;
|
||||
}
|
||||
qemu_sem_post(&s->pause_sem);
|
||||
}
|
||||
|
||||
void qmp_migrate_set_cache_size(int64_t value, Error **errp)
|
||||
{
|
||||
MigrationState *s = migrate_get_current();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue