qemu/include/migration
Paolo Bonzini 4eb938102b qemu-file: temporarily expose qemu_file_set_error and qemu_fflush
Right now, migration cannot entirely rely on QEMUFile's automatic
drop of I/O after an error, because it does its "real" I/O outside
the put_buffer callback.  To fix this until buffering is gone, expose
qemu_file_set_error which we will use in buffered_flush.

Similarly, buffered_flush is not a complete flush because some data may
still reside in the QEMUFile's own buffer.  This somewhat complicates the
process of closing the migration thread.  Again, when buffering is gone
buffered_flush will disappear and calling qemu_fflush will not be needed;
in the meanwhile, we expose the function for use in migration.c.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2013-03-11 13:32:01 +01:00
..
block.h migration: move include files to include/migration/ 2012-12-19 08:31:32 +01:00
migration.h migration: calculate expected_downtime 2013-02-22 10:12:52 +01:00
page_cache.h migration: move include files to include/migration/ 2012-12-19 08:31:32 +01:00
qemu-file.h qemu-file: temporarily expose qemu_file_set_error and qemu_fflush 2013-03-11 13:32:01 +01:00
vmstate.h hw: move fifo.[ch] to libqemuutil 2013-03-01 13:53:10 +01:00