qapi: Belatedly update CompatPolicy documentation for unstable
[qemu/kevin.git] / qapi / compat.json
blob42034d9368c066d42b5e205851ccd9354cdea192
1 # -*- Mode: Python -*-
2 # vim: filetype=python
4 ##
5 # = Compatibility policy
6 ##
8 ##
9 # @CompatPolicyInput:
11 # Policy for handling "funny" input.
13 # @accept: Accept silently
15 # @reject: Reject with an error
17 # @crash: abort() the process
19 # Since: 6.0
21 { 'enum': 'CompatPolicyInput',
22   'data': [ 'accept', 'reject', 'crash' ] }
25 # @CompatPolicyOutput:
27 # Policy for handling "funny" output.
29 # @accept: Pass on unchanged
31 # @hide: Filter out
33 # Since: 6.0
35 { 'enum': 'CompatPolicyOutput',
36   'data': [ 'accept', 'hide' ] }
39 # @CompatPolicy:
41 # Policy for handling deprecated management interfaces.
43 # This is intended for testing users of the management interfaces.
45 # Limitation: covers only syntactic aspects of QMP, i.e. stuff tagged
46 # with feature 'deprecated' or 'unstable'.  We may want to extend it
47 # to cover semantic aspects and CLI.
49 # Limitation: deprecated-output policy @hide is not implemented for
50 # enumeration values.  They behave the same as with policy @accept.
52 # @deprecated-input: how to handle deprecated input (default 'accept')
54 # @deprecated-output: how to handle deprecated output (default
55 #     'accept')
57 # @unstable-input: how to handle unstable input (default 'accept')
58 #     (since 6.2)
60 # @unstable-output: how to handle unstable output (default 'accept')
61 #     (since 6.2)
63 # Since: 6.0
65 { 'struct': 'CompatPolicy',
66   'data': { '*deprecated-input': 'CompatPolicyInput',
67             '*deprecated-output': 'CompatPolicyOutput',
68             '*unstable-input': 'CompatPolicyInput',
69             '*unstable-output': 'CompatPolicyOutput' } }