]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console makes incorrect assumption about virtio API
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 8 Apr 2010 15:46:16 +0000 (09:46 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 8 Apr 2010 00:16:17 +0000 (09:46 +0930)
commit519c4aa9a6b59b72064a4271f313520b6b9ae9d8
treea3c16833f8d9c0eb3d4194f4fd11c98e3899ffb4
parent183e5c88e151c6fcd290de98a98fcd0176e6d7a0
virtio: console makes incorrect assumption about virtio API

The get_buf() API sets the second arg to the number of bytes *written*
by the other side; in this case it should be zero as these are output buffers.

lguest gets this right (obviously kvm's console doesn't), resulting in
continual buildup of console writes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Amit Shah <amit.shah@redhat.com>
drivers/char/virtio_console.c