diff options
| author | Roman Kagan <rvkagan@yandex-team.ru> | 2021-11-11 18:33:52 +0300 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-07 05:19:55 -0500 |
| commit | 025faa872bcf919259465419bee443b8a3ce3da1 (patch) | |
| tree | faf468fbac84330fd5a796cd8973c4ecb33503ce /python/qemu/utils/accel.py | |
| parent | 3631151b3e3c53ce70c370e68241e9876e2dbb3a (diff) | |
| download | focaccia-qemu-025faa872bcf919259465419bee443b8a3ce3da1.tar.gz focaccia-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 'python/qemu/utils/accel.py')
0 files changed, 0 insertions, 0 deletions