he control back to caller
I also found about coQueue, but not sure how to use it.
3. Do we need to make our bdrv_read and bdrv_write to be thread safe?
Thanks before.
--
Iwan Budi Kusnanto
On Fri, Nov 28, 2014 at 7:47 PM, Stefan Hajnoczi wrote:
> On Fri, Nov 28, 2014 at 01:55:00PM +0700, Iwan Budi Kusnanto wrote:
>> I meant, does the coroutine will do yield internally when it get
>> blocked on send(3)?
>
> No. In general, QEMU will use non-blocking fi
I meant, does the coroutine will do yield internally when it get
blocked on send(3)?
On Fri, Nov 28, 2014 at 1:50 PM, Iwan Budi Kusnanto wrote:
> Hi all,
>
> I just found about coroutine in Qemu and it looks good for my use case.
> I have a question about this.
> I found this
&g
tines is always explicit. Coroutines
run until termination or an explicit yield."
at http://blog.vmsplice.net/2014/01/coroutines-in-qemu-basics.html
How about the case where we do blocking send(3) on socket?
Regards,
--
Iwan Budi Kusnanto