On 02/15/2013 07:46 PM, Paolo Bonzini wrote: > Including data that resided in the QEMUFile's own buffer. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > migration.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/migration.c b/migration.c > index 0f3cb5d..609bd7c 100644 > --- a/migration.c > +++ b/migration.c > @@ -525,6 +525,8 @@ static ssize_t buffered_flush(MigrationState *s) > > DPRINTF("flushing %zu byte(s) of data\n", s->buffer_size); > > + qemu_fflush(s->file); > + > while (s->bytes_xfer < s->xfer_limit && offset < s->buffer_size) { > size_t to_send = MIN(s->buffer_size - offset, s->xfer_limit - > s->bytes_xfer); > ret = migrate_fd_put_buffer(s, s->buffer + offset, to_send); > Reviewed-by: Orit Wasserman <owass...@redhat.com>
- [Qemu-devel] [PATCH 26/41] migration: detect error before s... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 26/41] migration: detect error... Orit Wasserman
- [Qemu-devel] [PATCH 21/41] migration: run setup callbacks o... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 21/41] migration: run setup ca... Orit Wasserman
- Re: [Qemu-devel] [PATCH 21/41] migration: run setup ca... Juan Quintela
- [Qemu-devel] [PATCH 15/41] block-migration: remove variable... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 15/41] block-migration: remove... Orit Wasserman
- Re: [Qemu-devel] [PATCH 15/41] block-migration: remove... Juan Quintela
- [Qemu-devel] [PATCH 09/41] migration: flush all data to fd ... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 09/41] migration: flush all da... Orit Wasserman
- Re: [Qemu-devel] [PATCH 09/41] migration: flush all da... Juan Quintela
- [Qemu-devel] [PATCH 06/41] qemu-file: pass errno from qemu_... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 06/41] qemu-file: pass errno f... Orit Wasserman
- Re: [Qemu-devel] [PATCH 06/41] qemu-file: pass errno f... Juan Quintela
- [Qemu-devel] [PATCH 22/41] migration: yay, buffering is gon... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 22/41] migration: yay, bufferi... Orit Wasserman
- Re: [Qemu-devel] [PATCH 22/41] migration: yay, bufferi... Juan Quintela
- [Qemu-devel] [PATCH 08/41] qemu-file: temporarily expose qe... Paolo Bonzini
- Re: [Qemu-devel] [PATCH 08/41] qemu-file: temporarily ... Orit Wasserman
- Re: [Qemu-devel] [PATCH 08/41] qemu-file: temporarily ... Juan Quintela