From 4991f3091ede9d05312447c12e914481032185c0 Mon Sep 17 00:00:00 2001 From: Wei Yang Date: Sun, 6 Oct 2019 06:05:17 +0800 Subject: migration: report SaveStateEntry id and name on failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This provides helpful information on which entry failed. Signed-off-by: Wei Yang Message-Id: <20191005220517.24029-5-richardw.yang@linux.intel.com> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Dr. David Alan Gilbert --- migration/savevm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'migration/savevm.c') diff --git a/migration/savevm.c b/migration/savevm.c index bb9462a..241c5dd 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -1215,6 +1215,8 @@ 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); qemu_file_set_error(f, ret); } if (ret <= 0) { -- cgit v1.1