[PATCH 0/3] audio: make audiodev introspectable by mgmt apps

Daniel P. Berrangé posted 3 patches 3 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210302175524.1290840-1-berrange@redhat.com
Test checkpatch passed
audio/audio.c          | 35 ++++++++++++++++++++++++++
audio/audio_legacy.c   | 41 +++++++++++++++++++++++++++++-
audio/audio_template.h | 16 ++++++++++++
qapi/audio.json        | 57 ++++++++++++++++++++++++++++++++++--------
scripts/qapi/schema.py |  3 +++
5 files changed, 141 insertions(+), 11 deletions(-)
[PATCH 0/3] audio: make audiodev introspectable by mgmt apps
Posted by Daniel P. Berrangé 3 years, 2 months ago
The Audiodev QAPI type is not introspectable via query-qmp-schema as
nothing in QEMU uses it. -audiodev is not introspectable via
query-command-line-options because it avoided legacy QemuOpts

Even once that is fixed, the introspection lies about what is
actually possible because nearly all the audio backends are compile
time conditional, but the QAPI schema is fixed.

The last patch is a trivial addition that aided my debugging while
investigating the problems and not directly related/dependant.

Daniel P. Berrangé (3):
  qapi, audio: add query-audiodev command
  qapi, audio: respect build time conditions in audio schema
  qapi: provide a friendly string representation of QAPI classes

 audio/audio.c          | 35 ++++++++++++++++++++++++++
 audio/audio_legacy.c   | 41 +++++++++++++++++++++++++++++-
 audio/audio_template.h | 16 ++++++++++++
 qapi/audio.json        | 57 ++++++++++++++++++++++++++++++++++--------
 scripts/qapi/schema.py |  3 +++
 5 files changed, 141 insertions(+), 11 deletions(-)

-- 
2.29.2