qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Block layer roadmap


From: Frediano Ziglio
Subject: Re: [Qemu-devel] Block layer roadmap
Date: Thu, 28 Jul 2011 14:15:38 +0200

2011/7/28 Christoph Hellwig <address@hidden>:
> On Wed, Jul 27, 2011 at 01:37:31PM +0100, Stefan Hajnoczi wrote:
>> Coroutines in the block layer [Kevin]
>>  * Programming model to simplify block drivers without blocking QEMU threads
>
> Can anyone explain what the whole point of this is?  It really just is
> a bit of syntactic sugar for the current async state machines.  What does
> it buy us over going for real threading?
>

This has nothing (or few) to do with threads. Instead of splitting
functions in callbacks at every synchronous function it allow to write
more readable code. For instance after changing qcow code from current
to coroutine you remove about 400 lines (about 30%). This will help
maintaining code and develop more complicated optimizations.

About threading you can do threading using AIO and using coroutines.

Frediano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]