12 # @GenericError: this is used for errors that don't require a specific error
13 # class. This should be the default case for most errors
15 # @CommandNotFound: the requested command has not been found
17 # @DeviceNotActive: a device has failed to be become active
19 # @DeviceNotFound: the requested device has not been found
21 # @KVMMissingCap: the requested operation can't be fulfilled because a
22 # required KVM capability is missing
26 { 'enum': 'QapiErrorClass',
27 # Keep this in sync with ErrorClass in error.h
28 'data': [ 'GenericError', 'CommandNotFound',
29 'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap' ] }
34 # An enumeration of the I/O operation types
36 # @read: read operation
38 # @write: write operation
42 { 'enum': 'IoOperationType',
43 'data': [ 'read', 'write' ] }
48 # An enumeration of three options: on, off, and auto
50 # @auto: QEMU selects the value between on and off
58 { 'enum': 'OnOffAuto',
59 'data': [ 'auto', 'on', 'off' ] }
64 # An enumeration of three values: on, off, and split
74 { 'enum': 'OnOffSplit',
75 'data': [ 'on', 'off', 'split' ] }
80 # A fat type wrapping 'str', to be embedded in lists.
91 # This is a string value or the explicit lack of a string (null
92 # pointer in C). Intended for cases when 'optional absent' already
93 # has a different meaning.
95 # @s: the string value
100 { 'alternate': 'StrOrNull',
101 'data': { 's': 'str',
107 # An enumeration of options for specifying a PCI BAR
109 # @off: The specified feature is disabled
111 # @auto: The PCI BAR for the feature is automatically selected
113 # @bar0: PCI BAR0 is used for the feature
115 # @bar1: PCI BAR1 is used for the feature
117 # @bar2: PCI BAR2 is used for the feature
119 # @bar3: PCI BAR3 is used for the feature
121 # @bar4: PCI BAR4 is used for the feature
123 # @bar5: PCI BAR5 is used for the feature
127 { 'enum': 'OffAutoPCIBAR',
128 'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] }