diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2016-09-27 19:56:04 +0100 |
---|---|---|
committer | Juan Quintela <quintela@trasno.org> | 2016-10-13 17:22:38 +0200 |
commit | a1771070e7b892a0bdea81b4a1ec7fcca0af21f5 (patch) | |
tree | ca592de8b6042477431cdf4958cc8c4f3580b831 /migration | |
parent | 6aa5a3679449cdf0b6fe5a6829b22e642ded57fd (diff) | |
download | qemu-a1771070e7b892a0bdea81b4a1ec7fcca0af21f5.zip qemu-a1771070e7b892a0bdea81b4a1ec7fcca0af21f5.tar.gz qemu-a1771070e7b892a0bdea81b4a1ec7fcca0af21f5.tar.bz2 |
migration: report an error giving the failed field
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>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/vmstate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/vmstate.c b/migration/vmstate.c index fc29acf..1d637b2 100644 --- a/migration/vmstate.c +++ b/migration/vmstate.c @@ -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; } |