xref: /openbmc/qemu/qapi/pragma.json (revision 19f4ed36)
1{ 'pragma': { 'doc-required': true } }
2
3# Whitelists to permit QAPI rule violations; think twice before you
4# add to them!
5{ 'pragma': {
6    # Commands allowed to return a non-dictionary:
7    'command-name-exceptions': [
8        'add_client',
9        'block_resize',
10        'block_set_io_throttle',
11        'client_migrate_info',
12        'device_add',
13        'device_del',
14        'expire_password',
15        'migrate_cancel',
16        'netdev_add',
17        'netdev_del',
18        'qmp_capabilities',
19        'set_link',
20        'set_password',
21        'system_powerdown',
22        'system_reset',
23        'system_wakeup' ],
24    'command-returns-exceptions': [
25        'human-monitor-command',
26        'qom-get',
27        'query-tpm-models',
28        'query-tpm-types',
29        'ringbuf-read' ],
30    # Externally visible types whose member names may use uppercase
31    'member-name-exceptions': [     # visible in:
32        'ACPISlotType',             # query-acpi-ospm-status
33        'AcpiTableOptions',         # -acpitable
34        'BlkdebugEvent',            # blockdev-add, -blockdev
35        'BlkdebugSetStateOptions',  # blockdev-add, -blockdev
36        'BlockDeviceInfo',          # query-block
37        'BlockDeviceStats',         # query-blockstats
38        'BlockDeviceTimedStats',    # query-blockstats
39        'BlockIOThrottle',          # block_set_io_throttle
40        'BlockInfo',                # query-block
41        'BlockdevAioOptions',       # blockdev-add, -blockdev
42        'BlockdevDriver',           # blockdev-add, query-blockstats, ...
43        'BlockdevVmdkAdapterType',  # blockdev-create (to match VMDK spec)
44        'BlockdevVmdkSubformat',    # blockdev-create (to match VMDK spec)
45        'ColoCompareProperties',    # object_add, -object
46        'FilterMirrorProperties',   # object_add, -object
47        'FilterRedirectorProperties', # object_add, -object
48        'FilterRewriterProperties', # object_add, -object
49        'InputLinuxProperties',     # object_add, -object
50        'NetdevTapOptions',         # netdev_add, query-netdev, -netdev
51        'ObjectType',               # object-add, -object
52        'PCIELinkSpeed',            # internal only
53        'PciBusInfo',               # query-pci
54        'PciDeviceInfo',            # query-pci
55        'PciMemoryRegion',          # query-pci
56        'QKeyCode',                 # send-key, input-sent-event
57        'QapiErrorClass',           # QMP error replies
58        'SshHostKeyCheckMode',      # blockdev-add, -blockdev
59        'SysEmuTarget',             # query-cpu-fast, query-target
60        'UuidInfo',                 # query-uuid
61        'VncClientInfo',            # query-vnc, query-vnc-servers, ...
62        'X86CPURegister32'          # qom-get of x86 CPU properties
63                                    # feature-words, filtered-features
64    ] } }
65