aboutsummaryrefslogtreecommitdiff
path: root/hw/intc
diff options
context:
space:
mode:
authorRoman Kagan <rvkagan@yandex-team.ru>2021-11-11 18:33:52 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-01-07 05:19:55 -0500
commit025faa872bcf919259465419bee443b8a3ce3da1 (patch)
treefaf468fbac84330fd5a796cd8973c4ecb33503ce /hw/intc
parent3631151b3e3c53ce70c370e68241e9876e2dbb3a (diff)
downloadqemu-025faa872bcf919259465419bee443b8a3ce3da1.zip
qemu-025faa872bcf919259465419bee443b8a3ce3da1.tar.gz
qemu-025faa872bcf919259465419bee443b8a3ce3da1.tar.bz2
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 'hw/intc')
0 files changed, 0 insertions, 0 deletions