All of lore.kernel.org
 help / color / mirror / Atom feed
* About query-qmp-schema
@ 2026-04-21  8:11 Marc-André Lureau
  2026-04-21 20:19 ` Marc-André Lureau
  0 siblings, 1 reply; 4+ messages in thread
From: Marc-André Lureau @ 2026-04-21  8:11 UTC (permalink / raw)
  To: QEMU; +Cc: Markus Armbruster

Hi

The query-qmp-schema returns a stripped-down version, removing types
unused by commands and events. It also renames types with integers.

That makes it impractical for a client to know which values are
acceptable for a generic qom-set commands: qom-list returns the real
"unmasked" type name, and it may be a type that is not even used by
qmp commands/events. A quick test shows the current schema is about
~243kb of json. With all types, it grows to ~273kb. Unmask it grows to
~308kb.

Could we send the full version? Eventually, we could have a "flavour":
"full" argument.

Another option is to compress the schema. A "full-gz" in baes64 would be 51kb.

-- 
Marc-André Lureau


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-04-22 13:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-21  8:11 About query-qmp-schema Marc-André Lureau
2026-04-21 20:19 ` Marc-André Lureau
2026-04-22 11:35   ` Markus Armbruster
2026-04-22 12:56     ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.