diff options
author | Yury Kotov | 2019-04-22 12:34:20 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2019-08-14 18:33:14 +0200 |
commit | 3d661c8ab18ad2013992c622ab307422ace891a2 (patch) | |
tree | d1b1ab46d8d0d3b0d3824655e661a469d5caa62b /hw/net/vmxnet3.c | |
parent | Update version for v4.1.0-rc5 release (diff) | |
download | qemu-3d661c8ab18ad2013992c622ab307422ace891a2.tar.gz qemu-3d661c8ab18ad2013992c622ab307422ace891a2.tar.xz qemu-3d661c8ab18ad2013992c622ab307422ace891a2.zip |
migration: Add error_desc for file channel errors
Currently, there is no information about error if outgoing migration was failed
because of file channel errors.
Example (QMP session):
-> { "execute": "migrate", "arguments": { "uri": "exec:head -c 1" }}
<- { "return": {} }
...
-> { "execute": "query-migrate" }
<- { "return": { "status": "failed" }} // There is not error's description
And even in the QEMU's output there is nothing.
This patch
1) Adds errp for the most of QEMUFileOps
2) Adds qemu_file_get_error_obj/qemu_file_set_error_obj
3) And finally using of qemu_file_get_error_obj in migration.c
And now, the status for the mentioned fail will be:
-> { "execute": "query-migrate" }
<- { "return": { "status": "failed",
"error-desc": "Unable to write to command: Broken pipe" }}
Signed-off-by: Yury Kotov <yury-kotov@yandex-team.ru>
Message-Id: <20190422103420.15686-1-yury-kotov@yandex-team.ru>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'hw/net/vmxnet3.c')
0 files changed, 0 insertions, 0 deletions