mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
qemu-options: New -compat to set policy for deprecated interfaces
New option -compat lets you configure what to do when deprecated interfaces get used. This is intended for testing users of the management interfaces. It is experimental. -compat deprecated-input=<input-policy> configures what to do when deprecated input is received. Input policy can be "accept" (accept silently), or "reject" (reject the request with an error). -compat deprecated-output=<out-policy> configures what to do when deprecated output is sent. Output policy can be "accept" (pass on unchanged), or "hide" (filter out the deprecated parts). Default is "accept". Policies other than "accept" are implemented later in this series. For now, -compat covers only syntactic aspects of QMP, i.e. stuff tagged with feature 'deprecated'. We may want to extend it to cover semantic aspects, CLI, and experimental features. Note that there is no good way for management application to detect presence of -compat: it's not visible output of query-qmp-schema or query-command-line-options. Tolerable, because it's meant for testing. If running with -compat fails, skip the test. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20210318155519.1224118-3-armbru@redhat.com>
This commit is contained in:
@@ -3507,6 +3507,26 @@ DEFHEADING()
|
||||
|
||||
DEFHEADING(Debug/Expert options:)
|
||||
|
||||
DEF("compat", HAS_ARG, QEMU_OPTION_compat,
|
||||
"-compat [deprecated-input=accept|reject][,deprecated-output=accept|hide]\n"
|
||||
" Policy for handling deprecated management interfaces\n",
|
||||
QEMU_ARCH_ALL)
|
||||
SRST
|
||||
``-compat [deprecated-input=@var{input-policy}][,deprecated-output=@var{output-policy}]``
|
||||
Set policy for handling deprecated management interfaces (experimental):
|
||||
|
||||
``deprecated-input=accept`` (default)
|
||||
Accept deprecated commands and arguments
|
||||
``deprecated-input=reject``
|
||||
Reject deprecated commands and arguments
|
||||
``deprecated-output=accept`` (default)
|
||||
Emit deprecated command results and events
|
||||
``deprecated-output=hide``
|
||||
Suppress deprecated command results and events
|
||||
|
||||
Limitation: covers only syntactic aspects of QMP.
|
||||
ERST
|
||||
|
||||
DEF("fw_cfg", HAS_ARG, QEMU_OPTION_fwcfg,
|
||||
"-fw_cfg [name=]<name>,file=<file>\n"
|
||||
" add named fw_cfg entry with contents from file\n"
|
||||
|
||||
Reference in New Issue
Block a user