buffered_file: do not send more than s->bytes_xfer bytes per tick
commitbde54c08b4854aceee3dee25121a2b835cb81166
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Nov 2012 11:48:19 +0000 (20 12:48 +0100)
committerJuan Quintela <quintela@redhat.com>
Thu, 20 Dec 2012 21:44:29 +0000 (20 22:44 +0100)
treeda05647ab609f49616c0dbd73778356a04e3819f
parent244eaa7514a944b36273eb8428f32da8e9124fcf
buffered_file: do not send more than s->bytes_xfer bytes per tick

Sending more was possible if the buffer was large.

Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
buffered_file.c