diff options
author | Paolo Bonzini | 2012-08-07 11:07:59 +0200 |
---|---|---|
committer | Paolo Bonzini | 2012-11-02 18:35:07 +0100 |
commit | 595ab64169be9063d64c3b1aa1c249fbe2662221 (patch) | |
tree | 7b0188e657d3ca6471eb87d3d49d799a81397745 /qemu-sockets.c | |
parent | migration: move qemu_fclose to process_incoming_migration (diff) | |
download | qemu-595ab64169be9063d64c3b1aa1c249fbe2662221.tar.gz qemu-595ab64169be9063d64c3b1aa1c249fbe2662221.tar.xz qemu-595ab64169be9063d64c3b1aa1c249fbe2662221.zip |
migration: handle EAGAIN while reading QEMUFile
This will never happen right now (the assertion would fail). The
next patch will set the socket or pipe in non-blocking mode, thus
enabling this part of the code.
Coroutines can just stop whenever they want with qemu_coroutine_yield.
As soon as select tells the main loop that the migration stream is
readable, the coroutine is re-entered directly in qemu_get_buffer,
where it will read more data and pass it to the loading routines.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-sockets.c')
0 files changed, 0 insertions, 0 deletions