Bug 963590

Summary: Full introspection support for QMP: query-qmp-schema
Product: Red Hat Enterprise Linux 7 Reporter: Amos Kong <akong>
Component: qemu-kvmAssignee: Amos Kong <akong>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, ailan, juzhang, lcapitulino, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-16 12:31:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amos Kong 2013-05-16 08:18:10 UTC
One important feature for QMP in 1.6 is full introspection support.

By that we mean having a command like query-qmp-schema which returns the contents of qapi-schema.json in json format. The query-command-line-options command is a simple example of such a command.

qapi-schema.json is processed by qapi python scripts to generate C
files, I found the content is good enough for Libvirt to know the
QMP command schema. We can change qapi scripts to generate a talbe/list
to record the raw string, then we can return the raw string in
qmp_query_qmp_schema().

Comment 1 Luiz Capitulino 2013-05-16 12:31:18 UTC
Amos, it turns out that we already have a BZ for this. I'm going to close this one as a dupe and re-assign the original one to you. Feel free to add new information as a comment.

*** This bug has been marked as a duplicate of bug 557939 ***