On 23.11.26 16:38, Eugenio Perez Martin wrote: > On Mon, Nov 23, 2026 at 2:59 PM Dragos Tatulea <[email protected]> wrote: >> >> mlx5_vdpa has always advertised a maximum virtqueue size of 256 through >> .get_vq_num_max(), while accepting any queue size in .set_vq_num(). The >> hardware handles larger rings just fine and users have been running with >> 1024-entry queues (e.g. QEMU's virtio-net rx_queue_size/tx_queue_size) >> since the driver was introduced. >> >> The commit in the fixes tag vhost-vdpa enforces the advertised maximum >> on VHOST_SET_VRING_NUM, so configuring a 1024-entry queue fails with >> -EINVAL. >> >> Advertise 1024 which is the max that qemu uses today. The device itself >> supports more but doesn't advertise it in any way. >> >> The Fixes tag points at the vhost-vdpa commit rather than at the driver >> because that is where the mismatch became user visible. It also keeps >> this change out of trees without the vhost enforcement, where virtio-vdpa >> would otherwise start creating 1024-entry rings instead of 256. >> >> Fixes: ccb1dc7c527f ("vhost/vdpa: reject VRING_NUM larger than device max") > > Is it worth backporting this change? Nothing should break (or be > broken because of the 256 vq size), it sounds like an improvement to > me. > I considered it relevant for backporting because configuring VQs with 1K ring size was not working. > Either way, > > Acked-by: Eugenio Pérez <[email protected]> > Thanks for the Ack.
Thanks, Dragos
