qapi: New -compat deprecated-input=crash

Policy "crash" calls abort() when deprecated input is received.

Bugs in integration tests may mask the error from policy "reject".
Provide a larger hammer: crash outright.  Masking that seems unlikely.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210318155519.1224118-12-armbru@redhat.com>
This commit is contained in:
Markus Armbruster 2021-03-18 16:55:19 +01:00
parent db29164103
commit dbb675c19a
4 changed files with 7 additions and 2 deletions

View file

@ -11,11 +11,12 @@
#
# @accept: Accept silently
# @reject: Reject with an error
# @crash: abort() the process
#
# Since: 6.0
##
{ 'enum': 'CompatPolicyInput',
'data': [ 'accept', 'reject' ] }
'data': [ 'accept', 'reject', 'crash' ] }
##
# @CompatPolicyOutput: