mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
migration: Report the error returned when save_live_iterate fails
Should qemu_savevm_state_iterate() encounter a failure when calling a particular save_live_iterate function, report the error code returned by the function. Signed-off-by: David Edmondson <david.edmondson@oracle.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
01ee5e3556
commit
9200265838
1 changed files with 3 additions and 2 deletions
|
@ -1298,8 +1298,9 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy)
|
||||||
save_section_footer(f, se);
|
save_section_footer(f, se);
|
||||||
|
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
error_report("failed to save SaveStateEntry with id(name): %d(%s)",
|
error_report("failed to save SaveStateEntry with id(name): "
|
||||||
se->section_id, se->idstr);
|
"%d(%s): %d",
|
||||||
|
se->section_id, se->idstr, ret);
|
||||||
qemu_file_set_error(f, ret);
|
qemu_file_set_error(f, ret);
|
||||||
}
|
}
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue