Re: [PATCH v2 05/10] vhost-scsi: adjust vhost_scsi_get_desc() to log vring descriptors
From: Mike Christie
Date: Wed Mar 26 2025 - 19:22:19 EST
On 3/17/25 6:55 PM, Dongli Zhang wrote:
> Adjust vhost_scsi_get_desc() to facilitate logging of vring descriptors.
>
> Add new arguments to allow passing the log buffer and length to
> vhost_get_vq_desc().
>
> In addition, reset 'log_num' since vhost_get_vq_desc() may reset it only
> after certain condition checks.
>
> Suggested-by: Joao Martins <joao.m.martins@xxxxxxxxxx>
> Signed-off-by: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
Reviewed-by: Mike Christie <michael.christie@xxxxxxxxxx>