Re: [PATCH 5/7] vhost: Distinguish errors in vhost_dev_get_config()

2021-06-11 Thread Raphael Norwitz
On Wed, Jun 09, 2021 at 05:46:56PM +0200, Kevin Wolf wrote: > Instead of just returning 0/-1 and letting the caller make up a > meaningless error message, add an Error parameter to allow reporting the > real error and switch to 0/-errno so that different kind of errors can > be distinguished in the

Re: [PATCH 5/7] vhost: Distinguish errors in vhost_dev_get_config()

2021-06-10 Thread Stefano Garzarella
On Wed, Jun 09, 2021 at 05:46:56PM +0200, Kevin Wolf wrote: Instead of just returning 0/-1 and letting the caller make up a meaningless error message, add an Error parameter to allow reporting the real error and switch to 0/-errno so that different kind of errors can be distinguished in the calle

[PATCH 5/7] vhost: Distinguish errors in vhost_dev_get_config()

2021-06-09 Thread Kevin Wolf
Instead of just returning 0/-1 and letting the caller make up a meaningless error message, add an Error parameter to allow reporting the real error and switch to 0/-errno so that different kind of errors can be distinguished in the caller. Signed-off-by: Kevin Wolf --- include/hw/virtio/vhost-ba