Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 1 | # -*- Mode: Python -*- |
Andrea Bolognani | f7160f3 | 2020-07-29 20:50:24 +0200 | [diff] [blame] | 2 | # vim: filetype=python |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 3 | # |
| 4 | # This work is licensed under the terms of the GNU GPL, version 2 or later. |
| 5 | # See the COPYING file in the top-level directory. |
| 6 | |
Kevin Wolf | 8825587 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 7 | { 'include': 'authz.json' } |
Kevin Wolf | 381bd74 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 8 | { 'include': 'block-core.json' } |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 9 | { 'include': 'common.json' } |
Kevin Wolf | 39c4c27 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 10 | { 'include': 'crypto.json' } |
Kevin Wolf | 8825587 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 11 | |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 12 | ## |
| 13 | # = QEMU Object Model (QOM) |
| 14 | ## |
| 15 | |
| 16 | ## |
| 17 | # @ObjectPropertyInfo: |
| 18 | # |
| 19 | # @name: the name of the property |
| 20 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 21 | # @type: the type of the property. This will typically come in one of |
| 22 | # four forms: |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 23 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 24 | # 1) A primitive type such as 'u8', 'u16', 'bool', 'str', or |
| 25 | # 'double'. These types are mapped to the appropriate JSON |
| 26 | # type. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 27 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 28 | # 2) A child type in the form 'child<subtype>' where subtype is a |
| 29 | # qdev device type name. Child properties create the |
| 30 | # composition tree. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 31 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 32 | # 3) A link type in the form 'link<subtype>' where subtype is a |
| 33 | # qdev device type name. Link properties form the device model |
| 34 | # graph. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 35 | # |
| 36 | # @description: if specified, the description of the property. |
| 37 | # |
Marc-André Lureau | 1bb3d7d | 2020-01-10 19:30:38 +0400 | [diff] [blame] | 38 | # @default-value: the default value, if any (since 5.0) |
| 39 | # |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 40 | # Since: 1.2 |
| 41 | ## |
| 42 | { 'struct': 'ObjectPropertyInfo', |
Marc-André Lureau | 1bb3d7d | 2020-01-10 19:30:38 +0400 | [diff] [blame] | 43 | 'data': { 'name': 'str', |
| 44 | 'type': 'str', |
| 45 | '*description': 'str', |
| 46 | '*default-value': 'any' } } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 47 | |
| 48 | ## |
| 49 | # @qom-list: |
| 50 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 51 | # This command will list any properties of a object given a path in |
| 52 | # the object model. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 53 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 54 | # @path: the path within the object model. See @qom-get for a |
| 55 | # description of this parameter. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 56 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 57 | # Returns: a list of @ObjectPropertyInfo that describe the properties |
| 58 | # of the object. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 59 | # |
| 60 | # Since: 1.2 |
| 61 | # |
| 62 | # Example: |
| 63 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 64 | # -> { "execute": "qom-list", |
| 65 | # "arguments": { "path": "/chardevs" } } |
| 66 | # <- { "return": [ { "name": "type", "type": "string" }, |
| 67 | # { "name": "parallel0", "type": "child<chardev-vc>" }, |
| 68 | # { "name": "serial0", "type": "child<chardev-vc>" }, |
| 69 | # { "name": "mon0", "type": "child<chardev-stdio>" } ] } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 70 | ## |
| 71 | { 'command': 'qom-list', |
| 72 | 'data': { 'path': 'str' }, |
| 73 | 'returns': [ 'ObjectPropertyInfo' ], |
| 74 | 'allow-preconfig': true } |
| 75 | |
| 76 | ## |
| 77 | # @qom-get: |
| 78 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 79 | # This command will get a property from a object model path and return |
| 80 | # the value. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 81 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 82 | # @path: The path within the object model. There are two forms of |
| 83 | # supported paths--absolute and partial paths. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 84 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 85 | # Absolute paths are derived from the root object and can follow |
| 86 | # child<> or link<> properties. Since they can follow link<> |
| 87 | # properties, they can be arbitrarily long. Absolute paths look |
| 88 | # like absolute filenames and are prefixed with a leading slash. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 89 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 90 | # Partial paths look like relative filenames. They do not begin |
| 91 | # with a prefix. The matching rules for partial paths are subtle |
| 92 | # but designed to make specifying objects easy. At each level of |
| 93 | # the composition tree, the partial path is matched as an absolute |
| 94 | # path. The first match is not returned. At least two matches |
| 95 | # are searched for. A successful result is only returned if only |
| 96 | # one match is found. If more than one match is found, a flag is |
| 97 | # return to indicate that the match was ambiguous. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 98 | # |
| 99 | # @property: The property name to read |
| 100 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 101 | # Returns: The property value. The type depends on the property type. |
| 102 | # child<> and link<> properties are returned as #str pathnames. |
| 103 | # All integer property types (u8, u16, etc) are returned as #int. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 104 | # |
| 105 | # Since: 1.2 |
| 106 | # |
Markus Armbruster | 37fa48a | 2023-04-25 08:42:14 +0200 | [diff] [blame] | 107 | # Examples: |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 108 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 109 | # 1. Use absolute path |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 110 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 111 | # -> { "execute": "qom-get", |
| 112 | # "arguments": { "path": "/machine/unattached/device[0]", |
| 113 | # "property": "hotplugged" } } |
| 114 | # <- { "return": false } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 115 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 116 | # 2. Use partial path |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 117 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 118 | # -> { "execute": "qom-get", |
| 119 | # "arguments": { "path": "unattached/sysbus", |
| 120 | # "property": "type" } } |
| 121 | # <- { "return": "System" } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 122 | ## |
| 123 | { 'command': 'qom-get', |
| 124 | 'data': { 'path': 'str', 'property': 'str' }, |
| 125 | 'returns': 'any', |
| 126 | 'allow-preconfig': true } |
| 127 | |
| 128 | ## |
| 129 | # @qom-set: |
| 130 | # |
| 131 | # This command will set a property from a object model path. |
| 132 | # |
| 133 | # @path: see @qom-get for a description of this parameter |
| 134 | # |
| 135 | # @property: the property name to set |
| 136 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 137 | # @value: a value who's type is appropriate for the property type. |
| 138 | # See @qom-get for a description of type mapping. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 139 | # |
| 140 | # Since: 1.2 |
| 141 | # |
| 142 | # Example: |
| 143 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 144 | # -> { "execute": "qom-set", |
| 145 | # "arguments": { "path": "/machine", |
| 146 | # "property": "graphics", |
| 147 | # "value": false } } |
| 148 | # <- { "return": {} } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 149 | ## |
| 150 | { 'command': 'qom-set', |
| 151 | 'data': { 'path': 'str', 'property': 'str', 'value': 'any' }, |
| 152 | 'allow-preconfig': true } |
| 153 | |
| 154 | ## |
| 155 | # @ObjectTypeInfo: |
| 156 | # |
| 157 | # This structure describes a search result from @qom-list-types |
| 158 | # |
| 159 | # @name: the type name found in the search |
| 160 | # |
| 161 | # @abstract: the type is abstract and can't be directly instantiated. |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 162 | # Omitted if false. (since 2.10) |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 163 | # |
| 164 | # @parent: Name of parent type, if any (since 2.10) |
| 165 | # |
| 166 | # Since: 1.1 |
| 167 | ## |
| 168 | { 'struct': 'ObjectTypeInfo', |
| 169 | 'data': { 'name': 'str', '*abstract': 'bool', '*parent': 'str' } } |
| 170 | |
| 171 | ## |
| 172 | # @qom-list-types: |
| 173 | # |
| 174 | # This command will return a list of types given search parameters |
| 175 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 176 | # @implements: if specified, only return types that implement this |
| 177 | # type name |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 178 | # |
| 179 | # @abstract: if true, include abstract types in the results |
| 180 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 181 | # Returns: a list of @ObjectTypeInfo or an empty list if no results |
| 182 | # are found |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 183 | # |
| 184 | # Since: 1.1 |
| 185 | ## |
| 186 | { 'command': 'qom-list-types', |
| 187 | 'data': { '*implements': 'str', '*abstract': 'bool' }, |
| 188 | 'returns': [ 'ObjectTypeInfo' ], |
| 189 | 'allow-preconfig': true } |
| 190 | |
| 191 | ## |
| 192 | # @qom-list-properties: |
| 193 | # |
| 194 | # List properties associated with a QOM object. |
| 195 | # |
| 196 | # @typename: the type name of an object |
| 197 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 198 | # Note: objects can create properties at runtime, for example to |
| 199 | # describe links between different devices and/or objects. These |
| 200 | # properties are not included in the output of this command. |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 201 | # |
| 202 | # Returns: a list of ObjectPropertyInfo describing object properties |
| 203 | # |
| 204 | # Since: 2.12 |
| 205 | ## |
| 206 | { 'command': 'qom-list-properties', |
| 207 | 'data': { 'typename': 'str'}, |
| 208 | 'returns': [ 'ObjectPropertyInfo' ], |
| 209 | 'allow-preconfig': true } |
| 210 | |
| 211 | ## |
Kevin Wolf | f3189b9 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 212 | # @CanHostSocketcanProperties: |
| 213 | # |
| 214 | # Properties for can-host-socketcan objects. |
| 215 | # |
| 216 | # @if: interface name of the host system CAN bus to connect to |
| 217 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 218 | # @canbus: object ID of the can-bus object to connect to the host |
| 219 | # interface |
Kevin Wolf | f3189b9 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 220 | # |
| 221 | # Since: 2.12 |
| 222 | ## |
| 223 | { 'struct': 'CanHostSocketcanProperties', |
| 224 | 'data': { 'if': 'str', |
| 225 | 'canbus': 'str' } } |
| 226 | |
| 227 | ## |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 228 | # @ColoCompareProperties: |
| 229 | # |
| 230 | # Properties for colo-compare objects. |
| 231 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 232 | # @primary_in: name of the character device backend to use for the |
| 233 | # primary input (incoming packets are redirected to @outdev) |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 234 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 235 | # @secondary_in: name of the character device backend to use for |
| 236 | # secondary input (incoming packets are only compared to the input |
| 237 | # on @primary_in and then dropped) |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 238 | # |
| 239 | # @outdev: name of the character device backend to use for output |
| 240 | # |
| 241 | # @iothread: name of the iothread to run in |
| 242 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 243 | # @notify_dev: name of the character device backend to be used to |
| 244 | # communicate with the remote colo-frame (only for Xen COLO) |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 245 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 246 | # @compare_timeout: the maximum time to hold a packet from @primary_in |
| 247 | # for comparison with an incoming packet on @secondary_in in |
| 248 | # milliseconds (default: 3000) |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 249 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 250 | # @expired_scan_cycle: the interval at which colo-compare checks |
| 251 | # whether packets from @primary have timed out, in milliseconds |
| 252 | # (default: 3000) |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 253 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 254 | # @max_queue_size: the maximum number of packets to keep in the queue |
| 255 | # for comparing with incoming packets from @secondary_in. If the |
| 256 | # queue is full and additional packets are received, the |
| 257 | # additional packets are dropped. (default: 1024) |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 258 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 259 | # @vnet_hdr_support: if true, vnet header support is enabled |
| 260 | # (default: false) |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 261 | # |
| 262 | # Since: 2.8 |
| 263 | ## |
| 264 | { 'struct': 'ColoCompareProperties', |
| 265 | 'data': { 'primary_in': 'str', |
| 266 | 'secondary_in': 'str', |
| 267 | 'outdev': 'str', |
| 268 | 'iothread': 'str', |
| 269 | '*notify_dev': 'str', |
| 270 | '*compare_timeout': 'uint64', |
| 271 | '*expired_scan_cycle': 'uint32', |
| 272 | '*max_queue_size': 'uint32', |
| 273 | '*vnet_hdr_support': 'bool' } } |
| 274 | |
| 275 | ## |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 276 | # @CryptodevBackendProperties: |
| 277 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 278 | # Properties for cryptodev-backend and cryptodev-backend-builtin |
| 279 | # objects. |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 280 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 281 | # @queues: the number of queues for the cryptodev backend. Ignored |
| 282 | # for cryptodev-backend and must be 1 for |
| 283 | # cryptodev-backend-builtin. (default: 1) |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 284 | # |
zhenwei pi | 2580b45 | 2023-03-01 18:58:45 +0800 | [diff] [blame] | 285 | # @throttle-bps: limit total bytes per second (Since 8.0) |
| 286 | # |
| 287 | # @throttle-ops: limit total operations per second (Since 8.0) |
| 288 | # |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 289 | # Since: 2.8 |
| 290 | ## |
| 291 | { 'struct': 'CryptodevBackendProperties', |
zhenwei pi | 2580b45 | 2023-03-01 18:58:45 +0800 | [diff] [blame] | 292 | 'data': { '*queues': 'uint32', |
| 293 | '*throttle-bps': 'uint64', |
| 294 | '*throttle-ops': 'uint64' } } |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 295 | |
| 296 | ## |
| 297 | # @CryptodevVhostUserProperties: |
| 298 | # |
| 299 | # Properties for cryptodev-vhost-user objects. |
| 300 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 301 | # @chardev: the name of a Unix domain socket character device that |
| 302 | # connects to the vhost-user server |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 303 | # |
| 304 | # Since: 2.12 |
| 305 | ## |
| 306 | { 'struct': 'CryptodevVhostUserProperties', |
| 307 | 'base': 'CryptodevBackendProperties', |
| 308 | 'data': { 'chardev': 'str' } } |
| 309 | |
| 310 | ## |
Kevin Wolf | d7ef29c | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 311 | # @DBusVMStateProperties: |
| 312 | # |
| 313 | # Properties for dbus-vmstate objects. |
| 314 | # |
| 315 | # @addr: the name of the DBus bus to connect to |
| 316 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 317 | # @id-list: a comma separated list of DBus IDs of helpers whose data |
| 318 | # should be included in the VM state on migration |
Kevin Wolf | d7ef29c | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 319 | # |
| 320 | # Since: 5.0 |
| 321 | ## |
| 322 | { 'struct': 'DBusVMStateProperties', |
| 323 | 'data': { 'addr': 'str' , |
| 324 | '*id-list': 'str' } } |
| 325 | |
| 326 | ## |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 327 | # @NetfilterInsert: |
| 328 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 329 | # Indicates where to insert a netfilter relative to a given other |
| 330 | # filter. |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 331 | # |
| 332 | # @before: insert before the specified filter |
| 333 | # |
| 334 | # @behind: insert behind the specified filter |
| 335 | # |
| 336 | # Since: 5.0 |
| 337 | ## |
| 338 | { 'enum': 'NetfilterInsert', |
| 339 | 'data': [ 'before', 'behind' ] } |
| 340 | |
| 341 | ## |
| 342 | # @NetfilterProperties: |
| 343 | # |
| 344 | # Properties for objects of classes derived from netfilter. |
| 345 | # |
| 346 | # @netdev: id of the network device backend to filter |
| 347 | # |
| 348 | # @queue: indicates which queue(s) to filter (default: all) |
| 349 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 350 | # @status: indicates whether the filter is enabled ("on") or disabled |
| 351 | # ("off") (default: "on") |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 352 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 353 | # @position: specifies where the filter should be inserted in the |
| 354 | # filter list. "head" means the filter is inserted at the head of |
| 355 | # the filter list, before any existing filters. "tail" means the |
| 356 | # filter is inserted at the tail of the filter list, behind any |
| 357 | # existing filters (default). "id=<id>" means the filter is |
| 358 | # inserted before or behind the filter specified by <id>, |
| 359 | # depending on the @insert property. (default: "tail") |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 360 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 361 | # @insert: where to insert the filter relative to the filter given in |
| 362 | # @position. Ignored if @position is "head" or "tail". |
| 363 | # (default: behind) |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 364 | # |
| 365 | # Since: 2.5 |
| 366 | ## |
| 367 | { 'struct': 'NetfilterProperties', |
| 368 | 'data': { 'netdev': 'str', |
| 369 | '*queue': 'NetFilterDirection', |
| 370 | '*status': 'str', |
| 371 | '*position': 'str', |
| 372 | '*insert': 'NetfilterInsert' } } |
| 373 | |
| 374 | ## |
| 375 | # @FilterBufferProperties: |
| 376 | # |
| 377 | # Properties for filter-buffer objects. |
| 378 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 379 | # @interval: a non-zero interval in microseconds. All packets |
| 380 | # arriving in the given interval are delayed until the end of the |
| 381 | # interval. |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 382 | # |
| 383 | # Since: 2.5 |
| 384 | ## |
| 385 | { 'struct': 'FilterBufferProperties', |
| 386 | 'base': 'NetfilterProperties', |
| 387 | 'data': { 'interval': 'uint32' } } |
| 388 | |
| 389 | ## |
| 390 | # @FilterDumpProperties: |
| 391 | # |
| 392 | # Properties for filter-dump objects. |
| 393 | # |
| 394 | # @file: the filename where the dumped packets should be stored |
| 395 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 396 | # @maxlen: maximum number of bytes in a packet that are stored |
| 397 | # (default: 65536) |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 398 | # |
| 399 | # Since: 2.5 |
| 400 | ## |
| 401 | { 'struct': 'FilterDumpProperties', |
| 402 | 'base': 'NetfilterProperties', |
| 403 | 'data': { 'file': 'str', |
| 404 | '*maxlen': 'uint32' } } |
| 405 | |
| 406 | ## |
| 407 | # @FilterMirrorProperties: |
| 408 | # |
| 409 | # Properties for filter-mirror objects. |
| 410 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 411 | # @outdev: the name of a character device backend to which all |
| 412 | # incoming packets are mirrored |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 413 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 414 | # @vnet_hdr_support: if true, vnet header support is enabled |
| 415 | # (default: false) |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 416 | # |
| 417 | # Since: 2.6 |
| 418 | ## |
| 419 | { 'struct': 'FilterMirrorProperties', |
| 420 | 'base': 'NetfilterProperties', |
| 421 | 'data': { 'outdev': 'str', |
| 422 | '*vnet_hdr_support': 'bool' } } |
| 423 | |
| 424 | ## |
| 425 | # @FilterRedirectorProperties: |
| 426 | # |
| 427 | # Properties for filter-redirector objects. |
| 428 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 429 | # At least one of @indev or @outdev must be present. If both are |
| 430 | # present, they must not refer to the same character device backend. |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 431 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 432 | # @indev: the name of a character device backend from which packets |
| 433 | # are received and redirected to the filtered network device |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 434 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 435 | # @outdev: the name of a character device backend to which all |
| 436 | # incoming packets are redirected |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 437 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 438 | # @vnet_hdr_support: if true, vnet header support is enabled |
| 439 | # (default: false) |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 440 | # |
| 441 | # Since: 2.6 |
| 442 | ## |
| 443 | { 'struct': 'FilterRedirectorProperties', |
| 444 | 'base': 'NetfilterProperties', |
| 445 | 'data': { '*indev': 'str', |
| 446 | '*outdev': 'str', |
| 447 | '*vnet_hdr_support': 'bool' } } |
| 448 | |
| 449 | ## |
| 450 | # @FilterRewriterProperties: |
| 451 | # |
| 452 | # Properties for filter-rewriter objects. |
| 453 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 454 | # @vnet_hdr_support: if true, vnet header support is enabled |
| 455 | # (default: false) |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 456 | # |
| 457 | # Since: 2.8 |
| 458 | ## |
| 459 | { 'struct': 'FilterRewriterProperties', |
| 460 | 'base': 'NetfilterProperties', |
| 461 | 'data': { '*vnet_hdr_support': 'bool' } } |
| 462 | |
| 463 | ## |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 464 | # @InputBarrierProperties: |
| 465 | # |
| 466 | # Properties for input-barrier objects. |
| 467 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 468 | # @name: the screen name as declared in the screens section of |
| 469 | # barrier.conf |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 470 | # |
| 471 | # @server: hostname of the Barrier server (default: "localhost") |
| 472 | # |
| 473 | # @port: TCP port of the Barrier server (default: "24800") |
| 474 | # |
| 475 | # @x-origin: x coordinate of the leftmost pixel on the guest screen |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 476 | # (default: "0") |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 477 | # |
| 478 | # @y-origin: y coordinate of the topmost pixel on the guest screen |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 479 | # (default: "0") |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 480 | # |
| 481 | # @width: the width of secondary screen in pixels (default: "1920") |
| 482 | # |
| 483 | # @height: the height of secondary screen in pixels (default: "1080") |
| 484 | # |
| 485 | # Since: 4.2 |
| 486 | ## |
| 487 | { 'struct': 'InputBarrierProperties', |
| 488 | 'data': { 'name': 'str', |
| 489 | '*server': 'str', |
| 490 | '*port': 'str', |
| 491 | '*x-origin': 'str', |
| 492 | '*y-origin': 'str', |
| 493 | '*width': 'str', |
| 494 | '*height': 'str' } } |
| 495 | |
| 496 | ## |
| 497 | # @InputLinuxProperties: |
| 498 | # |
| 499 | # Properties for input-linux objects. |
| 500 | # |
| 501 | # @evdev: the path of the host evdev device to use |
| 502 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 503 | # @grab_all: if true, grab is toggled for all devices (e.g. both |
| 504 | # keyboard and mouse) instead of just one device (default: false) |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 505 | # |
| 506 | # @repeat: enables auto-repeat events (default: false) |
| 507 | # |
| 508 | # @grab-toggle: the key or key combination that toggles device grab |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 509 | # (default: ctrl-ctrl) |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 510 | # |
| 511 | # Since: 2.6 |
| 512 | ## |
| 513 | { 'struct': 'InputLinuxProperties', |
| 514 | 'data': { 'evdev': 'str', |
| 515 | '*grab_all': 'bool', |
| 516 | '*repeat': 'bool', |
| 517 | '*grab-toggle': 'GrabToggleKeys' } } |
| 518 | |
| 519 | ## |
Nicolas Saenz Julienne | 7d5983e | 2022-04-25 09:57:21 +0200 | [diff] [blame] | 520 | # @EventLoopBaseProperties: |
| 521 | # |
| 522 | # Common properties for event loops |
| 523 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 524 | # @aio-max-batch: maximum number of requests in a batch for the AIO |
| 525 | # engine, 0 means that the engine will use its default. |
| 526 | # (default: 0) |
Nicolas Saenz Julienne | 7d5983e | 2022-04-25 09:57:21 +0200 | [diff] [blame] | 527 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 528 | # @thread-pool-min: minimum number of threads reserved in the thread |
| 529 | # pool (default:0) |
Nicolas Saenz Julienne | 71ad471 | 2022-04-25 09:57:23 +0200 | [diff] [blame] | 530 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 531 | # @thread-pool-max: maximum number of threads the thread pool can |
| 532 | # contain (default:64) |
Nicolas Saenz Julienne | 71ad471 | 2022-04-25 09:57:23 +0200 | [diff] [blame] | 533 | # |
Nicolas Saenz Julienne | 7d5983e | 2022-04-25 09:57:21 +0200 | [diff] [blame] | 534 | # Since: 7.1 |
| 535 | ## |
| 536 | { 'struct': 'EventLoopBaseProperties', |
Nicolas Saenz Julienne | 71ad471 | 2022-04-25 09:57:23 +0200 | [diff] [blame] | 537 | 'data': { '*aio-max-batch': 'int', |
| 538 | '*thread-pool-min': 'int', |
| 539 | '*thread-pool-max': 'int' } } |
Nicolas Saenz Julienne | 7d5983e | 2022-04-25 09:57:21 +0200 | [diff] [blame] | 540 | |
| 541 | ## |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 542 | # @IothreadProperties: |
| 543 | # |
| 544 | # Properties for iothread objects. |
| 545 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 546 | # @poll-max-ns: the maximum number of nanoseconds to busy wait for |
| 547 | # events. 0 means polling is disabled (default: 32768 on POSIX |
| 548 | # hosts, 0 otherwise) |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 549 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 550 | # @poll-grow: the multiplier used to increase the polling time when |
| 551 | # the algorithm detects it is missing events due to not polling |
| 552 | # long enough. 0 selects a default behaviour (default: 0) |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 553 | # |
| 554 | # @poll-shrink: the divisor used to decrease the polling time when the |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 555 | # algorithm detects it is spending too long polling without |
| 556 | # encountering events. 0 selects a default behaviour (default: 0) |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 557 | # |
Nicolas Saenz Julienne | 7d5983e | 2022-04-25 09:57:21 +0200 | [diff] [blame] | 558 | # The @aio-max-batch option is available since 6.1. |
Stefano Garzarella | 1793ad0 | 2021-07-21 11:42:10 +0200 | [diff] [blame] | 559 | # |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 560 | # Since: 2.0 |
| 561 | ## |
| 562 | { 'struct': 'IothreadProperties', |
Nicolas Saenz Julienne | 7d5983e | 2022-04-25 09:57:21 +0200 | [diff] [blame] | 563 | 'base': 'EventLoopBaseProperties', |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 564 | 'data': { '*poll-max-ns': 'int', |
| 565 | '*poll-grow': 'int', |
Nicolas Saenz Julienne | 7d5983e | 2022-04-25 09:57:21 +0200 | [diff] [blame] | 566 | '*poll-shrink': 'int' } } |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 567 | |
| 568 | ## |
Nicolas Saenz Julienne | 70ac26b | 2022-04-25 09:57:22 +0200 | [diff] [blame] | 569 | # @MainLoopProperties: |
| 570 | # |
| 571 | # Properties for the main-loop object. |
| 572 | # |
| 573 | # Since: 7.1 |
| 574 | ## |
| 575 | { 'struct': 'MainLoopProperties', |
| 576 | 'base': 'EventLoopBaseProperties', |
| 577 | 'data': {} } |
| 578 | |
| 579 | ## |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 580 | # @MemoryBackendProperties: |
| 581 | # |
| 582 | # Properties for objects of classes derived from memory-backend. |
| 583 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 584 | # @merge: if true, mark the memory as mergeable (default depends on |
| 585 | # the machine type) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 586 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 587 | # @dump: if true, include the memory in core dumps (default depends on |
| 588 | # the machine type) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 589 | # |
| 590 | # @host-nodes: the list of NUMA host nodes to bind the memory to |
| 591 | # |
| 592 | # @policy: the NUMA policy (default: 'default') |
| 593 | # |
| 594 | # @prealloc: if true, preallocate memory (default: false) |
| 595 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 596 | # @prealloc-threads: number of CPU threads to use for prealloc |
| 597 | # (default: 1) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 598 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 599 | # @prealloc-context: thread context to use for creation of |
| 600 | # preallocation threads (default: none) (since 7.2) |
David Hildenbrand | e681645 | 2022-10-14 15:47:19 +0200 | [diff] [blame] | 601 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 602 | # @share: if false, the memory is private to QEMU; if true, it is |
| 603 | # shared (default: false) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 604 | # |
David Hildenbrand | 9181fb7 | 2021-05-10 13:43:23 +0200 | [diff] [blame] | 605 | # @reserve: if true, reserve swap space (or huge pages) if applicable |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 606 | # (default: true) (since 6.1) |
David Hildenbrand | 9181fb7 | 2021-05-10 13:43:23 +0200 | [diff] [blame] | 607 | # |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 608 | # @size: size of the memory region in bytes |
| 609 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 610 | # @x-use-canonical-path-for-ramblock-id: if true, the canonical path |
| 611 | # is used for ramblock-id. Disable this for 4.0 machine types or |
| 612 | # older to allow migration with newer QEMU versions. |
| 613 | # (default: false generally, but true for machine types <= 4.0) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 614 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 615 | # Note: prealloc=true and reserve=false cannot be set at the same |
| 616 | # time. With reserve=true, the behavior depends on the operating |
| 617 | # system: for example, Linux will not reserve swap space for |
| 618 | # shared file mappings -- "not applicable". In contrast, |
| 619 | # reserve=false will bail out if it cannot be configured |
| 620 | # accordingly. |
David Hildenbrand | 9181fb7 | 2021-05-10 13:43:23 +0200 | [diff] [blame] | 621 | # |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 622 | # Since: 2.1 |
| 623 | ## |
| 624 | { 'struct': 'MemoryBackendProperties', |
| 625 | 'data': { '*dump': 'bool', |
| 626 | '*host-nodes': ['uint16'], |
| 627 | '*merge': 'bool', |
| 628 | '*policy': 'HostMemPolicy', |
| 629 | '*prealloc': 'bool', |
| 630 | '*prealloc-threads': 'uint32', |
David Hildenbrand | e681645 | 2022-10-14 15:47:19 +0200 | [diff] [blame] | 631 | '*prealloc-context': 'str', |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 632 | '*share': 'bool', |
David Hildenbrand | 9181fb7 | 2021-05-10 13:43:23 +0200 | [diff] [blame] | 633 | '*reserve': 'bool', |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 634 | 'size': 'size', |
| 635 | '*x-use-canonical-path-for-ramblock-id': 'bool' } } |
| 636 | |
| 637 | ## |
| 638 | # @MemoryBackendFileProperties: |
| 639 | # |
| 640 | # Properties for memory-backend-file objects. |
| 641 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 642 | # @align: the base address alignment when QEMU mmap(2)s @mem-path. |
| 643 | # Some backend stores specified by @mem-path require an alignment |
| 644 | # different than the default one used by QEMU, e.g. the device DAX |
| 645 | # /dev/dax0.0 requires 2M alignment rather than 4K. In such cases, |
| 646 | # users can specify the required alignment via this option. 0 |
| 647 | # selects a default alignment (currently the page size). |
| 648 | # (default: 0) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 649 | # |
Markus Armbruster | 9e27207 | 2023-07-20 09:16:09 +0200 | [diff] [blame] | 650 | # @offset: the offset into the target file that the region starts at. |
| 651 | # You can use this option to back multiple regions with a single |
Markus Armbruster | 5305a4e | 2024-03-22 15:09:09 +0100 | [diff] [blame] | 652 | # file. Must be a multiple of the page size. |
Markus Armbruster | 9e27207 | 2023-07-20 09:16:09 +0200 | [diff] [blame] | 653 | # (default: 0) (since 8.1) |
Alexander Graf | 4b870dc | 2023-04-03 22:14:21 +0000 | [diff] [blame] | 654 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 655 | # @discard-data: if true, the file contents can be destroyed when QEMU |
| 656 | # exits, to avoid unnecessarily flushing data to the backing file. |
| 657 | # Note that @discard-data is only an optimization, and QEMU might |
| 658 | # not discard file contents if it aborts unexpectedly or is |
Markus Armbruster | 5305a4e | 2024-03-22 15:09:09 +0100 | [diff] [blame] | 659 | # terminated using SIGKILL. (default: false) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 660 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 661 | # @mem-path: the path to either a shared memory or huge page |
| 662 | # filesystem mount |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 663 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 664 | # @pmem: specifies whether the backing file specified by @mem-path is |
| 665 | # in host persistent memory that can be accessed using the SNIA |
Markus Armbruster | 9e27207 | 2023-07-20 09:16:09 +0200 | [diff] [blame] | 666 | # NVM programming model (e.g. Intel NVDIMM). |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 667 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 668 | # @readonly: if true, the backing file is opened read-only; if false, |
| 669 | # it is opened read-write. (default: false) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 670 | # |
Markus Armbruster | 209e64d | 2024-03-22 15:09:08 +0100 | [diff] [blame] | 671 | # @rom: whether to create Read Only Memory (ROM) that cannot be |
| 672 | # modified by the VM. Any write attempts to such ROM will be |
| 673 | # denied. Most use cases want writable RAM instead of ROM. |
| 674 | # However, selected use cases, like R/O NVDIMMs, can benefit from |
| 675 | # ROM. If set to 'on', create ROM; if set to 'off', create |
| 676 | # writable RAM; if set to 'auto', the value of the @readonly |
| 677 | # property is used. This property is primarily helpful when we |
| 678 | # want to have proper RAM in configurations that would |
| 679 | # traditionally create ROM before this property was introduced: VM |
| 680 | # templating, where we want to open a file readonly (@readonly set |
| 681 | # to true) and mark the memory to be private for QEMU (@share set |
| 682 | # to false). For this use case, we need writable RAM instead of |
| 683 | # ROM, and want to set this property to 'off'. (default: auto, |
| 684 | # since 8.2) |
David Hildenbrand | e92666b | 2023-09-06 14:04:55 +0200 | [diff] [blame] | 685 | # |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 686 | # Since: 2.1 |
| 687 | ## |
| 688 | { 'struct': 'MemoryBackendFileProperties', |
| 689 | 'base': 'MemoryBackendProperties', |
| 690 | 'data': { '*align': 'size', |
Alexander Graf | 4b870dc | 2023-04-03 22:14:21 +0000 | [diff] [blame] | 691 | '*offset': 'size', |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 692 | '*discard-data': 'bool', |
| 693 | 'mem-path': 'str', |
Marc-André Lureau | 8a9f1e1 | 2021-08-04 12:31:05 +0400 | [diff] [blame] | 694 | '*pmem': { 'type': 'bool', 'if': 'CONFIG_LIBPMEM' }, |
David Hildenbrand | e92666b | 2023-09-06 14:04:55 +0200 | [diff] [blame] | 695 | '*readonly': 'bool', |
| 696 | '*rom': 'OnOffAuto' } } |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 697 | |
| 698 | ## |
| 699 | # @MemoryBackendMemfdProperties: |
| 700 | # |
| 701 | # Properties for memory-backend-memfd objects. |
| 702 | # |
| 703 | # The @share boolean option is true by default with memfd. |
| 704 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 705 | # @hugetlb: if true, the file to be created resides in the hugetlbfs |
| 706 | # filesystem (default: false) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 707 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 708 | # @hugetlbsize: the hugetlb page size on systems that support multiple |
| 709 | # hugetlb page sizes (it must be a power of 2 value supported by |
| 710 | # the system). 0 selects a default page size. This option is |
| 711 | # ignored if @hugetlb is false. (default: 0) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 712 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 713 | # @seal: if true, create a sealed-file, which will block further |
| 714 | # resizing of the memory (default: true) |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 715 | # |
| 716 | # Since: 2.12 |
| 717 | ## |
| 718 | { 'struct': 'MemoryBackendMemfdProperties', |
| 719 | 'base': 'MemoryBackendProperties', |
| 720 | 'data': { '*hugetlb': 'bool', |
| 721 | '*hugetlbsize': 'size', |
| 722 | '*seal': 'bool' } } |
| 723 | |
| 724 | ## |
Yang Zhong | 46a1d21 | 2021-07-19 19:21:06 +0800 | [diff] [blame] | 725 | # @MemoryBackendEpcProperties: |
| 726 | # |
| 727 | # Properties for memory-backend-epc objects. |
| 728 | # |
| 729 | # The @share boolean option is true by default with epc |
| 730 | # |
| 731 | # The @merge boolean option is false by default with epc |
| 732 | # |
| 733 | # The @dump boolean option is false by default with epc |
| 734 | # |
| 735 | # Since: 6.2 |
| 736 | ## |
| 737 | { 'struct': 'MemoryBackendEpcProperties', |
| 738 | 'base': 'MemoryBackendProperties', |
| 739 | 'data': {} } |
| 740 | |
| 741 | ## |
Kevin Wolf | b9e479d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 742 | # @PrManagerHelperProperties: |
| 743 | # |
| 744 | # Properties for pr-manager-helper objects. |
| 745 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 746 | # @path: the path to a Unix domain socket for connecting to the |
| 747 | # external helper |
Kevin Wolf | b9e479d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 748 | # |
| 749 | # Since: 2.11 |
| 750 | ## |
| 751 | { 'struct': 'PrManagerHelperProperties', |
| 752 | 'data': { 'path': 'str' } } |
| 753 | |
| 754 | ## |
Paolo Bonzini | 6ba7ada | 2020-11-09 10:13:30 -0500 | [diff] [blame] | 755 | # @QtestProperties: |
| 756 | # |
| 757 | # Properties for qtest objects. |
| 758 | # |
| 759 | # @chardev: the chardev to be used to receive qtest commands on. |
| 760 | # |
| 761 | # @log: the path to a log file |
| 762 | # |
| 763 | # Since: 6.0 |
| 764 | ## |
| 765 | { 'struct': 'QtestProperties', |
| 766 | 'data': { 'chardev': 'str', |
| 767 | '*log': 'str' } } |
| 768 | |
| 769 | ## |
Kevin Wolf | 17422da | 2021-02-24 13:21:48 +0100 | [diff] [blame] | 770 | # @RemoteObjectProperties: |
| 771 | # |
| 772 | # Properties for x-remote-object objects. |
| 773 | # |
| 774 | # @fd: file descriptor name previously passed via 'getfd' command |
| 775 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 776 | # @devid: the id of the device to be associated with the file |
| 777 | # descriptor |
Kevin Wolf | 17422da | 2021-02-24 13:21:48 +0100 | [diff] [blame] | 778 | # |
| 779 | # Since: 6.0 |
| 780 | ## |
| 781 | { 'struct': 'RemoteObjectProperties', |
| 782 | 'data': { 'fd': 'str', 'devid': 'str' } } |
| 783 | |
| 784 | ## |
Jagannathan Raman | 8f9a925 | 2022-06-13 16:26:25 -0400 | [diff] [blame] | 785 | # @VfioUserServerProperties: |
| 786 | # |
| 787 | # Properties for x-vfio-user-server objects. |
| 788 | # |
| 789 | # @socket: socket to be used by the libvfio-user library |
| 790 | # |
| 791 | # @device: the ID of the device to be emulated at the server |
| 792 | # |
| 793 | # Since: 7.1 |
| 794 | ## |
| 795 | { 'struct': 'VfioUserServerProperties', |
| 796 | 'data': { 'socket': 'SocketAddress', 'device': 'str' } } |
| 797 | |
| 798 | ## |
Eric Auger | 6e6d8ac | 2023-11-21 16:44:00 +0800 | [diff] [blame] | 799 | # @IOMMUFDProperties: |
| 800 | # |
| 801 | # Properties for iommufd objects. |
| 802 | # |
| 803 | # @fd: file descriptor name previously passed via 'getfd' command, |
| 804 | # which represents a pre-opened /dev/iommu. This allows the |
Stefan Weil | f6822fe | 2024-03-31 18:15:26 +0200 | [diff] [blame] | 805 | # iommufd object to be shared across several subsystems (VFIO, |
Markus Armbruster | 209e64d | 2024-03-22 15:09:08 +0100 | [diff] [blame] | 806 | # VDPA, ...), and the file descriptor to be shared with other |
| 807 | # process, e.g. DPDK. (default: QEMU opens /dev/iommu by itself) |
Eric Auger | 6e6d8ac | 2023-11-21 16:44:00 +0800 | [diff] [blame] | 808 | # |
| 809 | # Since: 9.0 |
| 810 | ## |
| 811 | { 'struct': 'IOMMUFDProperties', |
| 812 | 'data': { '*fd': 'str' } } |
| 813 | |
| 814 | ## |
Ankit Agrawal | b64b7ed | 2024-03-08 14:55:23 +0000 | [diff] [blame] | 815 | # @AcpiGenericInitiatorProperties: |
| 816 | # |
| 817 | # Properties for acpi-generic-initiator objects. |
| 818 | # |
| 819 | # @pci-dev: PCI device ID to be associated with the node |
| 820 | # |
| 821 | # @node: NUMA node associated with the PCI device |
| 822 | # |
| 823 | # Since: 9.0 |
| 824 | ## |
| 825 | { 'struct': 'AcpiGenericInitiatorProperties', |
| 826 | 'data': { 'pci-dev': 'str', |
| 827 | 'node': 'uint32' } } |
| 828 | |
| 829 | ## |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 830 | # @RngProperties: |
| 831 | # |
| 832 | # Properties for objects of classes derived from rng. |
| 833 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 834 | # @opened: if true, the device is opened immediately when applying |
| 835 | # this option and will probably fail when processing the next |
| 836 | # option. Don't use; only provided for compatibility. |
| 837 | # (default: false) |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 838 | # |
| 839 | # Features: |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 840 | # |
| 841 | # @deprecated: Member @opened is deprecated. Setting true doesn't |
| 842 | # make sense, and false is already the default. |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 843 | # |
| 844 | # Since: 1.3 |
| 845 | ## |
| 846 | { 'struct': 'RngProperties', |
| 847 | 'data': { '*opened': { 'type': 'bool', 'features': ['deprecated'] } } } |
| 848 | |
| 849 | ## |
| 850 | # @RngEgdProperties: |
| 851 | # |
| 852 | # Properties for rng-egd objects. |
| 853 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 854 | # @chardev: the name of a character device backend that provides the |
| 855 | # connection to the RNG daemon |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 856 | # |
| 857 | # Since: 1.3 |
| 858 | ## |
| 859 | { 'struct': 'RngEgdProperties', |
| 860 | 'base': 'RngProperties', |
| 861 | 'data': { 'chardev': 'str' } } |
| 862 | |
| 863 | ## |
| 864 | # @RngRandomProperties: |
| 865 | # |
| 866 | # Properties for rng-random objects. |
| 867 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 868 | # @filename: the filename of the device on the host to obtain entropy |
| 869 | # from (default: "/dev/urandom") |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 870 | # |
| 871 | # Since: 1.3 |
| 872 | ## |
| 873 | { 'struct': 'RngRandomProperties', |
| 874 | 'base': 'RngProperties', |
| 875 | 'data': { '*filename': 'str' } } |
| 876 | |
| 877 | ## |
Kevin Wolf | 590466f | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 878 | # @SevGuestProperties: |
| 879 | # |
| 880 | # Properties for sev-guest objects. |
| 881 | # |
| 882 | # @sev-device: SEV device to use (default: "/dev/sev") |
| 883 | # |
| 884 | # @dh-cert-file: guest owners DH certificate (encoded with base64) |
| 885 | # |
| 886 | # @session-file: guest owners session parameters (encoded with base64) |
| 887 | # |
| 888 | # @policy: SEV policy value (default: 0x1) |
| 889 | # |
| 890 | # @handle: SEV firmware handle (default: 0) |
| 891 | # |
| 892 | # @cbitpos: C-bit location in page table entry (default: 0) |
| 893 | # |
| 894 | # @reduced-phys-bits: number of bits in physical addresses that become |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 895 | # unavailable when SEV is enabled |
Kevin Wolf | 590466f | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 896 | # |
Dov Murik | 55cdf56 | 2021-11-11 10:00:43 +0000 | [diff] [blame] | 897 | # @kernel-hashes: if true, add hashes of kernel/initrd/cmdline to a |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 898 | # designated guest firmware page for measured boot with -kernel |
| 899 | # (default: false) (since 6.2) |
Dov Murik | 55cdf56 | 2021-11-11 10:00:43 +0000 | [diff] [blame] | 900 | # |
Michael Roth | 0232673 | 2024-04-09 18:07:41 -0500 | [diff] [blame] | 901 | # @legacy-vm-type: Use legacy KVM_SEV_INIT KVM interface for creating the VM. |
| 902 | # The newer KVM_SEV_INIT2 interface syncs additional vCPU |
| 903 | # state when initializing the VMSA structures, which will |
| 904 | # result in a different guest measurement. Set this to |
| 905 | # maintain compatibility with older QEMU or kernel versions |
| 906 | # that rely on legacy KVM_SEV_INIT behavior. |
| 907 | # (default: false) (since 9.1) |
| 908 | # |
Kevin Wolf | 590466f | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 909 | # Since: 2.12 |
| 910 | ## |
| 911 | { 'struct': 'SevGuestProperties', |
| 912 | 'data': { '*sev-device': 'str', |
| 913 | '*dh-cert-file': 'str', |
| 914 | '*session-file': 'str', |
| 915 | '*policy': 'uint32', |
| 916 | '*handle': 'uint32', |
| 917 | '*cbitpos': 'uint32', |
Dov Murik | 55cdf56 | 2021-11-11 10:00:43 +0000 | [diff] [blame] | 918 | 'reduced-phys-bits': 'uint32', |
Michael Roth | 0232673 | 2024-04-09 18:07:41 -0500 | [diff] [blame] | 919 | '*kernel-hashes': 'bool', |
| 920 | '*legacy-vm-type': 'bool' } } |
Kevin Wolf | 590466f | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 921 | |
| 922 | ## |
David Hildenbrand | e2de2c4 | 2022-10-14 15:47:16 +0200 | [diff] [blame] | 923 | # @ThreadContextProperties: |
| 924 | # |
| 925 | # Properties for thread context objects. |
| 926 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 927 | # @cpu-affinity: the list of host CPU numbers used as CPU affinity for |
| 928 | # all threads created in the thread context (default: QEMU main |
| 929 | # thread CPU affinity) |
David Hildenbrand | e2de2c4 | 2022-10-14 15:47:16 +0200 | [diff] [blame] | 930 | # |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 931 | # @node-affinity: the list of host node numbers that will be resolved |
| 932 | # to a list of host CPU numbers used as CPU affinity. This is a |
| 933 | # shortcut for specifying the list of host CPU numbers belonging |
| 934 | # to the host nodes manually by setting @cpu-affinity. |
| 935 | # (default: QEMU main thread affinity) |
David Hildenbrand | 10218ae | 2022-10-14 15:47:17 +0200 | [diff] [blame] | 936 | # |
David Hildenbrand | e2de2c4 | 2022-10-14 15:47:16 +0200 | [diff] [blame] | 937 | # Since: 7.2 |
| 938 | ## |
| 939 | { 'struct': 'ThreadContextProperties', |
David Hildenbrand | 10218ae | 2022-10-14 15:47:17 +0200 | [diff] [blame] | 940 | 'data': { '*cpu-affinity': ['uint16'], |
| 941 | '*node-affinity': ['uint16'] } } |
David Hildenbrand | e2de2c4 | 2022-10-14 15:47:16 +0200 | [diff] [blame] | 942 | |
| 943 | |
| 944 | ## |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 945 | # @ObjectType: |
| 946 | # |
Markus Armbruster | 9fb49da | 2021-10-28 12:25:13 +0200 | [diff] [blame] | 947 | # Features: |
Markus Armbruster | a937b6a | 2023-04-28 12:54:29 +0200 | [diff] [blame] | 948 | # |
Markus Armbruster | 9fb49da | 2021-10-28 12:25:13 +0200 | [diff] [blame] | 949 | # @unstable: Member @x-remote-object is experimental. |
| 950 | # |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 951 | # Since: 6.0 |
| 952 | ## |
| 953 | { 'enum': 'ObjectType', |
| 954 | 'data': [ |
Ankit Agrawal | b64b7ed | 2024-03-08 14:55:23 +0000 | [diff] [blame] | 955 | 'acpi-generic-initiator', |
Kevin Wolf | 8825587 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 956 | 'authz-list', |
| 957 | 'authz-listfile', |
| 958 | 'authz-pam', |
| 959 | 'authz-simple', |
Kevin Wolf | f3189b9 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 960 | 'can-bus', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 961 | { 'name': 'can-host-socketcan', |
| 962 | 'if': 'CONFIG_LINUX' }, |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 963 | 'colo-compare', |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 964 | 'cryptodev-backend', |
| 965 | 'cryptodev-backend-builtin', |
Lei He | 39fff6f | 2022-10-08 16:50:30 +0800 | [diff] [blame] | 966 | 'cryptodev-backend-lkcf', |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 967 | { 'name': 'cryptodev-vhost-user', |
Marc-André Lureau | 8a9f1e1 | 2021-08-04 12:31:05 +0400 | [diff] [blame] | 968 | 'if': 'CONFIG_VHOST_CRYPTO' }, |
Kevin Wolf | d7ef29c | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 969 | 'dbus-vmstate', |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 970 | 'filter-buffer', |
| 971 | 'filter-dump', |
| 972 | 'filter-mirror', |
| 973 | 'filter-redirector', |
| 974 | 'filter-replay', |
| 975 | 'filter-rewriter', |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 976 | 'input-barrier', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 977 | { 'name': 'input-linux', |
| 978 | 'if': 'CONFIG_LINUX' }, |
Eric Auger | 6e6d8ac | 2023-11-21 16:44:00 +0800 | [diff] [blame] | 979 | 'iommufd', |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 980 | 'iothread', |
Nicolas Saenz Julienne | 70ac26b | 2022-04-25 09:57:22 +0200 | [diff] [blame] | 981 | 'main-loop', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 982 | { 'name': 'memory-backend-epc', |
| 983 | 'if': 'CONFIG_LINUX' }, |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 984 | 'memory-backend-file', |
| 985 | { 'name': 'memory-backend-memfd', |
Marc-André Lureau | 8a9f1e1 | 2021-08-04 12:31:05 +0400 | [diff] [blame] | 986 | 'if': 'CONFIG_LINUX' }, |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 987 | 'memory-backend-ram', |
Paolo Bonzini | a061a71 | 2021-03-26 04:48:39 -0400 | [diff] [blame] | 988 | 'pef-guest', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 989 | { 'name': 'pr-manager-helper', |
| 990 | 'if': 'CONFIG_LINUX' }, |
Paolo Bonzini | 6ba7ada | 2020-11-09 10:13:30 -0500 | [diff] [blame] | 991 | 'qtest', |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 992 | 'rng-builtin', |
| 993 | 'rng-egd', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 994 | { 'name': 'rng-random', |
| 995 | 'if': 'CONFIG_POSIX' }, |
Kevin Wolf | 39c4c27 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 996 | 'secret', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 997 | { 'name': 'secret_keyring', |
| 998 | 'if': 'CONFIG_SECRET_KEYRING' }, |
Paolo Bonzini | a061a71 | 2021-03-26 04:48:39 -0400 | [diff] [blame] | 999 | 'sev-guest', |
David Hildenbrand | e2de2c4 | 2022-10-14 15:47:16 +0200 | [diff] [blame] | 1000 | 'thread-context', |
Kevin Wolf | 590466f | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1001 | 's390-pv-guest', |
Kevin Wolf | d09e493 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1002 | 'throttle-group', |
| 1003 | 'tls-creds-anon', |
| 1004 | 'tls-creds-psk', |
| 1005 | 'tls-creds-x509', |
Kevin Wolf | 17422da | 2021-02-24 13:21:48 +0100 | [diff] [blame] | 1006 | 'tls-cipher-suites', |
Jagannathan Raman | 8f9a925 | 2022-06-13 16:26:25 -0400 | [diff] [blame] | 1007 | { 'name': 'x-remote-object', 'features': [ 'unstable' ] }, |
| 1008 | { 'name': 'x-vfio-user-server', 'features': [ 'unstable' ] } |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1009 | ] } |
| 1010 | |
| 1011 | ## |
| 1012 | # @ObjectOptions: |
| 1013 | # |
| 1014 | # Describes the options of a user creatable QOM object. |
| 1015 | # |
| 1016 | # @qom-type: the class name for the object to be created |
| 1017 | # |
| 1018 | # @id: the name of the new object |
| 1019 | # |
| 1020 | # Since: 6.0 |
| 1021 | ## |
| 1022 | { 'union': 'ObjectOptions', |
| 1023 | 'base': { 'qom-type': 'ObjectType', |
| 1024 | 'id': 'str' }, |
| 1025 | 'discriminator': 'qom-type', |
| 1026 | 'data': { |
Ankit Agrawal | b64b7ed | 2024-03-08 14:55:23 +0000 | [diff] [blame] | 1027 | 'acpi-generic-initiator': 'AcpiGenericInitiatorProperties', |
Kevin Wolf | 8825587 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1028 | 'authz-list': 'AuthZListProperties', |
| 1029 | 'authz-listfile': 'AuthZListFileProperties', |
| 1030 | 'authz-pam': 'AuthZPAMProperties', |
| 1031 | 'authz-simple': 'AuthZSimpleProperties', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 1032 | 'can-host-socketcan': { 'type': 'CanHostSocketcanProperties', |
| 1033 | 'if': 'CONFIG_LINUX' }, |
Kevin Wolf | 3d0d3c3 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1034 | 'colo-compare': 'ColoCompareProperties', |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1035 | 'cryptodev-backend': 'CryptodevBackendProperties', |
| 1036 | 'cryptodev-backend-builtin': 'CryptodevBackendProperties', |
Lei He | 39fff6f | 2022-10-08 16:50:30 +0800 | [diff] [blame] | 1037 | 'cryptodev-backend-lkcf': 'CryptodevBackendProperties', |
Kevin Wolf | a68d909 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1038 | 'cryptodev-vhost-user': { 'type': 'CryptodevVhostUserProperties', |
Marc-André Lureau | 8a9f1e1 | 2021-08-04 12:31:05 +0400 | [diff] [blame] | 1039 | 'if': 'CONFIG_VHOST_CRYPTO' }, |
Kevin Wolf | d7ef29c | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1040 | 'dbus-vmstate': 'DBusVMStateProperties', |
Kevin Wolf | 1156a67 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1041 | 'filter-buffer': 'FilterBufferProperties', |
| 1042 | 'filter-dump': 'FilterDumpProperties', |
| 1043 | 'filter-mirror': 'FilterMirrorProperties', |
| 1044 | 'filter-redirector': 'FilterRedirectorProperties', |
| 1045 | 'filter-replay': 'NetfilterProperties', |
| 1046 | 'filter-rewriter': 'FilterRewriterProperties', |
Kevin Wolf | 30e863e | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1047 | 'input-barrier': 'InputBarrierProperties', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 1048 | 'input-linux': { 'type': 'InputLinuxProperties', |
| 1049 | 'if': 'CONFIG_LINUX' }, |
Eric Auger | 6e6d8ac | 2023-11-21 16:44:00 +0800 | [diff] [blame] | 1050 | 'iommufd': 'IOMMUFDProperties', |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1051 | 'iothread': 'IothreadProperties', |
Nicolas Saenz Julienne | 70ac26b | 2022-04-25 09:57:22 +0200 | [diff] [blame] | 1052 | 'main-loop': 'MainLoopProperties', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 1053 | 'memory-backend-epc': { 'type': 'MemoryBackendEpcProperties', |
| 1054 | 'if': 'CONFIG_LINUX' }, |
Kevin Wolf | 913d906 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1055 | 'memory-backend-file': 'MemoryBackendFileProperties', |
| 1056 | 'memory-backend-memfd': { 'type': 'MemoryBackendMemfdProperties', |
Marc-André Lureau | 8a9f1e1 | 2021-08-04 12:31:05 +0400 | [diff] [blame] | 1057 | 'if': 'CONFIG_LINUX' }, |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1058 | 'memory-backend-ram': 'MemoryBackendProperties', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 1059 | 'pr-manager-helper': { 'type': 'PrManagerHelperProperties', |
| 1060 | 'if': 'CONFIG_LINUX' }, |
Paolo Bonzini | 6ba7ada | 2020-11-09 10:13:30 -0500 | [diff] [blame] | 1061 | 'qtest': 'QtestProperties', |
Kevin Wolf | 6815bc1d | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1062 | 'rng-builtin': 'RngProperties', |
| 1063 | 'rng-egd': 'RngEgdProperties', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 1064 | 'rng-random': { 'type': 'RngRandomProperties', |
| 1065 | 'if': 'CONFIG_POSIX' }, |
Kevin Wolf | 39c4c27 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1066 | 'secret': 'SecretProperties', |
Thomas Huth | f1279fc | 2021-09-28 18:02:32 +0200 | [diff] [blame] | 1067 | 'secret_keyring': { 'type': 'SecretKeyringProperties', |
| 1068 | 'if': 'CONFIG_SECRET_KEYRING' }, |
Paolo Bonzini | a061a71 | 2021-03-26 04:48:39 -0400 | [diff] [blame] | 1069 | 'sev-guest': 'SevGuestProperties', |
David Hildenbrand | e2de2c4 | 2022-10-14 15:47:16 +0200 | [diff] [blame] | 1070 | 'thread-context': 'ThreadContextProperties', |
Kevin Wolf | d09e493 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1071 | 'throttle-group': 'ThrottleGroupProperties', |
| 1072 | 'tls-creds-anon': 'TlsCredsAnonProperties', |
| 1073 | 'tls-creds-psk': 'TlsCredsPskProperties', |
| 1074 | 'tls-creds-x509': 'TlsCredsX509Properties', |
Kevin Wolf | 17422da | 2021-02-24 13:21:48 +0100 | [diff] [blame] | 1075 | 'tls-cipher-suites': 'TlsCredsProperties', |
Jagannathan Raman | 8f9a925 | 2022-06-13 16:26:25 -0400 | [diff] [blame] | 1076 | 'x-remote-object': 'RemoteObjectProperties', |
| 1077 | 'x-vfio-user-server': 'VfioUserServerProperties' |
Kevin Wolf | 2273b24 | 2020-10-20 12:47:58 +0200 | [diff] [blame] | 1078 | } } |
| 1079 | |
| 1080 | ## |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 1081 | # @object-add: |
| 1082 | # |
| 1083 | # Create a QOM object. |
| 1084 | # |
Markus Armbruster | 2746f06 | 2024-02-27 12:39:12 +0100 | [diff] [blame] | 1085 | # Errors: |
Markus Armbruster | ae7ccd5 | 2024-01-20 10:53:25 +0100 | [diff] [blame] | 1086 | # - Error if @qom-type is not a valid class name |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 1087 | # |
| 1088 | # Since: 2.0 |
| 1089 | # |
| 1090 | # Example: |
| 1091 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 1092 | # -> { "execute": "object-add", |
| 1093 | # "arguments": { "qom-type": "rng-random", "id": "rng1", |
| 1094 | # "filename": "/dev/hwrng" } } |
| 1095 | # <- { "return": {} } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 1096 | ## |
Paolo Bonzini | 9e33013 | 2020-11-03 04:39:02 -0500 | [diff] [blame] | 1097 | { 'command': 'object-add', 'data': 'ObjectOptions', 'boxed': true, |
| 1098 | 'allow-preconfig': true } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 1099 | |
| 1100 | ## |
| 1101 | # @object-del: |
| 1102 | # |
| 1103 | # Remove a QOM object. |
| 1104 | # |
| 1105 | # @id: the name of the QOM object to remove |
| 1106 | # |
Markus Armbruster | 2746f06 | 2024-02-27 12:39:12 +0100 | [diff] [blame] | 1107 | # Errors: |
Markus Armbruster | ae7ccd5 | 2024-01-20 10:53:25 +0100 | [diff] [blame] | 1108 | # - Error if @id is not a valid id for a QOM object |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 1109 | # |
| 1110 | # Since: 2.0 |
| 1111 | # |
| 1112 | # Example: |
| 1113 | # |
Markus Armbruster | d23055b | 2024-02-16 15:58:34 +0100 | [diff] [blame] | 1114 | # -> { "execute": "object-del", "arguments": { "id": "rng1" } } |
| 1115 | # <- { "return": {} } |
Markus Armbruster | c577ff6 | 2019-06-19 22:10:37 +0200 | [diff] [blame] | 1116 | ## |
Paolo Bonzini | 9e33013 | 2020-11-03 04:39:02 -0500 | [diff] [blame] | 1117 | { 'command': 'object-del', 'data': {'id': 'str'}, |
| 1118 | 'allow-preconfig': true } |