qemu/include/qapi
Markus Armbruster db29164103 qapi: Implement deprecated-input=reject for QMP command arguments
This policy rejects deprecated input, and thus permits "testing the
future".  Implement it for QMP command arguments: reject commands with
deprecated ones.  Example: when QEMU is run with -compat
deprecated-input=reject, then

    {"execute": "eject", "arguments": {"device": "cd"}}

fails like this

    {"error": {"class": "GenericError", "desc": "Deprecated parameter 'device' disabled by policy"}}

When the deprecated parameter is removed, the error will change to

    {"error": {"class": "GenericError", "desc": "Parameter 'device' is unexpected"}}

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210318155519.1224118-11-armbru@redhat.com>
2021-03-19 16:05:11 +01:00
..
qmp qapi: Implement deprecated-input=reject for QMP commands 2021-03-19 16:05:11 +01:00
clone-visitor.h qapi: Make visitor functions taking Error ** return bool, not void 2020-07-10 15:18:08 +02:00
compat-policy.h qapi: Implement deprecated-input=reject for QMP command arguments 2021-03-19 16:05:11 +01:00
dealloc-visitor.h include: Fix typos found by codespell 2017-01-24 23:26:52 +03:00
error.h error: Fix "Converting to ERRP_GUARD()" doc on "valid at return" 2021-03-05 15:40:42 +01:00
hmp-output-visitor.h hmp: Use QAPI NetdevInfo in hmp_info_network 2021-03-15 16:41:22 +08:00
opts-visitor.h Move include qemu/option.h from qemu-common.h to actual users 2018-02-09 13:52:16 +01:00
qmp-event.h qapi: Eliminate indirection through qmp_event_get_func_emit() 2019-01-24 10:01:05 +01:00
qobject-input-visitor.h qapi: Implement deprecated-input=reject for QMP command arguments 2021-03-19 16:05:11 +01:00
qobject-output-visitor.h qapi: Implement deprecated-output=hide for QMP command results 2021-03-19 15:43:33 +01:00
string-input-visitor.h qapi: Rewrite string-input-visitor's integer and list parsing 2018-12-13 19:10:06 +01:00
string-output-visitor.h qapi: Add new visit_complete() function 2016-07-06 10:52:04 +02:00
util.h qapi: Introduce QAPI_LIST_APPEND 2021-01-28 08:08:45 +01:00
visitor-impl.h qapi: Implement deprecated-input=reject for QMP command arguments 2021-03-19 16:05:11 +01:00
visitor.h qapi: Implement deprecated-input=reject for QMP command arguments 2021-03-19 16:05:11 +01:00