Files
qemu-reims-vgpu/qapi
Marc-André Lureau 0eee31cf10 qapi/qom: add qapi-type to qom-list, qom-list-properties, qom-list-get
QOM introspection is flawed: the type information is just a
string (ObjectPropertyInfo and ObjectPropertyValue field 'type').
Management applications need to know these strings. Their
documentation is of little help.

QAPI introspection is more powerful, and management applications
already know how to use it. Let's put it to use for QOM introspection.

Add an optional 'qapi-type' field to ObjectPropertyInfo and
ObjectPropertyValue. When present, it contains the masked type name that
can be looked up in query-qmp-schema output. Absent for properties
without a QAPI type association. Always absent for now, populated
in the following changes.

This cannot fully replace 'type', yet: it doesn't cover child and link
properties.  Mark 'unstable' for now.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20261101201717.3911097-12-armbru@redhat.com>
2026-11-02 19:35:20 +01:00
..
2026-11-02 19:35:20 +01:00
2026-09-30 07:51:00 +02:00