Johannes Berg
2021-May-17 09:11 UTC
[RFC PATCH 01/17] virtio_ring: Avoid reading unneeded used length
On Mon, 2021-05-17 at 17:08 +0800, Xie Yongji wrote:> If device driver doesn't need used length, it can pass a NULL > len in virtqueue_get_buf()/virtqueue_get_buf_ctx(). >Well, actually, it can't right now? You should probably rephrase this, saying something like Allow passing NULL to len in ... if the device driver doesn't need the length, and don't read it in that case. or so?> Then > we can avoid reading and validating the len value in used > ring entries.Not sure what that "validating" is about, I only see reading? johannes