diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2024-02-22 09:28:36 -0800 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-02-28 11:31:28 +0800 |
commit | 9867d4ddd0427a108e45c865ff4169f852e844f6 (patch) | |
tree | fe13eb2f203377187753eed92f040261f97b662f /migration/migration.h | |
parent | 4af667f87c629b4439f93a0b116d7674aa0cb1ad (diff) | |
download | qemu-9867d4ddd0427a108e45c865ff4169f852e844f6.zip qemu-9867d4ddd0427a108e45c865ff4169f852e844f6.tar.gz qemu-9867d4ddd0427a108e45c865ff4169f852e844f6.tar.bz2 |
migration: stop vm for cpr
When migration for cpr is initiated, stop the vm and set state
RUN_STATE_FINISH_MIGRATE before ram is saved. This eliminates the
possibility of ram and device state being out of sync, and guarantees
that a guest in the suspended state remains suspended, because qmp_cont
rejects a cont command in the RUN_STATE_FINISH_MIGRATE state.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1708622920-68779-11-git-send-email-steven.sistare@oracle.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/migration/migration.h b/migration/migration.h index aef8afb..65c0b61 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -541,6 +541,4 @@ int migration_rp_wait(MigrationState *s); */ void migration_rp_kick(MigrationState *s); -int migration_stop_vm(RunState state); - #endif |