From: Rusty Russell Date: Sat, 13 Jun 2009 04:27:04 +0000 (-0600) Subject: lguest: clean up length-used value in example launcher X-Git-Tag: v2.6.31-rc1~368^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e606490c440900e50ccf73a54f6fc6150ff40815;p=pandora-kernel.git 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: Rusty Russell --- Reading git-diff-tree failed