Re: [Qemu-devel] [PATCH 00/24] vhost-user reconnect fixes

2016-06-27 Thread Marc-André Lureau
On Sat, Jun 25, 2016 at 12:19 AM, Michael S. Tsirkin wrote: >> On Thu, Jun 23, 2016 at 6:31 AM, Michael S. Tsirkin wrote: >> > >> > OK so if it's ok for read or write to fail, then I think >> > the callback should just return success. >> > This will make sure backends such as vhost net in kernel

Re: [Qemu-devel] [PATCH 00/24] vhost-user reconnect fixes

2016-06-24 Thread Michael S. Tsirkin
On Fri, Jun 24, 2016 at 03:22:19PM +0200, Marc-André Lureau wrote: > Hi > > On Thu, Jun 23, 2016 at 6:31 AM, Michael S. Tsirkin wrote: > > > > OK so if it's ok for read or write to fail, then I think > > the callback should just return success. > > This will make sure backends such as vhost net i

Re: [Qemu-devel] [PATCH 00/24] vhost-user reconnect fixes

2016-06-24 Thread Marc-André Lureau
Hi On Thu, Jun 23, 2016 at 6:31 AM, Michael S. Tsirkin wrote: > > OK so if it's ok for read or write to fail, then I think > the callback should just return success. > This will make sure backends such as vhost net in kernel > where failure indicates an internal bug are handled > correctly, while

Re: [Qemu-devel] [PATCH 00/24] vhost-user reconnect fixes

2016-06-24 Thread Marc-André Lureau
Hi On Thu, Jun 23, 2016 at 6:32 AM, Michael S. Tsirkin wrote: > > Can this be rarranged, first patches fixing the code paths that are wrong, > then patches handling the asserts etc? Ok, I'll try to improve ordering (minor fix, close(fd) fix, assert/fprintf->error_report, check and return error,

Re: [Qemu-devel] [PATCH 00/24] vhost-user reconnect fixes

2016-06-22 Thread Michael S. Tsirkin
On Tue, Jun 21, 2016 at 12:02:28PM +0200, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Hi, > > Since 'vhost-user: simple reconnection support' was merged, it is > possible to disconnect and reconnect a vhost-user backend. However, > many code paths in qemu may trigger assert(

Re: [Qemu-devel] [PATCH 00/24] vhost-user reconnect fixes

2016-06-22 Thread Michael S. Tsirkin
On Tue, Jun 21, 2016 at 12:02:28PM +0200, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Hi, > > Since 'vhost-user: simple reconnection support' was merged, it is > possible to disconnect and reconnect a vhost-user backend. However, > many code paths in qemu may trigger assert(

[Qemu-devel] [PATCH 00/24] vhost-user reconnect fixes

2016-06-21 Thread marcandre . lureau
From: Marc-André Lureau Hi, Since 'vhost-user: simple reconnection support' was merged, it is possible to disconnect and reconnect a vhost-user backend. However, many code paths in qemu may trigger assert() when the backend is disconnected. Some assert() could simply be replaced by error_report