Re: [Qemu-devel] [RFC 06/15] qdev: Add device_type field to BusClass

2016-11-24 Thread Eduardo Habkost
On Thu, Nov 24, 2016 at 05:48:20PM +0100, Cornelia Huck wrote: > On Mon, 21 Nov 2016 23:12:04 -0200 > Eduardo Habkost wrote: > > > > > diff --git a/hw/pci/pci.c b/hw/pci/pci.c > > index 24fae16..74b8fef 100644 > > --- a/hw/pci/pci.c > > +++ b/hw/pci/pci.c > > @@ -152,6

Re: [Qemu-devel] [RFC 06/15] qdev: Add device_type field to BusClass

2016-11-24 Thread Cornelia Huck
On Mon, 21 Nov 2016 23:12:04 -0200 Eduardo Habkost wrote: > diff --git a/hw/pci/pci.c b/hw/pci/pci.c > index 24fae16..74b8fef 100644 > --- a/hw/pci/pci.c > +++ b/hw/pci/pci.c > @@ -152,6 +152,7 @@ static void pci_bus_class_init(ObjectClass *klass, void > *data) >

[Qemu-devel] [RFC 06/15] qdev: Add device_type field to BusClass

2016-11-21 Thread Eduardo Habkost
Each bus class will now be aware of the specific device type that can be plugged on it. Also add a read-only 'device-type' property to the class, that will be useful for: * Runtime check for which devices types can be plugged to the machine; * Validation of query-machines output by automated