]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migration: report an error giving the failed field
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 27 Sep 2016 18:56:04 +0000 (19:56 +0100)
committerJuan Quintela <quintela@trasno.org>
Thu, 13 Oct 2016 15:22:38 +0000 (17:22 +0200)
When a field fails to load (typically due to a limit
check, or a call to a get/put) report the device and field
to give an indication of the cause.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/vmstate.c

index fc29acf74d74e98b2647995bfcf1e0fd16f25cdf..1d637b20dac968e159bb8f165376f594ee4fc6b0 100644 (file)
@@ -130,6 +130,8 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
                 }
                 if (ret < 0) {
                     qemu_file_set_error(f, ret);
+                    error_report("Failed to load %s:%s", vmsd->name,
+                                 field->name);
                     trace_vmstate_load_field_error(field->name, ret);
                     return ret;
                 }