RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 647516 - [RFE] Automatic discovery of qdev structure/properties
Summary: [RFE] Automatic discovery of qdev structure/properties
Keywords:
Status: CLOSED DUPLICATE of bug 557939
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Amos Kong
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 693512
TreeView+ depends on / blocked
 
Reported: 2010-10-28 16:02 UTC by Glauber Costa
Modified: 2015-05-25 00:06 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-26 08:59:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Glauber Costa 2010-10-28 16:02:17 UTC
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.

Comment 1 Markus Armbruster 2011-02-18 06:56:20 UTC
There's "-device \?" and "-device DRIVER,\?".  But what we really want here is a solution in QMP.

Comment 2 Markus Armbruster 2011-04-29 09:02:07 UTC
Related bug 647516.

Comment 3 Markus Armbruster 2011-04-29 09:02:55 UTC
Buttefingers... related bug 557939.

Comment 5 Markus Armbruster 2011-06-07 13:22:02 UTC
QMP solution is related to (intertwined with?) upstream QAPI schema work.  Moving to RHEL-7.

Comment 7 Markus Armbruster 2013-09-10 08:25:24 UTC
Some relevant QMP commands have been created since comment#5:

* qom-list-types

* device-list-properties

As far as I can tell, libvirt already uses them.

However, they don't quite cover everything in -device help.  Missing
bits include:

* 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.

Comment 11 Amos Kong 2014-05-26 08:59:39 UTC
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 ***


Note You need to log in before you can comment on or make changes to this bug.