Bug 1004232 - virtio-serial-bus: let chardev know the exact number of bytes requested
Summary: virtio-serial-bus: let chardev know the exact number of bytes requested
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Amos Kong
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-04 09:04 UTC by Amos Kong
Modified: 2015-05-25 00:07 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-26 06:19:33 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Amos Kong 2013-09-04 09:04:53 UTC
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>

Comment 2 Amos Kong 2013-09-26 06:19:33 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.