Re: Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-16 Thread Yongji Xie
On Fri, Apr 16, 2021 at 11:24 AM Jason Wang wrote: > > > 在 2021/3/31 下午4:05, Xie Yongji 写道: > > + } > > + case VDUSE_INJECT_VQ_IRQ: > > + ret = -EINVAL; > > + if (arg >= dev->vq_num) > > + break; > > + > > + ret = 0; > > +

Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-15 Thread Jason Wang
在 2021/3/31 下午4:05, Xie Yongji 写道: + } + case VDUSE_INJECT_VQ_IRQ: + ret = -EINVAL; + if (arg >= dev->vq_num) + break; + + ret = 0; + queue_work(vduse_irq_wq, &dev->vqs[arg].inject); + break;

Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-14 Thread Jason Wang
在 2021/4/13 下午12:28, Yongji Xie 写道: On Tue, Apr 13, 2021 at 11:35 AM Jason Wang wrote: 在 2021/4/12 下午5:59, Yongji Xie 写道: On Mon, Apr 12, 2021 at 5:37 PM Jason Wang wrote: 在 2021/4/12 下午4:02, Yongji Xie 写道: On Mon, Apr 12, 2021 at 3:16 PM Jason Wang wrote: 在 2021/4/9 下午4:02, Yongji Xie

Re: Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-12 Thread Yongji Xie
On Tue, Apr 13, 2021 at 11:35 AM Jason Wang wrote: > > > 在 2021/4/12 下午5:59, Yongji Xie 写道: > > On Mon, Apr 12, 2021 at 5:37 PM Jason Wang wrote: > >> > >> 在 2021/4/12 下午4:02, Yongji Xie 写道: > >>> On Mon, Apr 12, 2021 at 3:16 PM Jason Wang wrote: > 在 2021/4/9 下午4:02, Yongji Xie 写道: > >>

Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-12 Thread Jason Wang
在 2021/4/12 下午5:59, Yongji Xie 写道: On Mon, Apr 12, 2021 at 5:37 PM Jason Wang wrote: 在 2021/4/12 下午4:02, Yongji Xie 写道: On Mon, Apr 12, 2021 at 3:16 PM Jason Wang wrote: 在 2021/4/9 下午4:02, Yongji Xie 写道: +}; + +struct vduse_dev_config_data { + __u32 offset; /* offset from the beginni

Re: Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-12 Thread Yongji Xie
On Mon, Apr 12, 2021 at 5:37 PM Jason Wang wrote: > > > 在 2021/4/12 下午4:02, Yongji Xie 写道: > > On Mon, Apr 12, 2021 at 3:16 PM Jason Wang wrote: > >> > >> 在 2021/4/9 下午4:02, Yongji Xie 写道: > >>> +}; > >>> + > >>> +struct vduse_dev_config_data { > >>> + __u32 offset; /* offset

Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-12 Thread Jason Wang
在 2021/4/12 下午4:02, Yongji Xie 写道: On Mon, Apr 12, 2021 at 3:16 PM Jason Wang wrote: 在 2021/4/9 下午4:02, Yongji Xie 写道: +}; + +struct vduse_dev_config_data { + __u32 offset; /* offset from the beginning of config space */ + __u32 len; /* the length to read/write */ + __u8 data[VD

Re: Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-12 Thread Yongji Xie
On Mon, Apr 12, 2021 at 3:16 PM Jason Wang wrote: > > > 在 2021/4/9 下午4:02, Yongji Xie 写道: > > +}; > > + > > +struct vduse_dev_config_data { > > + __u32 offset; /* offset from the beginning of config space */ > > + __u32 len; /* the length to read/write */ > > +

Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-12 Thread Jason Wang
在 2021/4/9 下午4:02, Yongji Xie 写道: +}; + +struct vduse_dev_config_data { + __u32 offset; /* offset from the beginning of config space */ + __u32 len; /* the length to read/write */ + __u8 data[VDUSE_CONFIG_DATA_LEN]; /* data buffer used to read/write */ Note that since VDUSE_CONFIG_

Re: Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-09 Thread Yongji Xie
On Fri, Apr 9, 2021 at 1:36 PM Jason Wang wrote: > > > 在 2021/4/8 下午5:36, Yongji Xie 写道: > > On Thu, Apr 8, 2021 at 2:57 PM Jason Wang wrote: > >> > >> 在 2021/3/31 下午4:05, Xie Yongji 写道: > >>> This VDUSE driver enables implementing vDPA devices in userspace. > >>> Both control path and data path

Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-08 Thread Jason Wang
在 2021/4/8 下午5:36, Yongji Xie 写道: On Thu, Apr 8, 2021 at 2:57 PM Jason Wang wrote: 在 2021/3/31 下午4:05, Xie Yongji 写道: This VDUSE driver enables implementing vDPA devices in userspace. Both control path and data path of vDPA devices will be able to be handled in userspace. In the control pa

Re: Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-08 Thread Yongji Xie
On Thu, Apr 8, 2021 at 2:57 PM Jason Wang wrote: > > > 在 2021/3/31 下午4:05, Xie Yongji 写道: > > This VDUSE driver enables implementing vDPA devices in userspace. > > Both control path and data path of vDPA devices will be able to > > be handled in userspace. > > > > In the control path, the VDUSE dr

Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-07 Thread Jason Wang
在 2021/3/31 下午4:05, Xie Yongji 写道: This VDUSE driver enables implementing vDPA devices in userspace. Both control path and data path of vDPA devices will be able to be handled in userspace. In the control path, the VDUSE driver will make use of message mechnism to forward the config operation

[PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-03-31 Thread Xie Yongji
This VDUSE driver enables implementing vDPA devices in userspace. Both control path and data path of vDPA devices will be able to be handled in userspace. In the control path, the VDUSE driver will make use of message mechnism to forward the config operation from vdpa bus driver to userspace. User