[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 17/32] build list of available accelerators
From: |
Glauber Costa |
Subject: |
[Qemu-devel] Re: [PATCH 17/32] build list of available accelerators |
Date: |
Thu, 23 Oct 2008 13:09:06 -0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Oct 23, 2008 at 03:45:02PM +0200, Avi Kivity wrote:
> Glauber Costa wrote:
>> From: Glauber Costa <address@hidden>
>>
>> instead of hardcoding kqemu_start() in exec.c, which would require
>> such a hack for all available accelerators, semantics of
>> register_qemu_accel()
>> is changed a little bit. It only builds a list of available accelerators.
>> The last one registered is the first tried.
>>
>> This is a temporary solution, since we don't control exactly the order in
>> which
>> things are loaded by the constructor attributes. The final goal is to have
>> command
>> line switches and priority lists to determine that.
>>
>> "info accelerator" is changed to accomodate it. It now prints a list of
>> available
>> accelerators, and only if one of them is active, a detailed description of
>> it is printed.
>>
>> #define MAX_INFO_BUF 1024
>> typedef struct QEMUAccel {
>> + char *name;
>>
>
> const, or warnings you get.
>
>> +typedef struct QEMUCont {
>> + QEMUAccel *acc;
>> + int active;
>> + struct QEMUCont *next;
>> +} QEMUCont;
>>
>
> The name is unclear. But you could fold the structure into QEMUAccel, no?
Yes, it was folded in my first version. It is separated just to allow external
accelerators to register themselves without messing with the accelerator list,
which
would be internal. But I'm probably just being overzealous.
>
> --
> I have a truly marvellous patch that fixes the bug which this
> signature is too narrow to contain.
>
- [Qemu-devel] [PATCH 10/32] turn info kqemu into generic info accelerator, (continued)
- [Qemu-devel] [PATCH 10/32] turn info kqemu into generic info accelerator, Glauber Costa, 2008/10/23
- [Qemu-devel] [PATCH 16/32] remove kqemu reference from hw/pc.c, Glauber Costa, 2008/10/23
- [Qemu-devel] [PATCH 12/32] move kqemu externs to kqemu.h, Glauber Costa, 2008/10/23
- [Qemu-devel] [PATCH 11/32] separate accelerator part of info profiler, Glauber Costa, 2008/10/23
- [Qemu-devel] [PATCH 21/32] get_env accel wrapper, Glauber Costa, 2008/10/23
- [Qemu-devel] [PATCH 17/32] build list of available accelerators, Glauber Costa, 2008/10/23
- [Qemu-devel] [PATCH 14/32] set_notdirty goes through accel wrapper, Glauber Costa, 2008/10/23
- [Qemu-devel] [PATCH 22/32] add next_cpu_index, Glauber Costa, 2008/10/23
[Qemu-devel] [PATCH 23/32] move cpu_get_time_fast to kqemu.c, Glauber Costa, 2008/10/23
[Qemu-devel] [PATCH 26/32] provide two accelerators for kqemu, Glauber Costa, 2008/10/23
[Qemu-devel] [PATCH 24/32] check wether kqemu is enabled in open code, Glauber Costa, 2008/10/23