Re: [Qemu-devel] [PATCH 12/41] migration: do not nest flushing of device data

2013-02-22 Thread Juan Quintela
Paolo Bonzini wrote: > Completion of migration is currently done with a "nested" loop that > invokes buffered_flush: migrate_fd_completed is called by > buffered_file_thread, which calls migrate_fd_cleanup, which calls > buffered_close (via qemu_fclose), which flushes the buffer. > > Simplify this

Re: [Qemu-devel] [PATCH 12/41] migration: do not nest flushing of device data

2013-02-19 Thread Orit Wasserman
On 02/15/2013 07:46 PM, Paolo Bonzini wrote: > Completion of migration is currently done with a "nested" loop that > invokes buffered_flush: migrate_fd_completed is called by > buffered_file_thread, which calls migrate_fd_cleanup, which calls > buffered_close (via qemu_fclose), which flushes the bu

[Qemu-devel] [PATCH 12/41] migration: do not nest flushing of device data

2013-02-15 Thread Paolo Bonzini
Completion of migration is currently done with a "nested" loop that invokes buffered_flush: migrate_fd_completed is called by buffered_file_thread, which calls migrate_fd_cleanup, which calls buffered_close (via qemu_fclose), which flushes the buffer. Simplify this, by reusing the buffered_flush c