The structs of concern in this patch are those for which no other QAPI definition (currently) uses as a data type to describe its own arguments or as a branch of a union: i.e. they are not currently eligible to be inlined and as such the precise semantics of their intro/details split is *currently* of less concern. Of course, they could be inlined in the future, so the semantics of this split are still worth investigating. Signed-off-by: John Snow <jsnow@redhat.com> Message-ID: <20260928192557.509157-10-jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
89 lines
2.1 KiB
JSON
89 lines
2.1 KiB
JSON
# -*- Mode: Python -*-
|
|
# vim: filetype=python
|
|
|
|
##
|
|
# ********************
|
|
# Compatibility policy
|
|
# ********************
|
|
##
|
|
|
|
##
|
|
# @CompatPolicyInput:
|
|
# Policy for handling "funny" input.
|
|
#
|
|
# @accept: Accept silently
|
|
#
|
|
# @reject: Reject with an error
|
|
#
|
|
# @crash: abort() the process
|
|
#
|
|
# Since: 6.0
|
|
##
|
|
{ 'enum': 'CompatPolicyInput',
|
|
'data': [ 'accept', 'reject', 'crash' ] }
|
|
|
|
##
|
|
# @CompatPolicyOutput:
|
|
# Policy for handling "funny" output.
|
|
#
|
|
# @accept: Pass on unchanged
|
|
#
|
|
# @hide: Filter out
|
|
#
|
|
# Since: 6.0
|
|
##
|
|
{ 'enum': 'CompatPolicyOutput',
|
|
'data': [ 'accept', 'hide' ] }
|
|
|
|
##
|
|
# @CompatPolicySecurity:
|
|
# Policy for handling any devices or backends which do not provide
|
|
# a security boundary to protect against untrusted environments
|
|
#
|
|
# @accept: Allow any usage
|
|
#
|
|
# @reject: Reject with an error reported
|
|
#
|
|
# @warn: Allow any usage, with a warning reported
|
|
#
|
|
# Since: 11.2
|
|
##
|
|
{ 'enum': 'CompatPolicySecurity',
|
|
'data': [ 'accept', 'reject', 'warn' ] }
|
|
|
|
##
|
|
# @CompatPolicy:
|
|
# Policy for handling deprecated management interfaces.
|
|
#
|
|
# This is intended for testing users of the management interfaces.
|
|
#
|
|
# Limitation: covers only syntactic aspects of QMP, i.e. stuff tagged
|
|
# with feature 'deprecated' or 'unstable'. We may want to extend it
|
|
# to cover semantic aspects and CLI.
|
|
#
|
|
# Limitation: deprecated-output policy @hide is not implemented for
|
|
# enumeration values. They behave the same as with policy @accept.
|
|
#
|
|
# @deprecated-input: how to handle deprecated input (default 'accept')
|
|
#
|
|
# @deprecated-output: how to handle deprecated output (default
|
|
# 'accept')
|
|
#
|
|
# @unstable-input: how to handle unstable input (default 'accept')
|
|
# (since 6.2)
|
|
#
|
|
# @unstable-output: how to handle unstable output (default 'accept')
|
|
# (since 6.2)
|
|
#
|
|
# @insecure-types: how to handle types that are not declared secure
|
|
# (default 'accept') (since 11.2)
|
|
#
|
|
# Since: 6.0
|
|
##
|
|
{ 'struct': 'CompatPolicy',
|
|
'data': { '*deprecated-input': 'CompatPolicyInput',
|
|
'*deprecated-output': 'CompatPolicyOutput',
|
|
'*unstable-input': 'CompatPolicyInput',
|
|
'*unstable-output': 'CompatPolicyOutput',
|
|
'*insecure-types': 'CompatPolicySecurity' } }
|