qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 2/5] [RFC] libqblock, user example


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v3 2/5] [RFC] libqblock, user example
Date: Wed, 29 Aug 2012 13:11:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

Il 29/08/2012 13:05, Wenchao Xia ha scritto:
> +    printf("checking aio status for %d times.\n", check_times);
> +    while (true == qb_aio_check(broker)) {
> +        check_times++;
> +        usleep(1);
> +    }
> +

Busy waiting is not acceptable, and this is the reason why I had
suggested to keep AIO out of the design for now.

You need to provide an implementation of AIO for either glib or
something else, but this is best done within QEMU first (and only later
moved to libqblock).

Paolo



reply via email to

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