summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoman Kagan2021-11-11 16:33:52 +0100
committerMichael S. Tsirkin2022-01-07 11:19:55 +0100
commit025faa872bcf919259465419bee443b8a3ce3da1 (patch)
treefaf468fbac84330fd5a796cd8973c4ecb33503ce /include
parentvhost-vdpa: stick to -errno error return convention (diff)
downloadqemu-025faa872bcf919259465419bee443b8a3ce3da1.tar.gz
qemu-025faa872bcf919259465419bee443b8a3ce3da1.tar.xz
qemu-025faa872bcf919259465419bee443b8a3ce3da1.zip
vhost-user: stick to -errno error return convention
VhostOps methods in user_ops are not very consistent in their error returns: some return negated errno while others just -1. Make sure all of them consistently return negated errno. This also helps error propagation from the functions being called inside. Besides, this synchronizes the error return convention with the other two vhost backends, kernel and vdpa, and will therefore allow for consistent error propagation in the generic vhost code (in a followup patch). Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru> Message-Id: <20211111153354.18807-9-rvkagan@yandex-team.ru> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions