Re: [PATCH RFC 03/12] vdpa_sim: remove hard-coded virtq count

Jason Wang
2020-11-16T04:02:45Z

On 2020/11/13 下午9:47, Stefano Garzarella wrote:
> From: Max Gurtovoy <mgurtovoy@nvidia.com>
>
> Add a new attribute that will define the number of virt queues to be
> created for the vdpasim device.
>
> Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> [sgarzare: replace kmalloc_array() with kcalloc()]
> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
> ---
> v1:
> - use kcalloc() instead of kmalloc_array() since some function expects
> variables initialized to zero

Looks good, one nit, I prefer to do this before patch 2.

Thanks