Re: [PATCH 3/6] vhost-user: Return error code from slave_read()

2021-01-29 Thread Vivek Goyal
On Fri, Jan 29, 2021 at 10:45:07AM +0100, Greg Kurz wrote: > On Mon, 25 Jan 2021 13:01:12 -0500 > Vivek Goyal wrote: > > > Right now slave_read() is called through main event loop and does not > > return error. In next few patches I want to call slave_read() from > > vhost device shutdown path as

Re: [PATCH 3/6] vhost-user: Return error code from slave_read()

2021-01-29 Thread Greg Kurz
On Mon, 25 Jan 2021 13:01:12 -0500 Vivek Goyal wrote: > Right now slave_read() is called through main event loop and does not > return error. In next few patches I want to call slave_read() from > vhost device shutdown path as well and want to know if an error > happened so that caller can give u

[PATCH 3/6] vhost-user: Return error code from slave_read()

2021-01-25 Thread Vivek Goyal
Right now slave_read() is called through main event loop and does not return error. In next few patches I want to call slave_read() from vhost device shutdown path as well and want to know if an error happened so that caller can give up and return error accordingly. Hence, create helper function d