Skip to content
  • Paolo Bonzini's avatar
    migration: handle EAGAIN while reading QEMUFile · 595ab641
    Paolo Bonzini authored
    
    
    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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    595ab641