Re: [PATCH 2/2] vdpa: vp_vdpa: don't use hard-coded maximum virtqueue size

2021-07-05 Thread Jason Wang
在 2021/7/6 上午1:59, Michael S. Tsirkin 写道: On Mon, Jul 05, 2021 at 03:29:47PM +0800, Jason Wang wrote: 在 2021/7/5 下午3:26, Michael S. Tsirkin 写道: On Mon, Jul 05, 2021 at 03:19:10PM +0800, Jason Wang wrote: This patch switch to read virtqueue size from the capability instead of depending on the

Re: [PATCH 2/2] vdpa: vp_vdpa: don't use hard-coded maximum virtqueue size

2021-07-05 Thread Michael S. Tsirkin
On Mon, Jul 05, 2021 at 03:29:47PM +0800, Jason Wang wrote: > > 在 2021/7/5 下午3:26, Michael S. Tsirkin 写道: > > On Mon, Jul 05, 2021 at 03:19:10PM +0800, Jason Wang wrote: > > > This patch switch to read virtqueue size from the capability instead > > > of depending on the hardcoded value. This

Re: [PATCH 2/2] vdpa: vp_vdpa: don't use hard-coded maximum virtqueue size

2021-07-05 Thread Jason Wang
在 2021/7/5 下午3:26, Michael S. Tsirkin 写道: On Mon, Jul 05, 2021 at 03:19:10PM +0800, Jason Wang wrote: This patch switch to read virtqueue size from the capability instead of depending on the hardcoded value. This allows the per virtqueue size could be advertised. Signed-off-by: Jason Wang

Re: [PATCH 2/2] vdpa: vp_vdpa: don't use hard-coded maximum virtqueue size

2021-07-05 Thread Michael S. Tsirkin
On Mon, Jul 05, 2021 at 03:19:10PM +0800, Jason Wang wrote: > This patch switch to read virtqueue size from the capability instead > of depending on the hardcoded value. This allows the per virtqueue > size could be advertised. > > Signed-off-by: Jason Wang So let's add an ioctl for this? It's

[PATCH 2/2] vdpa: vp_vdpa: don't use hard-coded maximum virtqueue size

2021-07-05 Thread Jason Wang
This patch switch to read virtqueue size from the capability instead of depending on the hardcoded value. This allows the per virtqueue size could be advertised. Signed-off-by: Jason Wang --- drivers/vdpa/virtio_pci/vp_vdpa.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff