Re: [Qemu-devel] [PATCH] vhost-user: delay vhost_user_stop

2017-02-27 Thread Marc-André Lureau
Hi - Original Message - > * Marc-André Lureau (marcandre.lur...@redhat.com) wrote: > > Since commit b0a335e351103bf92f3f9d0bd5759311be8156ac, a socket write > > may trigger a disconnect events, calling vhost_user_stop() and clearing > > all the vhost_dev strutures holding data that vhost.c

Re: [Qemu-devel] [PATCH] vhost-user: delay vhost_user_stop

2017-02-27 Thread Dr. David Alan Gilbert
* Marc-André Lureau (marcandre.lur...@redhat.com) wrote: > Since commit b0a335e351103bf92f3f9d0bd5759311be8156ac, a socket write > may trigger a disconnect events, calling vhost_user_stop() and clearing > all the vhost_dev strutures holding data that vhost.c functions expect > to remain valid. Dela

Re: [Qemu-devel] [PATCH] vhost-user: delay vhost_user_stop

2017-02-24 Thread Marc-André Lureau
Hi On Sat, Feb 25, 2017 at 12:25 AM Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > Since commit b0a335e351103bf92f3f9d0bd5759311be8156ac, a socket write > may trigger a disconnect events, calling vhost_user_stop() and clearing > all the vhost_dev strutures holding data that vhost.c fun

[Qemu-devel] [PATCH] vhost-user: delay vhost_user_stop

2017-02-24 Thread Marc-André Lureau
Since commit b0a335e351103bf92f3f9d0bd5759311be8156ac, a socket write may trigger a disconnect events, calling vhost_user_stop() and clearing all the vhost_dev strutures holding data that vhost.c functions expect to remain valid. Delay the cleanup to keep the vhost_dev structure valid during the vh