target-i386: Fix eflags.TF/#DB handling of syscall/sysret insns
[qemu/ar7.git] / qapi / common.json
blob624a8619c8ebfd52200d2f9a7e57a1860ea81af0
1 # -*- Mode: Python -*-
3 # QAPI common definitions
5 ##
6 # @QapiErrorClass:
8 # QEMU error classes
10 # @GenericError: this is used for errors that don't require a specific error
11 #                class. This should be the default case for most errors
13 # @CommandNotFound: the requested command has not been found
15 # @DeviceEncrypted: the requested operation can't be fulfilled because the
16 #                   selected device is encrypted
18 # @DeviceNotActive: a device has failed to be become active
20 # @DeviceNotFound: the requested device has not been found
22 # @KVMMissingCap: the requested operation can't be fulfilled because a
23 #                 required KVM capability is missing
25 # Since: 1.2
27 { 'enum': 'QapiErrorClass',
28   # Keep this in sync with ErrorClass in error.h
29   'data': [ 'GenericError', 'CommandNotFound', 'DeviceEncrypted',
30             'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap' ] }
33 # @VersionTriple:
35 # A three-part version number.
37 # @major:  The major version number.
39 # @minor:  The minor version number.
41 # @micro:  The micro version number.
43 # Since: 2.4
45 { 'struct': 'VersionTriple',
46   'data': {'major': 'int', 'minor': 'int', 'micro': 'int'} }
50 # @VersionInfo:
52 # A description of QEMU's version.
54 # @qemu:        The version of QEMU.  By current convention, a micro
55 #               version of 50 signifies a development branch.  A micro version
56 #               greater than or equal to 90 signifies a release candidate for
57 #               the next minor version.  A micro version of less than 50
58 #               signifies a stable release.
60 # @package:     QEMU will always set this field to an empty string.  Downstream
61 #               versions of QEMU should set this to a non-empty string.  The
62 #               exact format depends on the downstream however it highly
63 #               recommended that a unique name is used.
65 # Since: 0.14.0
67 { 'struct': 'VersionInfo',
68   'data': {'qemu': 'VersionTriple', 'package': 'str'} }
71 # @query-version:
73 # Returns the current version of QEMU.
75 # Returns:  A @VersionInfo object describing the current version of QEMU.
77 # Since: 0.14.0
79 { 'command': 'query-version', 'returns': 'VersionInfo' }
82 # @CommandInfo:
84 # Information about a QMP command
86 # @name: The command name
88 # Since: 0.14.0
90 { 'struct': 'CommandInfo', 'data': {'name': 'str'} }
93 # @query-commands:
95 # Return a list of supported QMP commands by this server
97 # Returns: A list of @CommandInfo for all supported commands
99 # Since: 0.14.0
101 { 'command': 'query-commands', 'returns': ['CommandInfo'] }
104 # @OnOffAuto:
106 # An enumeration of three options: on, off, and auto
108 # @auto: QEMU selects the value between on and off
110 # @on: Enabled
112 # @off: Disabled
114 # Since: 2.2
116 { 'enum': 'OnOffAuto',
117   'data': [ 'auto', 'on', 'off' ] }
120 # @OnOffSplit:
122 # An enumeration of three values: on, off, and split
124 # @on: Enabled
126 # @off: Disabled
128 # @split: Mixed
130 # Since: 2.6
132 { 'enum': 'OnOffSplit',
133   'data': [ 'on', 'off', 'split' ] }