thoughts on: virtio: skipping used buffers without IN_ORDER
Hello!
At the moment, if a device uses multiple buffers, it has to write out a descriptor per buffer. The only exception is with IN_ORDER where device can skip buffers, with driver keeping track of IDs.
IN_ORDER is however quite limited in what it can do. It's not a good fit for storage, and probably not for RX networking.
It's not hard to extend IN_ORDER so it doesn't apply to specific rings. A harder question is still writing a single descriptor in this case. One somewhat easy fix it just to allow descriptors to include multiple IDs. E.g. address is ignored in used descriptors, we can fit 4 extra IDs in there. For descriptors where we don't care about the length, we can stick a couple more IDs on top of that.
I can't say it's all very elegant. Also, is that enough of a win? We can still end up with multiple descriptors.
More thoughts?
Thanks,
Signature · 18 lines
MST This publicly archived list offers a means to provide input to the OASIS Virtual I/O Device (VIRTIO) TC. In order to verify user consent to the Feedback License terms and to minimize spam in the list archive, subscription is required before posting. Subscribe: [email protected] Unsubscribe: [email protected] List help: [email protected] List archive: https://lists.oasis-open.org/archives/virtio-comment/ Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists Committee: https://www.oasis-open.org/committees/virtio/ Join OASIS: https://www.oasis-open.org/join/