[Top][All Lists]

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

Re: [Qemu-devel] [PATCH 0/5] qdev: add driver class support.

From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 0/5] qdev: add driver class support.
Date: Thu, 09 Jul 2009 15:39:24 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2

On 07/09/09 15:19, Paul Brook wrote:
On Thursday 09 July 2009, Gerd Hoffmann wrote:

This patch series brings driver classes to qdev.

I'm not sure this is a good idea. You should be able to figure it out from the
device properties.

I don't think this will work out in the general case. Some devices have properties which can be used for that, i.e. network cards have a mac address (no attribute yet but I expect it will come some day). Not every device class has specific properties you can use to identify them though. How would you identify a sound card for example?

Plus there's no reason why a device can't implement
multiple "classes" of device.

Hmm, good point.  How about using a bitmap then?


reply via email to

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