Re: [PATCH 4/6] qemu, vhost-user: Extend protocol to start/stop/flush slave channel

2021-02-08 Thread Stefan Hajnoczi
On Fri, Jan 29, 2021 at 10:11:55AM -0500, Vivek Goyal wrote: > On Fri, Jan 29, 2021 at 09:16:00AM -0500, Vivek Goyal wrote: > > On Thu, Jan 28, 2021 at 04:52:34PM +, Stefan Hajnoczi wrote: > > > On Mon, Jan 25, 2021 at 01:01:13PM -0500, Vivek Goyal wrote: > > > > Currently we don't have a

Re: [PATCH 4/6] qemu, vhost-user: Extend protocol to start/stop/flush slave channel

2021-01-29 Thread Vivek Goyal
On Fri, Jan 29, 2021 at 09:16:00AM -0500, Vivek Goyal wrote: > On Thu, Jan 28, 2021 at 04:52:34PM +, Stefan Hajnoczi wrote: > > On Mon, Jan 25, 2021 at 01:01:13PM -0500, Vivek Goyal wrote: > > > Currently we don't have a mechanism to flush slave channel while shutting > > > down vhost-user

Re: [PATCH 4/6] qemu, vhost-user: Extend protocol to start/stop/flush slave channel

2021-01-29 Thread Vivek Goyal
On Thu, Jan 28, 2021 at 04:52:34PM +, Stefan Hajnoczi wrote: > On Mon, Jan 25, 2021 at 01:01:13PM -0500, Vivek Goyal wrote: > > Currently we don't have a mechanism to flush slave channel while shutting > > down vhost-user device and that can result a deadlock. Consider following > > scenario.

Re: [PATCH 4/6] qemu, vhost-user: Extend protocol to start/stop/flush slave channel

2021-01-28 Thread Stefan Hajnoczi
On Mon, Jan 25, 2021 at 01:01:13PM -0500, Vivek Goyal wrote: > Currently we don't have a mechanism to flush slave channel while shutting > down vhost-user device and that can result a deadlock. Consider following > scenario. > > 1. Slave gets a request from guest on virtqueue (say index 1, vq1),

[PATCH 4/6] qemu, vhost-user: Extend protocol to start/stop/flush slave channel

2021-01-25 Thread Vivek Goyal
Currently we don't have a mechanism to flush slave channel while shutting down vhost-user device and that can result a deadlock. Consider following scenario. 1. Slave gets a request from guest on virtqueue (say index 1, vq1), to map a portion of file in qemu address space. 2. Thread serving