]> git.proxmox.com Git - mirror_qemu.git/commit - backends/cryptodev-vhost.c
vhost: Add Error parameter to vhost_dev_init()
authorKevin Wolf <kwolf@redhat.com>
Wed, 9 Jun 2021 15:46:52 +0000 (08:46 -0700)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Jun 2021 11:15:44 +0000 (13:15 +0200)
commita6945f2287aa7f048b263d7187364cbf1dd5d94d
tree999b68cfc5e64af247afbc10b6fb99983583e76a
parentbf783261f0aee6e81af3916bff7606d71ccdc153
vhost: Add Error parameter to vhost_dev_init()

This allows callers to return better error messages instead of making
one up while the real error ends up on stderr. Most callers can
immediately make use of this because they already have an Error
parameter themselves. The others just keep printing the error with
error_report_err().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210609154658.350308-2-kwolf@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
backends/cryptodev-vhost.c
backends/vhost-user.c
hw/block/vhost-user-blk.c
hw/net/vhost_net.c
hw/scsi/vhost-scsi.c
hw/scsi/vhost-user-scsi.c
hw/virtio/vhost-user-fs.c
hw/virtio/vhost-user-vsock.c
hw/virtio/vhost-vsock.c
hw/virtio/vhost.c
include/hw/virtio/vhost.h