Red Hat Bugzilla – Bug 647516
[RFE] Automatic discovery of qdev structure/properties
Last modified: 2015-05-24 20:06:02 EDT
Qdev should be able to output which devices are available on the system, and which properties each device have. Our only current option is to parse -help output, which is cumbersome.
-device [dev] ? is a suggestion for command line switch, but the mechanics of it are pretty open.
There's "-device \?" and "-device DRIVER,\?". But what we really want here is a solution in QMP.
Related bug 647516.
Buttefingers... related bug 557939.
QMP solution is related to (intertwined with?) upstream QAPI schema work. Moving to RHEL-7.
Some relevant QMP commands have been created since comment#5:
As far as I can tell, libvirt already uses them.
However, they don't quite cover everything in -device help. Missing
* Bus type: DeviceClass member bus_type
* Alias name: DeviceClass method qdev_class_get_alias()
* Device categories: DeviceClass member categories (new upstream, not
yet in RHEL-7)
* Description: DeviceClass member desc
* no-user: DeviceClass member no_user
Not sure libvirt really needs all of them.
According to comment #9, close this bug.
qdev structure/properties are defined in qapi-schema.json, the content will be dumped out for management when we finished bz 557939.
*** This bug has been marked as a duplicate of bug 557939 ***