qga/qapi-schema: Move error documentation to new "Errors" sections
[qemu/kevin.git] / qapi / common.json
blobf1bb841951c4e007406d948d4a09fa3b5c003a1f
1 # -*- Mode: Python -*-
2 # vim: filetype=python
4 ##
5 # = Common data types
6 ##
8 ##
9 # @IoOperationType:
11 # An enumeration of the I/O operation types
13 # @read: read operation
15 # @write: write operation
17 # Since: 2.1
19 { 'enum': 'IoOperationType',
20   'data': [ 'read', 'write' ] }
23 # @OnOffAuto:
25 # An enumeration of three options: on, off, and auto
27 # @auto: QEMU selects the value between on and off
29 # @on: Enabled
31 # @off: Disabled
33 # Since: 2.2
35 { 'enum': 'OnOffAuto',
36   'data': [ 'auto', 'on', 'off' ] }
39 # @OnOffSplit:
41 # An enumeration of three values: on, off, and split
43 # @on: Enabled
45 # @off: Disabled
47 # @split: Mixed
49 # Since: 2.6
51 { 'enum': 'OnOffSplit',
52   'data': [ 'on', 'off', 'split' ] }
55 # @StrOrNull:
57 # This is a string value or the explicit lack of a string (null
58 # pointer in C).  Intended for cases when 'optional absent' already
59 # has a different meaning.
61 # @s: the string value
63 # @n: no string value
65 # Since: 2.10
67 { 'alternate': 'StrOrNull',
68   'data': { 's': 'str',
69             'n': 'null' } }
72 # @OffAutoPCIBAR:
74 # An enumeration of options for specifying a PCI BAR
76 # @off: The specified feature is disabled
78 # @auto: The PCI BAR for the feature is automatically selected
80 # @bar0: PCI BAR0 is used for the feature
82 # @bar1: PCI BAR1 is used for the feature
84 # @bar2: PCI BAR2 is used for the feature
86 # @bar3: PCI BAR3 is used for the feature
88 # @bar4: PCI BAR4 is used for the feature
90 # @bar5: PCI BAR5 is used for the feature
92 # Since: 2.12
94 { 'enum': 'OffAutoPCIBAR',
95   'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] }
98 # @PCIELinkSpeed:
100 # An enumeration of PCIe link speeds in units of GT/s
102 # @2_5: 2.5GT/s
104 # @5: 5.0GT/s
106 # @8: 8.0GT/s
108 # @16: 16.0GT/s
110 # Since: 4.0
112 { 'enum': 'PCIELinkSpeed',
113   'data': [ '2_5', '5', '8', '16' ] }
116 # @PCIELinkWidth:
118 # An enumeration of PCIe link width
120 # @1: x1
122 # @2: x2
124 # @4: x4
126 # @8: x8
128 # @12: x12
130 # @16: x16
132 # @32: x32
134 # Since: 4.0
136 { 'enum': 'PCIELinkWidth',
137   'data': [ '1', '2', '4', '8', '12', '16', '32' ] }
140 # @HostMemPolicy:
142 # Host memory policy types
144 # @default: restore default policy, remove any nondefault policy
146 # @preferred: set the preferred host nodes for allocation
148 # @bind: a strict policy that restricts memory allocation to the host
149 #     nodes specified
151 # @interleave: memory allocations are interleaved across the set of
152 #     host nodes specified
154 # Since: 2.1
156 { 'enum': 'HostMemPolicy',
157   'data': [ 'default', 'preferred', 'bind', 'interleave' ] }
160 # @NetFilterDirection:
162 # Indicates whether a netfilter is attached to a netdev's transmit
163 # queue or receive queue or both.
165 # @all: the filter is attached both to the receive and the transmit
166 #     queue of the netdev (default).
168 # @rx: the filter is attached to the receive queue of the netdev,
169 #     where it will receive packets sent to the netdev.
171 # @tx: the filter is attached to the transmit queue of the netdev,
172 #     where it will receive packets sent by the netdev.
174 # Since: 2.5
176 { 'enum': 'NetFilterDirection',
177   'data': [ 'all', 'rx', 'tx' ] }
180 # @GrabToggleKeys:
182 # Keys to toggle input-linux between host and guest.
184 # Since: 4.0
186 { 'enum': 'GrabToggleKeys',
187   'data': [ 'ctrl-ctrl', 'alt-alt', 'shift-shift','meta-meta', 'scrolllock',
188             'ctrl-scrolllock' ] }
191 # @HumanReadableText:
193 # @human-readable-text: Formatted output intended for humans.
195 # Since: 6.2
197 { 'struct': 'HumanReadableText',
198   'data': { 'human-readable-text': 'str' } }