[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACGkMEt3OCWT635djnT8O97B7Be2Xi=2kjnMPb8u1U=_B1fKdQ@mail.gmail.com>
Date: Tue, 21 Oct 2025 11:28:04 +0800
From: Jason Wang <jasowang@...hat.com>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: xuanzhuo@...ux.alibaba.com, eperezma@...hat.com,
virtualization@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH V8 13/19] virtio_ring: introduce virtqueue ops
On Mon, Oct 20, 2025 at 6:41 PM Michael S. Tsirkin <mst@...hat.com> wrote:
>
> On Mon, Oct 20, 2025 at 03:09:57PM +0800, Jason Wang wrote:
> > @@ -2782,7 +2874,8 @@ int virtqueue_resize(struct virtqueue *_vq, u32 num,
> > if (!num)
> > return -EINVAL;
> >
> > - if ((vq->packed_ring ? vq->packed.vring.num : vq->split.vring.num) == num)
> > + if ((virtqueue_is_packed(vq) ? vq->packed.vring.num :
> > + vq->split.vring.num) == num)
> > return 0;
> >
> > err = virtqueue_disable_and_recycle(_vq, recycle);
>
>
> This is exactly virtqueue_get_vring_size:
>
Yes, I've switched to use virtqueue_get_vring_size() here.
Thanks
Powered by blists - more mailing lists