diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-22 17:36:14 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-11 13:32:01 +0100 |
commit | 4eb938102b3d533e142de23e255e46da1326fc5a (patch) | |
tree | 9ac202356edba6753ed1c7a55e1d567fd5832c6d /hw/cbus.c | |
parent | 47c8c17af883b5bd0f147cfcec8d7ef8ff76023b (diff) | |
download | hqemu-4eb938102b3d533e142de23e255e46da1326fc5a.zip hqemu-4eb938102b3d533e142de23e255e46da1326fc5a.tar.gz |
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>
Diffstat (limited to 'hw/cbus.c')
0 files changed, 0 insertions, 0 deletions