> > If I detect a incomplete write, I register an aio handler like this: > > > > ret = write(fd, buf, count) > > if (ret < 0 && (errno == EAGAIN || errno == EWOULDBLOCK) ) { > > ... > > qemu_aio_set_fd_handler(fd, NULL, vma_co_continue_write, > NULL, mydata); > > qemu_coroutine_yield(); > > > > But seems that qemu_aio_wait() returns false after that. > > > > I thought that should return true instead? > > You need a flush handler (fourth argument to qemu_aio_set_fd_handler) > that returns true.
Ok, that helps :-) Many thanks!