mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
migration: wire up support for snapshot device selection
Modify load_snapshot/save_snapshot to accept the device list and vmstate node name parameters previously added to the block layer. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20210204124834.774401-9-berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
f781f84189
commit
f1a9fcdd01
6 changed files with 43 additions and 21 deletions
|
@ -77,13 +77,14 @@ void replay_vmstate_init(void)
|
|||
|
||||
if (replay_snapshot) {
|
||||
if (replay_mode == REPLAY_MODE_RECORD) {
|
||||
if (!save_snapshot(replay_snapshot, true, &err)) {
|
||||
if (!save_snapshot(replay_snapshot,
|
||||
true, NULL, false, NULL, &err)) {
|
||||
error_report_err(err);
|
||||
error_report("Could not create snapshot for icount record");
|
||||
exit(1);
|
||||
}
|
||||
} else if (replay_mode == REPLAY_MODE_PLAY) {
|
||||
if (!load_snapshot(replay_snapshot, &err)) {
|
||||
if (!load_snapshot(replay_snapshot, NULL, false, NULL, &err)) {
|
||||
error_report_err(err);
|
||||
error_report("Could not load snapshot for icount replay");
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue