On Fri, 30 Mar 2012 09:49:20 +0200 Paolo Bonzini <pbonz...@redhat.com> wrote:
> 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? I'm resuming this topic because I've resumed my work on this series. 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. But it shouldn't be a problem to limit it to devices at this point, as all qom commands are unstable, right? Now, I have no idea how to make device_add ?, as it accesses DeviceClass properties like no_user and bus_info...