Re: [Qemu-devel] [PATCH 35/41] migration: use QEMUFile for writing outgoing migration data

2013-02-22 Thread Juan Quintela
Juan Quintela wrote: > Paolo Bonzini wrote: >> Second, drop the file descriptor indirection, and write directly to the >> QEMUFile. >> >> Signed-off-by: Paolo Bonzini > >> +qemu_put_buffer(s->migration_file, buf, size); >> +if (qemu_file_get_error(s->migration_file)) { >> +return

Re: [Qemu-devel] [PATCH 35/41] migration: use QEMUFile for writing outgoing migration data

2013-02-22 Thread Juan Quintela
Paolo Bonzini wrote: > Second, drop the file descriptor indirection, and write directly to the > QEMUFile. > > Signed-off-by: Paolo Bonzini > +qemu_put_buffer(s->migration_file, buf, size); > +if (qemu_file_get_error(s->migration_file)) { > +return qemu_file_get_error(s->migratio

Re: [Qemu-devel] [PATCH 35/41] migration: use QEMUFile for writing outgoing migration data

2013-02-21 Thread Orit Wasserman
On 02/15/2013 07:47 PM, Paolo Bonzini wrote: > Second, drop the file descriptor indirection, and write directly to the > QEMUFile. > > Signed-off-by: Paolo Bonzini > --- > include/migration/migration.h |4 --- > migration-exec.c | 12 --- > migration-fd.c

[Qemu-devel] [PATCH 35/41] migration: use QEMUFile for writing outgoing migration data

2013-02-15 Thread Paolo Bonzini
Second, drop the file descriptor indirection, and write directly to the QEMUFile. Signed-off-by: Paolo Bonzini --- include/migration/migration.h |4 --- migration-exec.c | 12 --- migration-fd.c| 12 --- migration-tcp.c | 12 --