[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 10/11] config: Add header file for device config
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 10/11] config: Add header file for device config options |
Date: |
Fri, 10 Dec 2010 13:37:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Alexander Graf <address@hidden> writes:
> On 21.11.2010, at 13:37, Blue Swirl wrote:
>
>> On Fri, Nov 19, 2010 at 2:56 AM, 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.
>>
>> That does not seem right. Devices should not care about what other
>> devices may exist. Perhaps stub style approach would be better.
>
> Well, for the -drive parameter we need to know what devices we can create and
> I'd like to keep that code as close as possible to the actual device code.
Stupid question: why can't we just try to create, then check status to
figure out whether it failed because the device isn't available?
[...]
- Re: [Qemu-devel] [PATCH 10/11] config: Add header file for device config options,
Markus Armbruster <=