From: Sahil Siddiq <icegambit91@gmail.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: eperezma@redhat.com, sgarzare@redhat.com, qemu-devel@nongnu.org,
Sahil Siddiq <sahilcdq@proton.me>
Subject: Re: [PATCH] vdpa: Support setting vring_base for packed svq
Date: Sat, 16 Nov 2024 18:34:22 +0530 [thread overview]
Message-ID: <dae3a8a4-b60e-44db-9224-af3258c1e339@gmail.com> (raw)
In-Reply-To: <20241114015754-mutt-send-email-mst@kernel.org>
Hi,
On 11/14/24 12:28 PM, Michael S. Tsirkin wrote:
> On Mon, Nov 04, 2024 at 09:51:24PM +0530, Sahil Siddiq wrote:
>> Linux commit v5.14-rc1~30^2~8 enabled the vp_vdpa driver to set the
>> vq state to the device's initial state. This works differently for
>> split and packed vqs.
>>
>> With shadow virtqueues enabled, vhost-vdpa sets the vring base using
>> the VHOST_SET_VRING_BASE ioctl. The payload (vhost_vring_state)
>> differs for split and packed vqs. The implementation in QEMU currently
>> uses the payload required for split vqs (i.e., the num field of
>> vhost_vring_state is set to 0). The kernel throws EOPNOTSUPP when this
>> payload is used with packed vqs.
>>
>> This patch sets the num field in the payload appropriately so vhost-vdpa
>> (with the vp_vdpa driver) can use packed svqs.
>>
>> Link: https://lists.nongnu.org/archive/html/qemu-devel/2024-10/msg05106.html
>> Link: https://lore.kernel.org/r/20210602021536.39525-4-jasowang@redhat.com
>> Signed-off-by: Sahil Siddiq <sahilcdq@proton.me>
>
> Looks like a feature, not a bugfix to me, so I guess - next release?
>
Right. Also, based on the discussion in the reviews [1], it's been decided
to consider this patch for release when the patches to add support for
packed svqs [2] are also ready.
I'll resend this patch with the other patches.
Thanks,
Sahil
[1] https://lists.nongnu.org/archive/html/qemu-devel/2024-11/msg01432.html
[2] https://wiki.qemu.org/Internships/ProjectIdeas/PackedShadowVirtqueue
prev parent reply other threads:[~2024-11-16 13:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 16:21 [PATCH] vdpa: Support setting vring_base for packed svq Sahil Siddiq
2024-11-05 9:36 ` Stefano Garzarella
2024-11-05 14:54 ` Sahil Siddiq
2024-11-06 14:33 ` Stefano Garzarella
2024-11-06 15:00 ` Eugenio Perez Martin
2024-11-08 6:59 ` Sahil Siddiq
2024-11-14 6:58 ` Michael S. Tsirkin
2024-11-16 13:04 ` Sahil Siddiq [this message]
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=dae3a8a4-b60e-44db-9224-af3258c1e339@gmail.com \
--to=icegambit91@gmail.com \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sahilcdq@proton.me \
--cc=sgarzare@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.