Hide Forgot
backport the following commit to qemu-kvm-rhel6 commit ad3005ad8c70a69705149d3ce6d1e51fb76edb15 Author: Amit Shah <amit.shah> Date: Tue Sep 25 00:05:16 2012 +0530 virtio-serial-bus: let chardev know the exact number of bytes requested Using the virtqueue_avail_bytes() function had an unnecessarily crippling effect on the number of bytes needed by the guest as reported to the chardev layer in the can_read() callback. Using the new virtqueue_get_avail_bytes() function will let us advertise the exact number of bytes we can send to the guest. Signed-off-by: Amit Shah <amit.shah> Signed-off-by: Michael S. Tsirkin <mst>
It seems we just check if the return value larger than 0 or not, we don't care about the detail number. So we don't need to backport it.