diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-07-27 01:15:05 +0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-07-29 00:33:47 +0300 |
commit | 162bba7fa84182e5dc07f94db9744fc80109592a (patch) | |
tree | 92cf2a04fe3daea260aeeb4c8d62658be5c35e92 /qemu-io-cmds.c | |
parent | a06db3ec720a570089b16125d3bca470e7bb34b8 (diff) | |
download | qemu-162bba7fa84182e5dc07f94db9744fc80109592a.zip qemu-162bba7fa84182e5dc07f94db9744fc80109592a.tar.gz qemu-162bba7fa84182e5dc07f94db9744fc80109592a.tar.bz2 |
vhost: do not assert() on vhost_ops failure
Calling a vhost operation may fail, for example with disconnected
vhost-user backend, but qemu shouldn't abort in this case.
Log an error instead, except on error and cleanup code paths where it
can be mostly ignored.
Let's use a VHOST_OPS_DEBUG macro to easily disable those messages once
disconnected backend stabilizes.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions