migration: Report the error returned when save_live_iterate fails
PATCH 1/1 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 <[email protected]>
--- migration/savevm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
migration/savevm.c +3 -2
@@ -1298,8 +1298,9 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy)save_section_footer (f, se);if (ret <0 ) { -error_report ("failed to save SaveStateEntry with id(name): %d(%s)" , - se->section_id, se->idstr); +error_report ("failed to save SaveStateEntry with id(name): " +"%d(%s): %d" , + se->section_id, se->idstr, ret);qemu_file_set_error (f, ret); }if (ret <=0 ) {
Signature · 1 line
2.33.0
Quoted 14 lines · * David Edmondson ([email protected]) wrote:
Should
qemu_savevm_state_iterate()encounter a failure when calling a particularsave_live_iteratefunction, report the error code returned by the function.Signed-off-by David Edmondson <[email protected]>--- migration/savevm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)migration/savevm.c +0
-0
migration/savevm.c int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy) · line 1303
Quoted 8 lines
migration/savevm.c +3
-2@@ -1298,8 +1298,9 @@ int qemu_savevm_state_iterate(QEMUFile *f, bool postcopy)save_section_footer (f, se);if (ret <0 ) { -error_report ("failed to save SaveStateEntry with id(name): %d(%s)" , - se->section_id, se->idstr); +error_report ("failed to save SaveStateEntry with id(name): " +"%d(%s): %d" , + se->section_id, se->idstr, ret);
Reviewed-by Dr. David Alan Gilbert <[email protected]>
Quoted 7 lines
migration/savevm.c +0
-0qemu_file_set_error (f, ret); }if (ret <=0 ) {Signature · 1 line
2.33.0
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 5 lines · David Edmondson
Should
qemu_savevm_state_iterate()encounter a failure when calling a particularsave_live_iteratefunction, report the error code returned by the function.Signed-off-by David Edmondson <[email protected]>
Reviewed-by Juan Quintela <[email protected]>
queued