]> git.proxmox.com Git - mirror_qemu.git/commit - qapi/block.json
qapi: Mark deprecated QMP parts with feature 'deprecated'
authorMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2020 11:54:51 +0000 (12:54 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2020 20:43:12 +0000 (21:43 +0100)
commitdf4097aeaf71e1ff0574222760821467a7c86c0f
treebad20a53694f5800b8b8b49207abbeefeea54170
parentf965e8fea6a915343d160ba6043deb75710d8df1
qapi: Mark deprecated QMP parts with feature 'deprecated'

Add feature 'deprecated' to the deprecated QMP commands, so their
deprecation becomes visible in output of query-qmp-schema.  Looks like
this:

    {"name": "query-cpus",
     "ret-type": "[164]",
     "meta-type": "command",
     "arg-type": "0",
---> "features": ["deprecated"]}

Management applications could conceivably use this for static
checking.

The deprecated commands are change, cpu-add, migrate-set-cache-size,
migrate_set_downtime, migrate_set_speed, query-cpus, query-events,
query-migrate-cache-size.

The deprecated command arguments are block-commit arguments @base and
@top, and block_set_io_throttle, blockdev-change-medium,
blockdev-close-tray, blockdev-open-tray, eject argument @device.

The deprecated command results are query-cpus-fast result @arch,
query-block result @dirty-bitmaps, query-named-block-nodes result
@encryption_key_missing and result @dirty-bitmaps's member @status.
Same for query-block result @inserted, which mirrors
query-named-block-nodes.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200317115459.31821-27-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
qapi/block-core.json
qapi/block.json
qapi/control.json
qapi/machine.json
qapi/migration.json
qapi/misc.json