2022-03-26 01:16:05 +03:00
|
|
|
# -*- Mode: Python -*-
|
|
|
|
# vim: filetype=python
|
|
|
|
|
2020-02-24 17:30:03 +03:00
|
|
|
{ 'pragma': { 'doc-required': true } }
|
|
|
|
|
2023-11-13 19:29:28 +03:00
|
|
|
# Entries in these lists are allowed to violate the QAPI rules (for
|
|
|
|
# historical reasons); think twice before you add to them!
|
2020-02-24 17:30:03 +03:00
|
|
|
{ 'pragma': {
|
2022-05-10 11:14:33 +03:00
|
|
|
# Command names containing '_'
|
2021-03-23 12:40:21 +03:00
|
|
|
'command-name-exceptions': [
|
|
|
|
'add_client',
|
|
|
|
'block_resize',
|
|
|
|
'block_set_io_throttle',
|
|
|
|
'client_migrate_info',
|
|
|
|
'device_add',
|
|
|
|
'device_del',
|
|
|
|
'expire_password',
|
|
|
|
'migrate_cancel',
|
|
|
|
'netdev_add',
|
|
|
|
'netdev_del',
|
|
|
|
'qmp_capabilities',
|
|
|
|
'set_link',
|
|
|
|
'set_password',
|
|
|
|
'system_powerdown',
|
|
|
|
'system_reset',
|
|
|
|
'system_wakeup' ],
|
2022-05-10 11:14:33 +03:00
|
|
|
# Commands allowed to return a non-dictionary
|
2021-03-23 12:40:16 +03:00
|
|
|
'command-returns-exceptions': [
|
2020-02-24 17:30:03 +03:00
|
|
|
'human-monitor-command',
|
|
|
|
'qom-get',
|
|
|
|
'query-tpm-models',
|
|
|
|
'query-tpm-types',
|
|
|
|
'ringbuf-read' ],
|
qapi: Require member documentation (with loophole)
The QAPI generator forces you to document your stuff. Except for
command arguments, event data, and members of enum and object types:
these the generator silently "documents" as "Not documented".
We can't require proper documentation there without first fixing all
the offenders. We've always had too many offenders to pull that off.
Right now, we have more than 500. Worse, we seem to fix old ones no
faster than we add new ones: in the past year, we fixed 22 ones, but
added 26 new ones.
To help arrest the backsliding, make missing documentation an error
unless the command, type, or event is in listed in new pragma
documentation-exceptions.
List all the current offenders: 117 commands and types in qapi/, and 9
in qga/.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240205074709.3613229-7-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2024-02-05 10:47:00 +03:00
|
|
|
# Types, commands, and events with undocumented members / arguments:
|
|
|
|
'documentation-exceptions': [
|
|
|
|
'AbortWrapper',
|
|
|
|
'AudiodevDriver',
|
|
|
|
'BlkdebugEvent',
|
|
|
|
'BlockDirtyBitmapAddWrapper',
|
|
|
|
'BlockDirtyBitmapMergeWrapper',
|
|
|
|
'BlockDirtyBitmapWrapper',
|
|
|
|
'BlockdevBackupWrapper',
|
|
|
|
'BlockdevDriver',
|
|
|
|
'BlockdevQcow2EncryptionFormat',
|
|
|
|
'BlockdevSnapshotInternalWrapper',
|
|
|
|
'BlockdevSnapshotSyncWrapper',
|
|
|
|
'BlockdevSnapshotWrapper',
|
|
|
|
'BlockdevVmdkAdapterType',
|
|
|
|
'ChardevBackendKind',
|
|
|
|
'CxlCorErrorType',
|
|
|
|
'DisplayProtocol',
|
|
|
|
'DriveBackupWrapper',
|
|
|
|
'DummyBlockCoreForceArrays',
|
|
|
|
'DummyForceArrays',
|
|
|
|
'DummyVirtioForceArrays',
|
|
|
|
'GrabToggleKeys',
|
|
|
|
'HotKeyMod',
|
|
|
|
'ImageInfoSpecificKind',
|
|
|
|
'InputAxis',
|
|
|
|
'InputButton',
|
|
|
|
'IscsiHeaderDigest',
|
|
|
|
'IscsiTransport',
|
|
|
|
'JSONType',
|
|
|
|
'KeyValueKind',
|
|
|
|
'MemoryDeviceInfoKind',
|
|
|
|
'NetClientDriver',
|
|
|
|
'ObjectType',
|
|
|
|
'PciMemoryRegion',
|
|
|
|
'QCryptoAkCipherKeyType',
|
|
|
|
'QCryptodevBackendServiceType',
|
|
|
|
'QKeyCode',
|
|
|
|
'RbdAuthMode',
|
|
|
|
'RbdImageEncryptionFormat',
|
2024-09-04 14:18:26 +03:00
|
|
|
'S390CpuEntitlement',
|
|
|
|
'S390CpuPolarization',
|
|
|
|
'S390CpuState',
|
qapi: Require member documentation (with loophole)
The QAPI generator forces you to document your stuff. Except for
command arguments, event data, and members of enum and object types:
these the generator silently "documents" as "Not documented".
We can't require proper documentation there without first fixing all
the offenders. We've always had too many offenders to pull that off.
Right now, we have more than 500. Worse, we seem to fix old ones no
faster than we add new ones: in the past year, we fixed 22 ones, but
added 26 new ones.
To help arrest the backsliding, make missing documentation an error
unless the command, type, or event is in listed in new pragma
documentation-exceptions.
List all the current offenders: 117 commands and types in qapi/, and 9
in qga/.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240205074709.3613229-7-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2024-02-05 10:47:00 +03:00
|
|
|
'String',
|
|
|
|
'StringWrapper',
|
|
|
|
'SysEmuTarget',
|
|
|
|
'ThrottleGroupProperties',
|
|
|
|
'VncPrimaryAuth',
|
|
|
|
'VncVencryptSubAuth',
|
|
|
|
'X86CPURegister32',
|
|
|
|
'XDbgBlockGraph',
|
|
|
|
'YankInstanceType',
|
|
|
|
'blockdev-reopen',
|
|
|
|
'query-rocker',
|
2024-03-25 13:45:04 +03:00
|
|
|
'query-rocker-ports' ],
|
2021-03-23 12:40:17 +03:00
|
|
|
# Externally visible types whose member names may use uppercase
|
|
|
|
'member-name-exceptions': [ # visible in:
|
|
|
|
'ACPISlotType', # query-acpi-ospm-status
|
2021-03-23 12:40:23 +03:00
|
|
|
'AcpiTableOptions', # -acpitable
|
2021-03-23 12:40:24 +03:00
|
|
|
'BlkdebugEvent', # blockdev-add, -blockdev
|
2021-03-23 12:40:23 +03:00
|
|
|
'BlkdebugSetStateOptions', # blockdev-add, -blockdev
|
|
|
|
'BlockDeviceInfo', # query-block
|
|
|
|
'BlockDeviceStats', # query-blockstats
|
|
|
|
'BlockDeviceTimedStats', # query-blockstats
|
|
|
|
'BlockIOThrottle', # block_set_io_throttle
|
|
|
|
'BlockInfo', # query-block
|
2021-03-23 12:40:24 +03:00
|
|
|
'BlockdevAioOptions', # blockdev-add, -blockdev
|
|
|
|
'BlockdevDriver', # blockdev-add, query-blockstats, ...
|
2021-03-23 12:40:17 +03:00
|
|
|
'BlockdevVmdkAdapterType', # blockdev-create (to match VMDK spec)
|
|
|
|
'BlockdevVmdkSubformat', # blockdev-create (to match VMDK spec)
|
2021-03-23 12:40:23 +03:00
|
|
|
'ColoCompareProperties', # object_add, -object
|
|
|
|
'FilterMirrorProperties', # object_add, -object
|
|
|
|
'FilterRedirectorProperties', # object_add, -object
|
|
|
|
'FilterRewriterProperties', # object_add, -object
|
|
|
|
'InputLinuxProperties', # object_add, -object
|
|
|
|
'NetdevTapOptions', # netdev_add, query-netdev, -netdev
|
2021-03-23 12:40:24 +03:00
|
|
|
'ObjectType', # object-add, -object
|
|
|
|
'PCIELinkSpeed', # internal only
|
2021-03-23 12:40:23 +03:00
|
|
|
'PciBusInfo', # query-pci
|
|
|
|
'PciDeviceInfo', # query-pci
|
|
|
|
'PciMemoryRegion', # query-pci
|
2021-03-23 12:40:24 +03:00
|
|
|
'QKeyCode', # send-key, input-sent-event
|
2021-03-23 12:40:17 +03:00
|
|
|
'QapiErrorClass', # QMP error replies
|
2021-03-23 12:40:24 +03:00
|
|
|
'SshHostKeyCheckMode', # blockdev-add, -blockdev
|
|
|
|
'SysEmuTarget', # query-cpu-fast, query-target
|
2021-03-23 12:40:17 +03:00
|
|
|
'UuidInfo', # query-uuid
|
2021-03-23 12:40:23 +03:00
|
|
|
'VncClientInfo', # query-vnc, query-vnc-servers, ...
|
2021-03-23 12:40:17 +03:00
|
|
|
'X86CPURegister32' # qom-get of x86 CPU properties
|
|
|
|
# feature-words, filtered-features
|
2020-02-24 17:30:03 +03:00
|
|
|
] } }
|