qemu-e2k/softmmu
Markus Armbruster 6dd75472d5 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>
2021-03-19 15:43:33 +01:00
..
arch_init.c 8bit AVR port from Michael Rolnik. 2020-07-11 19:27:59 +01:00
balloon.c qapi: Restrict balloon-related commands to machine code 2020-09-29 15:41:35 +02:00
bootdevice.c softmmu: move more files to softmmu/ 2020-10-12 11:50:21 -04:00
cpu-throttle.c cpu-throttle: Remove timer_mod() from cpu_throttle_set() 2021-02-08 15:15:32 +01:00
cpu-timers.c qtest: delete superfluous inclusions of qtest.h 2021-03-09 06:03:53 +01:00
cpus.c sev/i386: Don't allow a system reset under an SEV-ES guest 2021-02-16 17:15:39 +01:00
datadir.c vl: extract softmmu/datadir.c 2020-12-10 12:15:18 -05:00
device_tree.c device_tree: add qemu_fdt_setprop_string_array helper 2021-03-10 15:34:11 +00:00
dma-helpers.c dma: Introduce dma_aligned_pow2_mask() 2021-03-12 12:40:10 +00:00
globals.c qmp: generalize watchdog-set-action to -no-reboot/-no-shutdown 2020-12-15 12:51:57 -05:00
icount.c accel/tcg: split CpusAccel into three TCG variants 2020-12-10 17:44:10 -06:00
ioport.c softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
main.c meson: move SDL and SDL-image detection to meson 2020-08-21 06:30:44 -04:00
memory.c fuzz: move some DMA hooks 2021-03-16 14:30:30 -04:00
memory_mapping.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
meson.build seccomp: convert to meson 2021-01-06 10:21:20 +01:00
physmem.c * add --enable/--disable-libgio to configure (Denis) 2021-03-17 22:18:54 +00:00
qdev-monitor.c clock: Define and use new clock_display_freq() 2021-01-04 23:24:44 +01:00
qemu-seccomp.c seccomp: Replace the word 'blacklist' 2021-03-09 22:15:19 +01:00
qtest.c accel: extend AccelState and AccelClass to user-mode 2021-02-05 10:24:15 -10:00
rtc.c qom: Allow optional sugar props 2021-02-08 16:57:37 +11:00
runstate-action.c runstate: cleanup reboot and panic actions 2021-01-21 13:00:41 +01:00
runstate.c sysemu: Let VMChangeStateHandler take boolean 'running' argument 2021-03-09 23:13:57 +01:00
timers-state.h cpu-timers, icount: new modules 2020-10-05 16:41:22 +02:00
tpm.c qapi: More complex uses of QAPI_LIST_APPEND 2021-01-28 08:08:45 +01:00
trace-events softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
trace.h softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
vl.c qemu-options: New -compat to set policy for deprecated interfaces 2021-03-19 15:43:33 +01:00