Re: [RFC PATCH 12/12] virtio: guarantee a virtqueue can publish its first descriptor chain

From
Randy Dunlap <rdunlap@infradead.org>
Date
2026-08-09 23:15:34
Also in
linux-doc, lkml
Reply to
Michael S. Tsirkin, 2026-08-09
On 8/9/26 3:41 PM, Michael S. Tsirkin wrote:
On Sun, Aug 09, 2026 at 06:20:10PM +0000, Alexander Graf wrote:
quoted
A device's pool is shared by every virtqueue it has and nothing
partitions it between them, so a virtqueue that asks late can get
nothing at all. virtnet_open() pre-fills the receive queues in index
order and discards the result, and a queue that came up with nothing is
one the device cannot signal a completion on.

Withhold a range of the pool from ordinary claims and let a virtqueue
whose ring is empty draw on it for one descriptor chain.
Why bother? one chain can just go inline in the ring.
https://people.kernel.org/tglx/notes-about-netiquette
or
https://subspace.kernel.org/etiquette.html

It would be good if 100s (or 1000s) or people didn't need to scan a 65 KB
email to see that most of it can be ignored.

-- 
~Randy
Thread (32 messages) 32 messages, 5 authors, last reply 2026-08-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help