]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vhost-scsi: adjust vhost_scsi_get_desc() to log vring descriptors
authorDongli Zhang <dongli.zhang@oracle.com>
Thu, 3 Apr 2025 06:29:50 +0000 (23:29 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 18 May 2025 21:25:24 +0000 (17:25 -0400)
commite5e6b15b0dadfce456dbd04d2ab564be4d939f6f
treecf4ea5bcc04640736072c93ad94d0b38a9c5002b
parent41cff026cff53a661ab5483aa20e549943dee115
vhost-scsi: adjust vhost_scsi_get_desc() to log vring descriptors

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@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20250403063028.16045-6-dongli.zhang@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/scsi.c