Skip to content
Snippets Groups Projects
Commit e606490c authored by Rusty Russell's avatar Rusty Russell
Browse files

lguest: clean up length-used value in example launcher


The "len" field in the used ring for virtio indicates the number of
bytes *written* to the buffer.  This means the guest doesn't have to
zero the buffers in advance as it always knows the used length.

Erroneously, the console and network example code puts the length
*read* into that field.  The guest ignores it, but it's wrong.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent f086122b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment