Re: RE: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-29 Thread Yongji Xie
e...@linuxfoundation.org > >Cc: songmuc...@bytedance.com; virtualizat...@lists.linux-foundation.org; > >net...@vger.kernel.org; k...@vger.kernel.org; linux-fsde...@vger.kernel.org; > >iommu@lists.linux-foundation.org; linux-ker...@vger.kernel.org > >Subject: Re: [PATCH v8 00/1

RE: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-29 Thread Liu, Xiaodong
ger.kernel.org; k...@vger.kernel.org; linux-fsde...@vger.kernel.org; >iommu@lists.linux-foundation.org; linux-ker...@vger.kernel.org >Subject: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace > > >在 2021/6/28 下午1:54, Liu, Xiaodong 写道: >>> Several issues: >>

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-29 Thread Jason Wang
在 2021/6/29 下午2:40, Yongji Xie 写道: On Tue, Jun 29, 2021 at 12:13 PM Jason Wang wrote: 在 2021/6/28 下午6:32, Yongji Xie 写道: The large barrier is bounce-buffer mapping: SPDK requires hugepages for NVMe over PCIe and RDMA, so take some preallcoated hugepages to map as bounce buffer is necessary.

Re: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-29 Thread Yongji Xie
On Tue, Jun 29, 2021 at 12:13 PM Jason Wang wrote: > > > 在 2021/6/28 下午6:32, Yongji Xie 写道: > >> The large barrier is bounce-buffer mapping: SPDK requires hugepages > >> for NVMe over PCIe and RDMA, so take some preallcoated hugepages to > >> map as bounce buffer is necessary. Or it's hard to

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Jason Wang
在 2021/6/28 下午6:32, Yongji Xie 写道: The large barrier is bounce-buffer mapping: SPDK requires hugepages for NVMe over PCIe and RDMA, so take some preallcoated hugepages to map as bounce buffer is necessary. Or it's hard to avoid an extra memcpy from bounce-buffer to hugepage. If you can add an

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Jason Wang
在 2021/6/28 下午1:54, Liu, Xiaodong 写道: Several issues: - VDUSE needs to limit the total size of the bounce buffers (64M if I was not wrong). Does it work for SPDK? Yes, Jason. It is enough and works for SPDK. Since it's a kind of bounce buffer mainly for in-flight IO, so limited size like

Re: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Yongji Xie
On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > On Tue, Jun 15, 2021 at 10:13:21PM +0800, Xie Yongji wrote: > > This series introduces a framework that makes it possible to implement > > software-emulated vDPA devices in userspace. And to make it simple, the > > emulated vDPA device's

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Stefan Hajnoczi
On Tue, Jun 15, 2021 at 10:13:21PM +0800, Xie Yongji wrote: > This series introduces a framework that makes it possible to implement > software-emulated vDPA devices in userspace. And to make it simple, the > emulated vDPA device's control path is handled in the kernel and only the > data path is

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Yongji Xie
On Mon, 28 Jun 2021 at 10:55, Liu Xiaodong wrote: > > On Tue, Jun 15, 2021 at 10:13:21PM +0800, Xie Yongji wrote: > > > > This series introduces a framework that makes it possible to implement > > software-emulated vDPA devices in userspace. And to make it simple, the > > emulated vDPA device's

RE: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-27 Thread Liu, Xiaodong
ger.kernel.org; k...@vger.kernel.org; linux-fsde...@vger.kernel.org; >iommu@lists.linux-foundation.org; linux-ker...@vger.kernel.org >Subject: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace > > >在 2021/6/28 下午6:33, Liu Xiaodong 写道: >> On Tue, Jun 15, 2021 at 10:13

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-27 Thread Jason Wang
在 2021/6/28 下午6:33, Liu Xiaodong 写道: On Tue, Jun 15, 2021 at 10:13:21PM +0800, Xie Yongji wrote: This series introduces a framework that makes it possible to implement software-emulated vDPA devices in userspace. And to make it simple, the emulated vDPA device's control path is handled in the

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-27 Thread Liu Xiaodong
On Tue, Jun 15, 2021 at 10:13:21PM +0800, Xie Yongji wrote: > > This series introduces a framework that makes it possible to implement > software-emulated vDPA devices in userspace. And to make it simple, the > emulated vDPA device's control path is handled in the kernel and only the > data path

[PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-15 Thread Xie Yongji
This series introduces a framework that makes it possible to implement software-emulated vDPA devices in userspace. And to make it simple, the emulated vDPA device's control path is handled in the kernel and only the data path is implemented in the userspace. Since the emuldated vDPA device's