qemu-devel
[Top][All Lists]
Advanced

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

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


From: Paul Brook
Subject: Re: [Qemu-devel] [PATCH 0/5] qdev: add driver class support.
Date: Fri, 10 Jul 2009 11:13:54 +0100
User-agent: KMail/1.11.4 (Linux/2.6.29-2-amd64; KDE/4.2.4; x86_64; ; )

On Friday 10 July 2009, Gerd Hoffmann wrote:
> On 07/10/09 11:46, Paul Brook wrote:
> >>> But we also
> >>> have to consider the case where a single device exposes multiple types
> >>> of capabilities.
> >>
> >> I think we already agreed to move to a bitmap model to handle that.
> >
> > I still think this is best done via properties, rather than as a separate
> > feature.
>
> Properties really don't fit here IMO.  Property values belong to a
> device *instance*, not to a device *driver*.  If you stick two e1000
> network cards into your virtual machine both instances will have
> different pci bus and mac addresses.  They wouldn't have different
> device capabilities though.

No, but the presence of a mac address (or network backend) property tells you 
that it's a network card.

Paul





reply via email to

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