qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QMP accepts double dict keys
@ 2018-12-03 16:30 Max Reitz
  2018-12-03 16:36 ` Eric Blake
  0 siblings, 1 reply; 6+ messages in thread
From: Max Reitz @ 2018-12-03 16:30 UTC (permalink / raw)
  To: qemu-devel@nongnu.org, Eric Blake, Markus Armbruster

[-- Attachment #1: Type: text/plain, Size: 670 bytes --]

Hi,

QMP accepts double keys in dicts without complaining.  The value it is
using is apparently the last one specified:

$ qemu-system-x86_64 -qmp stdio
{"QMP": {"version": {"qemu": {"micro": 93, "minor": 0, "major": 3},
"package": "v3.1.0-rc3-7-g87a45d86ed"}, "capabilities": []}}
{'execute':'qmp_capabilities'}
{"return": {}}
{'execute':'blockdev-add','arguments':{'driver':'null-co',
 'node-name':'foo','node-name':'bar'}}
{"return": {}}
{'execute':'query-named-block-nodes'}
{"return": [{ [...] "node-name": "bar" [...] }]}

Another test case is iotest 229 which specifies both mode=absolute-paths
and mode=existing (it wants the latter).

Max


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2018-12-05 12:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-03 16:30 [Qemu-devel] QMP accepts double dict keys Max Reitz
2018-12-03 16:36 ` Eric Blake
2018-12-03 19:48   ` Markus Armbruster
2018-12-03 19:57     ` Eric Blake
2018-12-04 10:24       ` Daniel P. Berrangé
2018-12-05 12:17       ` Dr. David Alan Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).