* [PATCH 01/12] vhost-scsi: improve BIDI operation comments
@ 2026-07-15 8:09 Weimin Xiong
2026-07-15 9:24 ` Bobby Eshleman
0 siblings, 1 reply; 3+ messages in thread
From: Weimin Xiong @ 2026-07-15 8:09 UTC (permalink / raw)
To: virtualization
From: xiongweimin <xiongwm2026@163.com>
Replace FIXME comments with clearer Note comments documenting
that BIDI (bidirectional) operations are not yet supported.
Signed-off-by: Weimin Xiong <xiongwm2026@163.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
---
drivers/vhost/scsi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index 9a1253b9d..81e905c4c 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -1047,7 +1047,7 @@ static void vhost_scsi_target_queue_cmd(struct vhost_scsi_nexus *nexus,
struct se_cmd *se_cmd = &cmd->tvc_se_cmd;
struct scatterlist *sg_ptr, *sg_prot_ptr = NULL;
- /* FIXME: BIDI operation */
+ /* Note: BIDI (bidirectional) operations are not yet supported */
if (cmd->tvc_sgl_count) {
sg_ptr = cmd->table.sgl;
@@ -1168,7 +1168,7 @@ vhost_scsi_get_desc(struct vhost_scsi *vs, struct vhost_virtqueue *vq,
/*
* Get the size of request and response buffers.
- * FIXME: Not correct for BIDI operation
+ * Note: Size calculation is not correct for BIDI operations.
*/
vc->out_size = iov_length(vq->iov, vc->out);
vc->in_size = iov_length(&vq->iov[vc->out], vc->in);
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 01/12] vhost-scsi: improve BIDI operation comments
2026-07-15 8:09 [PATCH 01/12] vhost-scsi: improve BIDI operation comments Weimin Xiong
@ 2026-07-15 9:24 ` Bobby Eshleman
2026-07-15 9:36 ` xiongwm2026
0 siblings, 1 reply; 3+ messages in thread
From: Bobby Eshleman @ 2026-07-15 9:24 UTC (permalink / raw)
To: Weimin Xiong; +Cc: virtualization
On Wed, Jul 15, 2026 at 04:09:06PM +0800, Weimin Xiong wrote:
> From: xiongweimin <xiongwm2026@163.com>
>
> Replace FIXME comments with clearer Note comments documenting
> that BIDI (bidirectional) operations are not yet supported.
>
> Signed-off-by: Weimin Xiong <xiongwm2026@163.com>
> Co-authored-by: Cursor <cursoragent@cursor.com>
> ---
> drivers/vhost/scsi.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
> index 9a1253b9d..81e905c4c 100644
> --- a/drivers/vhost/scsi.c
> +++ b/drivers/vhost/scsi.c
> @@ -1047,7 +1047,7 @@ static void vhost_scsi_target_queue_cmd(struct vhost_scsi_nexus *nexus,
> struct se_cmd *se_cmd = &cmd->tvc_se_cmd;
> struct scatterlist *sg_ptr, *sg_prot_ptr = NULL;
>
> - /* FIXME: BIDI operation */
> + /* Note: BIDI (bidirectional) operations are not yet supported */
> if (cmd->tvc_sgl_count) {
> sg_ptr = cmd->table.sgl;
>
> @@ -1168,7 +1168,7 @@ vhost_scsi_get_desc(struct vhost_scsi *vs, struct vhost_virtqueue *vq,
>
> /*
> * Get the size of request and response buffers.
> - * FIXME: Not correct for BIDI operation
> + * Note: Size calculation is not correct for BIDI operations.
> */
> vc->out_size = iov_length(vq->iov, vc->out);
> vc->in_size = iov_length(&vq->iov[vc->out], vc->in);
> --
> 2.43.0
>
Hey Weimin,
This series is probably going to be ignored. Comment-only changes are
almost never merged, and the code changes here don't look like genuine
bugs.
In the case that there are some real bugs, I'd recommend to setup a
system and trigger a bug, and provide a reproducer.
Best,
Bobby
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:Re: [PATCH 01/12] vhost-scsi: improve BIDI operation comments
2026-07-15 9:24 ` Bobby Eshleman
@ 2026-07-15 9:36 ` xiongwm2026
0 siblings, 0 replies; 3+ messages in thread
From: xiongwm2026 @ 2026-07-15 9:36 UTC (permalink / raw)
To: Bobby Eshleman; +Cc: virtualization
Hi Bobby,
Thanks for the feedback.
Understood. I will drop this comment-only change and focus on fixes with
a concrete bug scenario or reproducer.
Best,
Weimin
At 2026-07-15 17:24:53, "Bobby Eshleman" <bobbyeshleman@gmail.com> wrote:
>On Wed, Jul 15, 2026 at 04:09:06PM +0800, Weimin Xiong wrote:
>> From: xiongweimin <xiongwm2026@163.com>
>>
>> Replace FIXME comments with clearer Note comments documenting
>> that BIDI (bidirectional) operations are not yet supported.
>>
>> Signed-off-by: Weimin Xiong <xiongwm2026@163.com>
>> Co-authored-by: Cursor <cursoragent@cursor.com>
>> ---
>> drivers/vhost/scsi.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
>> index 9a1253b9d..81e905c4c 100644
>> --- a/drivers/vhost/scsi.c
>> +++ b/drivers/vhost/scsi.c
>> @@ -1047,7 +1047,7 @@ static void vhost_scsi_target_queue_cmd(struct vhost_scsi_nexus *nexus,
>> struct se_cmd *se_cmd = &cmd->tvc_se_cmd;
>> struct scatterlist *sg_ptr, *sg_prot_ptr = NULL;
>>
>> - /* FIXME: BIDI operation */
>> + /* Note: BIDI (bidirectional) operations are not yet supported */
>> if (cmd->tvc_sgl_count) {
>> sg_ptr = cmd->table.sgl;
>>
>> @@ -1168,7 +1168,7 @@ vhost_scsi_get_desc(struct vhost_scsi *vs, struct vhost_virtqueue *vq,
>>
>> /*
>> * Get the size of request and response buffers.
>> - * FIXME: Not correct for BIDI operation
>> + * Note: Size calculation is not correct for BIDI operations.
>> */
>> vc->out_size = iov_length(vq->iov, vc->out);
>> vc->in_size = iov_length(&vq->iov[vc->out], vc->in);
>> --
>> 2.43.0
>>
>
>Hey Weimin,
>
>This series is probably going to be ignored. Comment-only changes are
>almost never merged, and the code changes here don't look like genuine
>bugs.
>
>In the case that there are some real bugs, I'd recommend to setup a
>system and trigger a bug, and provide a reproducer.
>
>Best,
>Bobby
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-15 9:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 8:09 [PATCH 01/12] vhost-scsi: improve BIDI operation comments Weimin Xiong
2026-07-15 9:24 ` Bobby Eshleman
2026-07-15 9:36 ` xiongwm2026
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox