mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Cc: sungbyeongchan <tjdqudcks0424@naver.com>,
	virtualization@lists.linux.dev, linux-kernel@vger.kernel.org,
	"Jason Wang" <jasowangio@gmail.com>,
	"Eugenio Pérez" <eperezma@redhat.com>
Subject: Re: [PATCH v2] virtio_ring: use shadow flags when detaching split descriptors
Date: Thu, 8 Oct 2026 02:19:48 -0400	[thread overview]
Message-ID: <20261008021938-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <1791422498.2257345-1-xuanzhuo@linux.alibaba.com>

On Thu, Oct 08, 2026 at 09:21:38AM +0800, Xuan Zhuo wrote:
> On Tue,  6 Oct 2026 19:21:12 +0900, sungbyeongchan <tjdqudcks0424@naver.com> wrote:
> > Fixes: 72b5e8958738 ("virtio-ring: store DMA metadata in desc_extra for split virtqueue")
> > Acked-by: Michael S. Tsirkin <mst@redhat.com>
> > Assisted-by: LLM
> > Signed-off-by: sungbyeongchan <tjdqudcks0424@naver.com>
> > ---
> > Changes in v2:
> > - Drop the commit message paragraphs as requested by Michael S. Tsirkin.
> 
> You misunderstood him.
> 
> We can not accept a commit without commit message.


Indeed.
> 
> > - Add Michael's Acked-by.
> >
> >  drivers/virtio/virtio_ring.c | 3 +--
> >  1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
> > index db678f5a80e03..b4cb433df1dec 100644
> > --- a/drivers/virtio/virtio_ring.c
> > +++ b/drivers/virtio/virtio_ring.c
> > @@ -905,7 +905,6 @@ static unsigned detach_buf_split_in_order(struct vring_virtqueue *vq,
> >  {
> >  	struct vring_desc_extra *extra;
> >  	unsigned int i;
> > -	__virtio16 nextflag = cpu_to_virtio16(vq->vq.vdev, VRING_DESC_F_NEXT);
> >
> >  	/* Clear data ptr. */
> >  	vq->split.desc_state[head].data = NULL;
> > @@ -915,7 +914,7 @@ static unsigned detach_buf_split_in_order(struct vring_virtqueue *vq,
> >  	/* Put back on free list: unmap first-level descriptors and find end */
> >  	i = head;
> >
> > -	while (vq->split.vring.desc[i].flags & nextflag) {
> > +	while (extra[i].flags & VRING_DESC_F_NEXT) {
> >  		i = vring_unmap_one_split(vq, &extra[i]);
> >  		vq->vq.num_free++;
> >  	}
> > --
> > 2.43.0
> >


  reply	other threads:[~2026-10-08  6:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 10:21 sungbyeongchan
2026-10-08  1:21 ` Xuan Zhuo
2026-10-08  6:19   ` Michael S. Tsirkin [this message]
2026-10-08  5:04 ` [PATCH v3] " sung byeongchan
2026-10-08  7:02   ` Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261008021938-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=eperezma@redhat.com \
    --cc=jasowangio@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tjdqudcks0424@naver.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®