Il 10/04/2012 16:30, Luiz Capitulino ha scritto: > On Tue, 10 Apr 2012 16:27:43 +0200 > Paolo Bonzini <pbonz...@redhat.com> wrote: > >> Il 10/04/2012 16:23, Luiz Capitulino ha scritto: >>>>> Regarding device_add ? and device_add foo,? I would implement it as >>>>> separate QMP commands hooking into QOM, such as qom_list_types (taking >>>>> the superclass as an optional argument) and qom_properties. But the >>>>> latter first needs static properties to move up from devices to objects. >>>>> I'll take a look at that. >>> Have you? >> >> Yes, patches were on the list. I'll submit v2 tomorrow or thursday. > > Great. > >>> I think that for device_add foo,? we could introduce >>> qom-list-type-properties. >>> Seems simple if limited to devices, not sure how to make it generic though. >> >> With those patches you can make it generic. > > Cool, what about device_add ?, any recommendations?
That's easier, you can just list non-abstract types with TYPE_DEVICE superclass (note that's a macro). Paolo