[Qemu-devel] [PATCH 07/18] nbd: convert to use qio_channel_yield

2017-02-13 Thread Paolo Bonzini
In the client, read the reply headers from a coroutine, switching the read side between the "read header" coroutine and the I/O coroutine that reads the body of the reply. In the server, if the server can read more requests it will create a new "read request" coroutine as soon as a request has bee

[Qemu-devel] [PATCH 07/18] nbd: convert to use qio_channel_yield

2017-02-13 Thread Paolo Bonzini
In the client, read the reply headers from a coroutine, switching the read side between the "read header" coroutine and the I/O coroutine that reads the body of the reply. In the server, if the server can read more requests it will create a new "read request" coroutine as soon as a request has bee

[Qemu-devel] [PATCH 07/18] nbd: convert to use qio_channel_yield

2017-02-01 Thread Paolo Bonzini
In the client, read the reply headers from a coroutine, switching the read side between the "read header" coroutine and the I/O coroutine that reads the body of the reply. In the server, if the server can read more requests it will create a new "read request" coroutine as soon as a request has bee