qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH/RFC] provide --accel option


From: Glauber Costa
Subject: Re: [Qemu-devel] [PATCH/RFC] provide --accel option
Date: Fri, 12 Sep 2008 16:14:17 -0300

On Fri, Sep 12, 2008 at 4:07 PM, Blue Swirl <address@hidden> wrote:
> On 9/12/08, Glauber Costa <address@hidden> wrote:
>> The --accel option will provide us the ability of defining which
>>  accelerator to pick at run time. It has the advantage of not using
>>  the not-well-accepted constructor directives, and also, of stabilishing
>>  a way to define priorities among accelerators.
>>
>>  The ones registered first, are tried first.
>
>>  +            case QEMU_OPTION_accel:
>>  +                {
>>  +                    int i;
>>  +                    for (i = 0; i < sizeof(available_accels)/sizeof(void 
>> *); i++) {
>
> ARRAY_SIZE(available_accels)?
agreed.

>>  +                        if (!strcasecmp(optarg, available_accels[i]->name))
>>  +                            register_qemu_accel(available_accels[i]);
>>  +                    }
>>  +                }
>>  +                break;
>
>
>



-- 
Glauber Costa.
"Free as in Freedom"
http://glommer.net

"The less confident you are, the more serious you have to act."




reply via email to

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