RE: [PATCH 1/2] vdpa: Allow to configure max data virtqueues

2021-12-01 Thread Parav Pandit via Virtualization
> From: Jason Wang > Sent: Thursday, December 2, 2021 9:11 AM > > 在 2021/12/1 下午6:09, Parav Pandit 写道: > > > >> From: Eli Cohen > >> Sent: Wednesday, December 1, 2021 3:33 PM > >> > >> On Tue, Nov 30, 2021 at 05:24:03PM -0800, Si-Wei Liu wrote: > >>> > >>> On 11/30/2021 1:48 AM, Eli Cohen wrot

Re: [PATCH 1/2] vdpa: Allow to configure max data virtqueues

2021-12-01 Thread Jason Wang
在 2021/12/1 下午6:09, Parav Pandit 写道: From: Eli Cohen Sent: Wednesday, December 1, 2021 3:33 PM On Tue, Nov 30, 2021 at 05:24:03PM -0800, Si-Wei Liu wrote: On 11/30/2021 1:48 AM, Eli Cohen wrote: Allow to configure the max virtqueues for a device. Signed-off-by: Eli Cohen --- drivers/

Re: [PATCH 1/2] vdpa: Allow to configure max data virtqueues

2021-12-01 Thread Si-Wei Liu
On 12/1/2021 2:03 AM, Eli Cohen wrote: + if ((config.max_virtqueues - 1) & config.max_virtqueues) { + NL_SET_ERR_MSG_MOD(info->extack, + "Must provide power of two number of virtqueues"); Why there's such limitation

Re: [PATCH 1/2] vdpa: Allow to configure max data virtqueues

2021-12-01 Thread Si-Wei Liu
On 12/1/2021 2:03 AM, Eli Cohen wrote: On Tue, Nov 30, 2021 at 05:24:03PM -0800, Si-Wei Liu wrote: On 11/30/2021 1:48 AM, Eli Cohen wrote: Allow to configure the max virtqueues for a device. Signed-off-by: Eli Cohen --- drivers/vdpa/vdpa.c | 16 +++- include/linux/vdpa.h

RE: [PATCH 1/2] vdpa: Allow to configure max data virtqueues

2021-12-01 Thread Parav Pandit via Virtualization
> From: Eli Cohen > Sent: Wednesday, December 1, 2021 5:29 PM > > On Wed, Dec 01, 2021 at 12:09:17PM +0200, Parav Pandit wrote: > > > > > > > From: Eli Cohen > > > Sent: Wednesday, December 1, 2021 3:33 PM > > > > > > On Tue, Nov 30, 2021 at 05:24:03PM -0800, Si-Wei Liu wrote: > > > > > > > >

RE: [PATCH 1/2] vdpa: Allow to configure max data virtqueues

2021-12-01 Thread Parav Pandit via Virtualization
> From: Eli Cohen > Sent: Wednesday, December 1, 2021 3:33 PM > > On Tue, Nov 30, 2021 at 05:24:03PM -0800, Si-Wei Liu wrote: > > > > > > On 11/30/2021 1:48 AM, Eli Cohen wrote: > > > Allow to configure the max virtqueues for a device. > > > > > > Signed-off-by: Eli Cohen > > > --- > > > dr

Re: [PATCH 1/2] vdpa: Allow to configure max data virtqueues

2021-11-30 Thread Si-Wei Liu
On 11/30/2021 1:48 AM, Eli Cohen wrote: Allow to configure the max virtqueues for a device. Signed-off-by: Eli Cohen --- drivers/vdpa/vdpa.c | 16 +++- include/linux/vdpa.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa.c b/drivers/v