[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 10/12] config: Add header file for device config
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH 10/12] config: Add header file for device config options |
Date: |
Tue, 23 Nov 2010 20:37:24 +0100 |
On 23.11.2010, at 20:21, Blue Swirl wrote:
> On Tue, Nov 23, 2010 at 2:34 PM, Alexander Graf <address@hidden> wrote:
>> So far we have C preprocessor defines for target and host config
>> options, but we're lacking any information on which devices are
>> available.
>>
>> We do need that information at times though, for example in the
>> ahci patch where we need to call a legacy init function depending
>> on whether we have support compiled in or not.
>>
>> So this patch makes all config-devices options available as header
>> file. Please only include it in machine description code!
>
> How about including config-devices.h from hw/boards.h instead? On the
> downside, all targets will be recompiled when config-devices.h change,
> even if they don't have any device dependencies.
Not sure it makes sense to do this change this time around. If we can avoid
dependency on device configuration, we should. So if we can limit the scope
this is included in, it's good IMHO.
In fact, maybe the correct solution to the issue would be to move the legacy
-drive instantiation to the -drive code, as it is already with virtio-blk. If
used with -device and -drive ...,if=none the whole magic isn't necessary
anyways.
Alex
- [Qemu-devel] [PATCH 00/12] AHCI emulation support v4, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 05/12] ide: add ncq identify data for ahci sata drives, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 06/12] pci: add storage class for sata, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 07/12] pci: add ich7 pci id, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 09/12] ahci: add -drive support, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 04/12] ide: add DMA hooks to bus ops, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 01/12] ide: split ide command interpretation off, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 10/12] config: Add header file for device config options, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 11/12] ahci: spawn controller on demand, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 03/12] ide: add support for ide bus ops, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 12/12] ide: move pata specific parts to pata.c, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 02/12] ide: fix whitespace gap in ide_exec_cmd, Alexander Graf, 2010/11/23
- [Qemu-devel] [PATCH 08/12] ahci: add ahci emulation, Alexander Graf, 2010/11/23