All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] async block driver questions
@ 2014-11-28 14:02 Iwan Budi Kusnanto
  0 siblings, 0 replies; only message in thread
From: Iwan Budi Kusnanto @ 2014-11-28 14:02 UTC (permalink / raw)
  To: qemu-devel

Hi all,

I have some questions regarding developing async network protocol
based block driver for qemu.
The network file server has async client library, and i think it will
be good if i can use it.

1. Is it OK to use libevent inside block driver.
What make me worried is that qemu itself said to be an event driven
program with it's own main loop

2. any example on how to create many coroutine and waiting for it's completion?
I thought i can just do qemu_coroutine_create and followed by
qemu_coroutine_enter, but the things become complex because
qemu_coroutine_yield will return the 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-28 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-28 14:02 [Qemu-devel] async block driver questions Iwan Budi Kusnanto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.