Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-24 Thread Yongji Xie
On Sun, 24 Feb 2019 at 08:14, Michael S. Tsirkin wrote: > > On Sat, Feb 23, 2019 at 09:10:01PM +0800, Yongji Xie wrote: > > On Fri, 22 Feb 2019 at 22:54, Michael S. Tsirkin wrote: > > > > > > On Fri, Feb 22, 2019 at 03:05:23PM +0800, Yongji Xie wrote: > > > > On Fri, 22 Feb 2019 at 14:21, Michael

Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-23 Thread Michael S. Tsirkin
On Sat, Feb 23, 2019 at 09:10:01PM +0800, Yongji Xie wrote: > On Fri, 22 Feb 2019 at 22:54, Michael S. Tsirkin wrote: > > > > On Fri, Feb 22, 2019 at 03:05:23PM +0800, Yongji Xie wrote: > > > On Fri, 22 Feb 2019 at 14:21, Michael S. Tsirkin wrote: > > > > > > > > On Fri, Feb 22, 2019 at 10:47:03A

Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-23 Thread Yongji Xie
On Fri, 22 Feb 2019 at 22:54, Michael S. Tsirkin wrote: > > On Fri, Feb 22, 2019 at 03:05:23PM +0800, Yongji Xie wrote: > > On Fri, 22 Feb 2019 at 14:21, Michael S. Tsirkin wrote: > > > > > > On Fri, Feb 22, 2019 at 10:47:03AM +0800, Yongji Xie wrote: > > > > > > + > > > > > > +To track inflight

Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-22 Thread Michael S. Tsirkin
On Fri, Feb 22, 2019 at 03:05:23PM +0800, Yongji Xie wrote: > On Fri, 22 Feb 2019 at 14:21, Michael S. Tsirkin wrote: > > > > On Fri, Feb 22, 2019 at 10:47:03AM +0800, Yongji Xie wrote: > > > > > + > > > > > +To track inflight I/O, the queue region should be processed as > > > > > follows: > > >

Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-21 Thread Yongji Xie
On Fri, 22 Feb 2019 at 14:21, Michael S. Tsirkin wrote: > > On Fri, Feb 22, 2019 at 10:47:03AM +0800, Yongji Xie wrote: > > > > + > > > > +To track inflight I/O, the queue region should be processed as follows: > > > > + > > > > +When receiving available buffers from the driver: > > > > + > > > >

Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-21 Thread Michael S. Tsirkin
On Fri, Feb 22, 2019 at 10:47:03AM +0800, Yongji Xie wrote: > > > + > > > +To track inflight I/O, the queue region should be processed as follows: > > > + > > > +When receiving available buffers from the driver: > > > + > > > +1. Get the next available head-descriptor index from available ring,

Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-21 Thread Yongji Xie
On Fri, 22 Feb 2019 at 01:27, Michael S. Tsirkin wrote: > > On Mon, Feb 18, 2019 at 06:27:42PM +0800, elohi...@gmail.com wrote: > > From: Xie Yongji > > > > This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD > > and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared > > bu

Re: [Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-21 Thread Michael S. Tsirkin
On Mon, Feb 18, 2019 at 06:27:42PM +0800, elohi...@gmail.com wrote: > From: Xie Yongji > > This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD > and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared > buffer between qemu and backend. > > Firstly, qemu uses VHOST_USER_GET_

[Qemu-devel] [PATCH v6 1/7] vhost-user: Support transferring inflight buffer between qemu and backend

2019-02-18 Thread elohimes
From: Xie Yongji This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Firstly, qemu uses VHOST_USER_GET_INFLIGHT_FD to get the shared buffer from backend. Then qemu should send it back t