]>
Commit | Line | Data |
---|---|---|
e3193601 AL |
1 | # -*- Mode: Python -*- |
2 | # | |
3 | # QAPI Schema | |
48a32bed | 4 | |
dcafd323 LC |
5 | ## |
6 | # @ErrorClass | |
7 | # | |
8 | # QEMU error classes | |
9 | # | |
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 | |
12 | # | |
13 | # @CommandNotFound: the requested command has not been found | |
14 | # | |
15 | # @DeviceEncrypted: the requested operation can't be fulfilled because the | |
16 | # selected device is encrypted | |
17 | # | |
18 | # @DeviceNotActive: a device has failed to be become active | |
19 | # | |
20 | # @DeviceNotFound: the requested device has not been found | |
21 | # | |
22 | # @KVMMissingCap: the requested operation can't be fulfilled because a | |
23 | # required KVM capability is missing | |
24 | # | |
25 | # @MigrationExpected: the requested operation can't be fulfilled because a | |
26 | # migration process is expected | |
27 | # | |
28 | # Since: 1.2 | |
29 | ## | |
30 | { 'enum': 'ErrorClass', | |
31 | 'data': [ 'GenericError', 'CommandNotFound', 'DeviceEncrypted', | |
32 | 'DeviceNotActive', 'DeviceNotFound', 'KVMMissingCap', | |
33 | 'MigrationExpected' ] } | |
34 | ||
48a32bed AL |
35 | ## |
36 | # @NameInfo: | |
37 | # | |
38 | # Guest name information. | |
39 | # | |
40 | # @name: #optional The name of the guest | |
41 | # | |
42 | # Since 0.14.0 | |
43 | ## | |
44 | { 'type': 'NameInfo', 'data': {'*name': 'str'} } | |
45 | ||
46 | ## | |
47 | # @query-name: | |
48 | # | |
49 | # Return the name information of a guest. | |
50 | # | |
51 | # Returns: @NameInfo of the guest | |
52 | # | |
53 | # Since 0.14.0 | |
54 | ## | |
55 | { 'command': 'query-name', 'returns': 'NameInfo' } | |
b9c15f16 LC |
56 | |
57 | ## | |
58 | # @VersionInfo: | |
59 | # | |
60 | # A description of QEMU's version. | |
61 | # | |
62 | # @qemu.major: The major version of QEMU | |
63 | # | |
64 | # @qemu.minor: The minor version of QEMU | |
65 | # | |
66 | # @qemu.micro: The micro version of QEMU. By current convention, a micro | |
67 | # version of 50 signifies a development branch. A micro version | |
68 | # greater than or equal to 90 signifies a release candidate for | |
69 | # the next minor version. A micro version of less than 50 | |
70 | # signifies a stable release. | |
71 | # | |
72 | # @package: QEMU will always set this field to an empty string. Downstream | |
73 | # versions of QEMU should set this to a non-empty string. The | |
74 | # exact format depends on the downstream however it highly | |
75 | # recommended that a unique name is used. | |
76 | # | |
77 | # Since: 0.14.0 | |
78 | ## | |
79 | { 'type': 'VersionInfo', | |
80 | 'data': {'qemu': {'major': 'int', 'minor': 'int', 'micro': 'int'}, | |
81 | 'package': 'str'} } | |
82 | ||
83 | ## | |
84 | # @query-version: | |
85 | # | |
86 | # Returns the current version of QEMU. | |
87 | # | |
88 | # Returns: A @VersionInfo object describing the current version of QEMU. | |
89 | # | |
90 | # Since: 0.14.0 | |
91 | ## | |
92 | { 'command': 'query-version', 'returns': 'VersionInfo' } | |
292a2602 LC |
93 | |
94 | ## | |
95 | # @KvmInfo: | |
96 | # | |
97 | # Information about support for KVM acceleration | |
98 | # | |
99 | # @enabled: true if KVM acceleration is active | |
100 | # | |
101 | # @present: true if KVM acceleration is built into this executable | |
102 | # | |
103 | # Since: 0.14.0 | |
104 | ## | |
105 | { 'type': 'KvmInfo', 'data': {'enabled': 'bool', 'present': 'bool'} } | |
106 | ||
107 | ## | |
108 | # @query-kvm: | |
109 | # | |
110 | # Returns information about KVM acceleration | |
111 | # | |
112 | # Returns: @KvmInfo | |
113 | # | |
114 | # Since: 0.14.0 | |
115 | ## | |
116 | { 'command': 'query-kvm', 'returns': 'KvmInfo' } | |
117 | ||
1fa9a5e4 LC |
118 | ## |
119 | # @RunState | |
120 | # | |
121 | # An enumation of VM run states. | |
122 | # | |
123 | # @debug: QEMU is running on a debugger | |
124 | # | |
0a24c7b1 LC |
125 | # @finish-migrate: guest is paused to finish the migration process |
126 | # | |
1fa9a5e4 LC |
127 | # @inmigrate: guest is paused waiting for an incoming migration |
128 | # | |
129 | # @internal-error: An internal error that prevents further guest execution | |
130 | # has occurred | |
131 | # | |
132 | # @io-error: the last IOP has failed and the device is configured to pause | |
133 | # on I/O errors | |
134 | # | |
135 | # @paused: guest has been paused via the 'stop' command | |
136 | # | |
137 | # @postmigrate: guest is paused following a successful 'migrate' | |
138 | # | |
139 | # @prelaunch: QEMU was started with -S and guest has not started | |
140 | # | |
1fa9a5e4 LC |
141 | # @restore-vm: guest is paused to restore VM state |
142 | # | |
143 | # @running: guest is actively running | |
144 | # | |
145 | # @save-vm: guest is paused to save the VM state | |
146 | # | |
147 | # @shutdown: guest is shut down (and -no-shutdown is in use) | |
148 | # | |
ad02b96a LC |
149 | # @suspended: guest is suspended (ACPI S3) |
150 | # | |
1fa9a5e4 LC |
151 | # @watchdog: the watchdog action is configured to pause and has been triggered |
152 | ## | |
153 | { 'enum': 'RunState', | |
154 | 'data': [ 'debug', 'inmigrate', 'internal-error', 'io-error', 'paused', | |
155 | 'postmigrate', 'prelaunch', 'finish-migrate', 'restore-vm', | |
ad02b96a | 156 | 'running', 'save-vm', 'shutdown', 'suspended', 'watchdog' ] } |
1fa9a5e4 LC |
157 | |
158 | ## | |
159 | # @StatusInfo: | |
160 | # | |
161 | # Information about VCPU run state | |
162 | # | |
163 | # @running: true if all VCPUs are runnable, false if not runnable | |
164 | # | |
165 | # @singlestep: true if VCPUs are in single-step mode | |
166 | # | |
167 | # @status: the virtual machine @RunState | |
168 | # | |
169 | # Since: 0.14.0 | |
170 | # | |
171 | # Notes: @singlestep is enabled through the GDB stub | |
172 | ## | |
173 | { 'type': 'StatusInfo', | |
174 | 'data': {'running': 'bool', 'singlestep': 'bool', 'status': 'RunState'} } | |
175 | ||
176 | ## | |
177 | # @query-status: | |
178 | # | |
179 | # Query the run status of all VCPUs | |
180 | # | |
181 | # Returns: @StatusInfo reflecting all VCPUs | |
182 | # | |
183 | # Since: 0.14.0 | |
184 | ## | |
185 | { 'command': 'query-status', 'returns': 'StatusInfo' } | |
186 | ||
efab767e LC |
187 | ## |
188 | # @UuidInfo: | |
189 | # | |
190 | # Guest UUID information. | |
191 | # | |
192 | # @UUID: the UUID of the guest | |
193 | # | |
194 | # Since: 0.14.0 | |
195 | # | |
196 | # Notes: If no UUID was specified for the guest, a null UUID is returned. | |
197 | ## | |
198 | { 'type': 'UuidInfo', 'data': {'UUID': 'str'} } | |
199 | ||
200 | ## | |
201 | # @query-uuid: | |
202 | # | |
203 | # Query the guest UUID information. | |
204 | # | |
205 | # Returns: The @UuidInfo for the guest | |
206 | # | |
207 | # Since 0.14.0 | |
208 | ## | |
209 | { 'command': 'query-uuid', 'returns': 'UuidInfo' } | |
210 | ||
c5a415a0 LC |
211 | ## |
212 | # @ChardevInfo: | |
213 | # | |
214 | # Information about a character device. | |
215 | # | |
216 | # @label: the label of the character device | |
217 | # | |
218 | # @filename: the filename of the character device | |
219 | # | |
220 | # Notes: @filename is encoded using the QEMU command line character device | |
221 | # encoding. See the QEMU man page for details. | |
222 | # | |
223 | # Since: 0.14.0 | |
224 | ## | |
225 | { 'type': 'ChardevInfo', 'data': {'label': 'str', 'filename': 'str'} } | |
226 | ||
227 | ## | |
228 | # @query-chardev: | |
229 | # | |
230 | # Returns information about current character devices. | |
231 | # | |
232 | # Returns: a list of @ChardevInfo | |
233 | # | |
234 | # Since: 0.14.0 | |
235 | ## | |
236 | { 'command': 'query-chardev', 'returns': ['ChardevInfo'] } | |
aa9b79bc LC |
237 | |
238 | ## | |
239 | # @CommandInfo: | |
240 | # | |
241 | # Information about a QMP command | |
242 | # | |
243 | # @name: The command name | |
244 | # | |
245 | # Since: 0.14.0 | |
246 | ## | |
247 | { 'type': 'CommandInfo', 'data': {'name': 'str'} } | |
248 | ||
249 | ## | |
250 | # @query-commands: | |
251 | # | |
252 | # Return a list of supported QMP commands by this server | |
253 | # | |
254 | # Returns: A list of @CommandInfo for all supported commands | |
255 | # | |
256 | # Since: 0.14.0 | |
257 | ## | |
258 | { 'command': 'query-commands', 'returns': ['CommandInfo'] } | |
259 | ||
4860853d DB |
260 | ## |
261 | # @EventInfo: | |
262 | # | |
263 | # Information about a QMP event | |
264 | # | |
265 | # @name: The event name | |
266 | # | |
267 | # Since: 1.2.0 | |
268 | ## | |
269 | { 'type': 'EventInfo', 'data': {'name': 'str'} } | |
270 | ||
271 | ## | |
272 | # @query-events: | |
273 | # | |
274 | # Return a list of supported QMP events by this server | |
275 | # | |
276 | # Returns: A list of @EventInfo for all supported events | |
277 | # | |
278 | # Since: 1.2.0 | |
279 | ## | |
280 | { 'command': 'query-events', 'returns': ['EventInfo'] } | |
281 | ||
791e7c82 LC |
282 | ## |
283 | # @MigrationStats | |
284 | # | |
285 | # Detailed migration status. | |
286 | # | |
287 | # @transferred: amount of bytes already transferred to the target VM | |
288 | # | |
289 | # @remaining: amount of bytes remaining to be transferred to the target VM | |
290 | # | |
291 | # @total: total amount of bytes involved in the migration process | |
292 | # | |
62d4e3fe | 293 | # @total-time: total amount of ms since migration started. If |
d5f8a570 JQ |
294 | # migration has ended, it returns the total migration |
295 | # time. (since 1.2) | |
296 | # | |
004d4c10 OW |
297 | # @duplicate: number of duplicate pages (since 1.2) |
298 | # | |
299 | # @normal : number of normal pages (since 1.2) | |
300 | # | |
301 | # @normal-bytes : number of normal bytes sent (since 1.2) | |
302 | # | |
303 | # Since: 0.14.0 | |
791e7c82 LC |
304 | ## |
305 | { 'type': 'MigrationStats', | |
d5f8a570 | 306 | 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' , |
004d4c10 OW |
307 | 'total-time': 'int', 'duplicate': 'int', 'normal': 'int', |
308 | 'normal-bytes': 'int' } } | |
791e7c82 | 309 | |
f36d55af OW |
310 | ## |
311 | # @XBZRLECacheStats | |
312 | # | |
313 | # Detailed XBZRLE migration cache statistics | |
314 | # | |
315 | # @cache-size: XBZRLE cache size | |
316 | # | |
317 | # @bytes: amount of bytes already transferred to the target VM | |
318 | # | |
319 | # @pages: amount of pages transferred to the target VM | |
320 | # | |
321 | # @cache-miss: number of cache miss | |
322 | # | |
323 | # @overflow: number of overflows | |
324 | # | |
325 | # Since: 1.2 | |
326 | ## | |
327 | { 'type': 'XBZRLECacheStats', | |
328 | 'data': {'cache-size': 'int', 'bytes': 'int', 'pages': 'int', | |
329 | 'cache-miss': 'int', 'overflow': 'int' } } | |
330 | ||
791e7c82 LC |
331 | ## |
332 | # @MigrationInfo | |
333 | # | |
334 | # Information about current migration process. | |
335 | # | |
336 | # @status: #optional string describing the current migration status. | |
337 | # As of 0.14.0 this can be 'active', 'completed', 'failed' or | |
338 | # 'cancelled'. If this field is not returned, no migration process | |
339 | # has been initiated | |
340 | # | |
d5f8a570 JQ |
341 | # @ram: #optional @MigrationStats containing detailed migration |
342 | # status, only returned if status is 'active' or | |
343 | # 'completed'. 'comppleted' (since 1.2) | |
791e7c82 LC |
344 | # |
345 | # @disk: #optional @MigrationStats containing detailed disk migration | |
346 | # status, only returned if status is 'active' and it is a block | |
347 | # migration | |
348 | # | |
f36d55af OW |
349 | # @xbzrle-cache: #optional @XBZRLECacheStats containing detailed XBZRLE |
350 | # migration statistics, only returned if XBZRLE feature is on and | |
351 | # status is 'active' or 'completed' (since 1.2) | |
352 | # | |
791e7c82 LC |
353 | # Since: 0.14.0 |
354 | ## | |
355 | { 'type': 'MigrationInfo', | |
356 | 'data': {'*status': 'str', '*ram': 'MigrationStats', | |
f36d55af OW |
357 | '*disk': 'MigrationStats', |
358 | '*xbzrle-cache': 'XBZRLECacheStats'} } | |
791e7c82 LC |
359 | |
360 | ## | |
361 | # @query-migrate | |
362 | # | |
363 | # Returns information about current migration process. | |
364 | # | |
365 | # Returns: @MigrationInfo | |
366 | # | |
367 | # Since: 0.14.0 | |
368 | ## | |
369 | { 'command': 'query-migrate', 'returns': 'MigrationInfo' } | |
370 | ||
bbf6da32 OW |
371 | ## |
372 | # @MigrationCapability | |
373 | # | |
374 | # Migration capabilities enumeration | |
375 | # | |
376 | # @xbzrle: Migration supports xbzrle (Xor Based Zero Run Length Encoding). | |
377 | # This feature allows us to minimize migration traffic for certain work | |
378 | # loads, by sending compressed difference of the pages | |
379 | # | |
380 | # Since: 1.2 | |
381 | ## | |
382 | { 'enum': 'MigrationCapability', | |
383 | 'data': ['xbzrle'] } | |
384 | ||
385 | ## | |
386 | # @MigrationCapabilityStatus | |
387 | # | |
388 | # Migration capability information | |
389 | # | |
390 | # @capability: capability enum | |
391 | # | |
392 | # @state: capability state bool | |
393 | # | |
394 | # Since: 1.2 | |
395 | ## | |
396 | { 'type': 'MigrationCapabilityStatus', | |
397 | 'data': { 'capability' : 'MigrationCapability', 'state' : 'bool' } } | |
398 | ||
399 | ## | |
00458433 OW |
400 | # @migrate-set-capabilities |
401 | # | |
402 | # Enable/Disable the following migration capabilities (like xbzrle) | |
403 | # | |
404 | # @capabilities: json array of capability modifications to make | |
405 | # | |
406 | # Since: 1.2 | |
407 | ## | |
408 | { 'command': 'migrate-set-capabilities', | |
409 | 'data': { 'capabilities': ['MigrationCapabilityStatus'] } } | |
410 | ||
411 | ## | |
bbf6da32 OW |
412 | # @query-migrate-capabilities |
413 | # | |
414 | # Returns information about the current migration capabilities status | |
415 | # | |
416 | # Returns: @MigrationCapabilitiesStatus | |
417 | # | |
418 | # Since: 1.2 | |
419 | ## | |
420 | { 'command': 'query-migrate-capabilities', 'returns': ['MigrationCapabilityStatus']} | |
421 | ||
e235cec3 LC |
422 | ## |
423 | # @MouseInfo: | |
424 | # | |
425 | # Information about a mouse device. | |
426 | # | |
427 | # @name: the name of the mouse device | |
428 | # | |
429 | # @index: the index of the mouse device | |
430 | # | |
431 | # @current: true if this device is currently receiving mouse events | |
432 | # | |
433 | # @absolute: true if this device supports absolute coordinates as input | |
434 | # | |
435 | # Since: 0.14.0 | |
436 | ## | |
437 | { 'type': 'MouseInfo', | |
438 | 'data': {'name': 'str', 'index': 'int', 'current': 'bool', | |
439 | 'absolute': 'bool'} } | |
440 | ||
441 | ## | |
442 | # @query-mice: | |
443 | # | |
444 | # Returns information about each active mouse device | |
445 | # | |
446 | # Returns: a list of @MouseInfo for each device | |
447 | # | |
448 | # Since: 0.14.0 | |
449 | ## | |
450 | { 'command': 'query-mice', 'returns': ['MouseInfo'] } | |
451 | ||
de0b36b6 LC |
452 | ## |
453 | # @CpuInfo: | |
454 | # | |
455 | # Information about a virtual CPU | |
456 | # | |
457 | # @CPU: the index of the virtual CPU | |
458 | # | |
459 | # @current: this only exists for backwards compatible and should be ignored | |
b80e560b | 460 | # |
de0b36b6 LC |
461 | # @halted: true if the virtual CPU is in the halt state. Halt usually refers |
462 | # to a processor specific low power mode. | |
463 | # | |
464 | # @pc: #optional If the target is i386 or x86_64, this is the 64-bit instruction | |
465 | # pointer. | |
466 | # If the target is Sparc, this is the PC component of the | |
467 | # instruction pointer. | |
468 | # | |
469 | # @nip: #optional If the target is PPC, the instruction pointer | |
470 | # | |
471 | # @npc: #optional If the target is Sparc, the NPC component of the instruction | |
472 | # pointer | |
473 | # | |
474 | # @PC: #optional If the target is MIPS, the instruction pointer | |
475 | # | |
476 | # @thread_id: ID of the underlying host thread | |
477 | # | |
478 | # Since: 0.14.0 | |
479 | # | |
480 | # Notes: @halted is a transient state that changes frequently. By the time the | |
481 | # data is sent to the client, the guest may no longer be halted. | |
482 | ## | |
483 | { 'type': 'CpuInfo', | |
484 | 'data': {'CPU': 'int', 'current': 'bool', 'halted': 'bool', '*pc': 'int', | |
485 | '*nip': 'int', '*npc': 'int', '*PC': 'int', 'thread_id': 'int'} } | |
486 | ||
487 | ## | |
488 | # @query-cpus: | |
489 | # | |
490 | # Returns a list of information about each virtual CPU. | |
491 | # | |
492 | # Returns: a list of @CpuInfo for each virtual CPU | |
493 | # | |
494 | # Since: 0.14.0 | |
495 | ## | |
496 | { 'command': 'query-cpus', 'returns': ['CpuInfo'] } | |
497 | ||
b2023818 LC |
498 | ## |
499 | # @BlockDeviceInfo: | |
500 | # | |
501 | # Information about the backing device for a block device. | |
502 | # | |
503 | # @file: the filename of the backing device | |
504 | # | |
505 | # @ro: true if the backing device was open read-only | |
506 | # | |
507 | # @drv: the name of the block format used to open the backing device. As of | |
508 | # 0.14.0 this can be: 'blkdebug', 'bochs', 'cloop', 'cow', 'dmg', | |
509 | # 'file', 'file', 'ftp', 'ftps', 'host_cdrom', 'host_device', | |
510 | # 'host_floppy', 'http', 'https', 'nbd', 'parallels', 'qcow', | |
511 | # 'qcow2', 'raw', 'tftp', 'vdi', 'vmdk', 'vpc', 'vvfat' | |
512 | # | |
513 | # @backing_file: #optional the name of the backing file (for copy-on-write) | |
514 | # | |
2e3e3317 BC |
515 | # @backing_file_depth: number of files in the backing file chain (since: 1.2) |
516 | # | |
b2023818 LC |
517 | # @encrypted: true if the backing device is encrypted |
518 | # | |
c75a1a8a LC |
519 | # @encryption_key_missing: true if the backing device is encrypted but an |
520 | # valid encryption key is missing | |
521 | # | |
727f005e ZYW |
522 | # @bps: total throughput limit in bytes per second is specified |
523 | # | |
524 | # @bps_rd: read throughput limit in bytes per second is specified | |
525 | # | |
526 | # @bps_wr: write throughput limit in bytes per second is specified | |
527 | # | |
528 | # @iops: total I/O operations per second is specified | |
529 | # | |
530 | # @iops_rd: read I/O operations per second is specified | |
531 | # | |
532 | # @iops_wr: write I/O operations per second is specified | |
533 | # | |
b2023818 LC |
534 | # Since: 0.14.0 |
535 | # | |
536 | # Notes: This interface is only found in @BlockInfo. | |
537 | ## | |
538 | { 'type': 'BlockDeviceInfo', | |
539 | 'data': { 'file': 'str', 'ro': 'bool', 'drv': 'str', | |
2e3e3317 | 540 | '*backing_file': 'str', 'backing_file_depth': 'int', |
c75a1a8a LC |
541 | 'encrypted': 'bool', 'encryption_key_missing': 'bool', |
542 | 'bps': 'int', 'bps_rd': 'int', 'bps_wr': 'int', | |
543 | 'iops': 'int', 'iops_rd': 'int', 'iops_wr': 'int'} } | |
b2023818 LC |
544 | |
545 | ## | |
546 | # @BlockDeviceIoStatus: | |
547 | # | |
548 | # An enumeration of block device I/O status. | |
549 | # | |
550 | # @ok: The last I/O operation has succeeded | |
551 | # | |
552 | # @failed: The last I/O operation has failed | |
553 | # | |
554 | # @nospace: The last I/O operation has failed due to a no-space condition | |
555 | # | |
556 | # Since: 1.0 | |
557 | ## | |
558 | { 'enum': 'BlockDeviceIoStatus', 'data': [ 'ok', 'failed', 'nospace' ] } | |
559 | ||
560 | ## | |
561 | # @BlockInfo: | |
562 | # | |
563 | # Block device information. This structure describes a virtual device and | |
564 | # the backing device associated with it. | |
565 | # | |
566 | # @device: The device name associated with the virtual device. | |
567 | # | |
568 | # @type: This field is returned only for compatibility reasons, it should | |
569 | # not be used (always returns 'unknown') | |
570 | # | |
571 | # @removable: True if the device supports removable media. | |
572 | # | |
573 | # @locked: True if the guest has locked this device from having its media | |
574 | # removed | |
575 | # | |
576 | # @tray_open: #optional True if the device has a tray and it is open | |
577 | # (only present if removable is true) | |
578 | # | |
579 | # @io-status: #optional @BlockDeviceIoStatus. Only present if the device | |
580 | # supports it and the VM is configured to stop on errors | |
581 | # | |
582 | # @inserted: #optional @BlockDeviceInfo describing the device if media is | |
583 | # present | |
584 | # | |
585 | # Since: 0.14.0 | |
586 | ## | |
587 | { 'type': 'BlockInfo', | |
588 | 'data': {'device': 'str', 'type': 'str', 'removable': 'bool', | |
589 | 'locked': 'bool', '*inserted': 'BlockDeviceInfo', | |
590 | '*tray_open': 'bool', '*io-status': 'BlockDeviceIoStatus'} } | |
591 | ||
592 | ## | |
593 | # @query-block: | |
594 | # | |
595 | # Get a list of BlockInfo for all virtual block devices. | |
596 | # | |
597 | # Returns: a list of @BlockInfo describing each virtual block device | |
598 | # | |
599 | # Since: 0.14.0 | |
600 | ## | |
601 | { 'command': 'query-block', 'returns': ['BlockInfo'] } | |
602 | ||
f11f57e4 LC |
603 | ## |
604 | # @BlockDeviceStats: | |
605 | # | |
606 | # Statistics of a virtual block device or a block backing device. | |
607 | # | |
608 | # @rd_bytes: The number of bytes read by the device. | |
609 | # | |
610 | # @wr_bytes: The number of bytes written by the device. | |
611 | # | |
612 | # @rd_operations: The number of read operations performed by the device. | |
613 | # | |
614 | # @wr_operations: The number of write operations performed by the device. | |
615 | # | |
616 | # @flush_operations: The number of cache flush operations performed by the | |
617 | # device (since 0.15.0) | |
618 | # | |
619 | # @flush_total_time_ns: Total time spend on cache flushes in nano-seconds | |
620 | # (since 0.15.0). | |
621 | # | |
622 | # @wr_total_time_ns: Total time spend on writes in nano-seconds (since 0.15.0). | |
623 | # | |
624 | # @rd_total_time_ns: Total_time_spend on reads in nano-seconds (since 0.15.0). | |
625 | # | |
626 | # @wr_highest_offset: The offset after the greatest byte written to the | |
627 | # device. The intended use of this information is for | |
628 | # growable sparse files (like qcow2) that are used on top | |
629 | # of a physical device. | |
630 | # | |
631 | # Since: 0.14.0 | |
632 | ## | |
633 | { 'type': 'BlockDeviceStats', | |
634 | 'data': {'rd_bytes': 'int', 'wr_bytes': 'int', 'rd_operations': 'int', | |
635 | 'wr_operations': 'int', 'flush_operations': 'int', | |
636 | 'flush_total_time_ns': 'int', 'wr_total_time_ns': 'int', | |
637 | 'rd_total_time_ns': 'int', 'wr_highest_offset': 'int' } } | |
638 | ||
639 | ## | |
640 | # @BlockStats: | |
641 | # | |
642 | # Statistics of a virtual block device or a block backing device. | |
643 | # | |
644 | # @device: #optional If the stats are for a virtual block device, the name | |
645 | # corresponding to the virtual block device. | |
646 | # | |
647 | # @stats: A @BlockDeviceStats for the device. | |
648 | # | |
649 | # @parent: #optional This may point to the backing block device if this is a | |
650 | # a virtual block device. If it's a backing block, this will point | |
651 | # to the backing file is one is present. | |
652 | # | |
653 | # Since: 0.14.0 | |
654 | ## | |
655 | { 'type': 'BlockStats', | |
656 | 'data': {'*device': 'str', 'stats': 'BlockDeviceStats', | |
657 | '*parent': 'BlockStats'} } | |
658 | ||
659 | ## | |
660 | # @query-blockstats: | |
661 | # | |
662 | # Query the @BlockStats for all virtual block devices. | |
663 | # | |
664 | # Returns: A list of @BlockStats for each virtual block devices. | |
665 | # | |
666 | # Since: 0.14.0 | |
667 | ## | |
668 | { 'command': 'query-blockstats', 'returns': ['BlockStats'] } | |
669 | ||
2b54aa87 LC |
670 | ## |
671 | # @VncClientInfo: | |
672 | # | |
673 | # Information about a connected VNC client. | |
674 | # | |
675 | # @host: The host name of the client. QEMU tries to resolve this to a DNS name | |
676 | # when possible. | |
677 | # | |
678 | # @family: 'ipv6' if the client is connected via IPv6 and TCP | |
679 | # 'ipv4' if the client is connected via IPv4 and TCP | |
680 | # 'unix' if the client is connected via a unix domain socket | |
681 | # 'unknown' otherwise | |
682 | # | |
683 | # @service: The service name of the client's port. This may depends on the | |
684 | # host system's service database so symbolic names should not be | |
685 | # relied on. | |
686 | # | |
687 | # @x509_dname: #optional If x509 authentication is in use, the Distinguished | |
688 | # Name of the client. | |
689 | # | |
690 | # @sasl_username: #optional If SASL authentication is in use, the SASL username | |
691 | # used for authentication. | |
692 | # | |
693 | # Since: 0.14.0 | |
694 | ## | |
695 | { 'type': 'VncClientInfo', | |
696 | 'data': {'host': 'str', 'family': 'str', 'service': 'str', | |
697 | '*x509_dname': 'str', '*sasl_username': 'str'} } | |
698 | ||
699 | ## | |
700 | # @VncInfo: | |
701 | # | |
702 | # Information about the VNC session. | |
703 | # | |
704 | # @enabled: true if the VNC server is enabled, false otherwise | |
705 | # | |
706 | # @host: #optional The hostname the VNC server is bound to. This depends on | |
707 | # the name resolution on the host and may be an IP address. | |
708 | # | |
709 | # @family: #optional 'ipv6' if the host is listening for IPv6 connections | |
710 | # 'ipv4' if the host is listening for IPv4 connections | |
711 | # 'unix' if the host is listening on a unix domain socket | |
712 | # 'unknown' otherwise | |
713 | # | |
714 | # @service: #optional The service name of the server's port. This may depends | |
715 | # on the host system's service database so symbolic names should not | |
716 | # be relied on. | |
717 | # | |
718 | # @auth: #optional the current authentication type used by the server | |
719 | # 'none' if no authentication is being used | |
720 | # 'vnc' if VNC authentication is being used | |
721 | # 'vencrypt+plain' if VEncrypt is used with plain text authentication | |
722 | # 'vencrypt+tls+none' if VEncrypt is used with TLS and no authentication | |
723 | # 'vencrypt+tls+vnc' if VEncrypt is used with TLS and VNC authentication | |
724 | # 'vencrypt+tls+plain' if VEncrypt is used with TLS and plain text auth | |
725 | # 'vencrypt+x509+none' if VEncrypt is used with x509 and no auth | |
726 | # 'vencrypt+x509+vnc' if VEncrypt is used with x509 and VNC auth | |
727 | # 'vencrypt+x509+plain' if VEncrypt is used with x509 and plain text auth | |
728 | # 'vencrypt+tls+sasl' if VEncrypt is used with TLS and SASL auth | |
729 | # 'vencrypt+x509+sasl' if VEncrypt is used with x509 and SASL auth | |
730 | # | |
731 | # @clients: a list of @VncClientInfo of all currently connected clients | |
732 | # | |
733 | # Since: 0.14.0 | |
734 | ## | |
735 | { 'type': 'VncInfo', | |
736 | 'data': {'enabled': 'bool', '*host': 'str', '*family': 'str', | |
737 | '*service': 'str', '*auth': 'str', '*clients': ['VncClientInfo']} } | |
738 | ||
739 | ## | |
740 | # @query-vnc: | |
741 | # | |
742 | # Returns information about the current VNC server | |
743 | # | |
744 | # Returns: @VncInfo | |
2b54aa87 LC |
745 | # |
746 | # Since: 0.14.0 | |
747 | ## | |
748 | { 'command': 'query-vnc', 'returns': 'VncInfo' } | |
749 | ||
d1f29646 LC |
750 | ## |
751 | # @SpiceChannel | |
752 | # | |
753 | # Information about a SPICE client channel. | |
754 | # | |
755 | # @host: The host name of the client. QEMU tries to resolve this to a DNS name | |
756 | # when possible. | |
757 | # | |
758 | # @family: 'ipv6' if the client is connected via IPv6 and TCP | |
759 | # 'ipv4' if the client is connected via IPv4 and TCP | |
760 | # 'unix' if the client is connected via a unix domain socket | |
761 | # 'unknown' otherwise | |
762 | # | |
763 | # @port: The client's port number. | |
764 | # | |
765 | # @connection-id: SPICE connection id number. All channels with the same id | |
766 | # belong to the same SPICE session. | |
767 | # | |
419e1bdf AL |
768 | # @connection-type: SPICE channel type number. "1" is the main control |
769 | # channel, filter for this one if you want to track spice | |
770 | # sessions only | |
d1f29646 | 771 | # |
419e1bdf AL |
772 | # @channel-id: SPICE channel ID number. Usually "0", might be different when |
773 | # multiple channels of the same type exist, such as multiple | |
d1f29646 LC |
774 | # display channels in a multihead setup |
775 | # | |
776 | # @tls: true if the channel is encrypted, false otherwise. | |
777 | # | |
778 | # Since: 0.14.0 | |
779 | ## | |
780 | { 'type': 'SpiceChannel', | |
781 | 'data': {'host': 'str', 'family': 'str', 'port': 'str', | |
782 | 'connection-id': 'int', 'channel-type': 'int', 'channel-id': 'int', | |
783 | 'tls': 'bool'} } | |
784 | ||
4efee029 AL |
785 | ## |
786 | # @SpiceQueryMouseMode | |
787 | # | |
788 | # An enumation of Spice mouse states. | |
789 | # | |
790 | # @client: Mouse cursor position is determined by the client. | |
791 | # | |
792 | # @server: Mouse cursor position is determined by the server. | |
793 | # | |
794 | # @unknown: No information is available about mouse mode used by | |
795 | # the spice server. | |
796 | # | |
797 | # Note: spice/enums.h has a SpiceMouseMode already, hence the name. | |
798 | # | |
799 | # Since: 1.1 | |
800 | ## | |
801 | { 'enum': 'SpiceQueryMouseMode', | |
802 | 'data': [ 'client', 'server', 'unknown' ] } | |
803 | ||
d1f29646 LC |
804 | ## |
805 | # @SpiceInfo | |
806 | # | |
807 | # Information about the SPICE session. | |
b80e560b | 808 | # |
d1f29646 LC |
809 | # @enabled: true if the SPICE server is enabled, false otherwise |
810 | # | |
811 | # @host: #optional The hostname the SPICE server is bound to. This depends on | |
812 | # the name resolution on the host and may be an IP address. | |
813 | # | |
814 | # @port: #optional The SPICE server's port number. | |
815 | # | |
816 | # @compiled-version: #optional SPICE server version. | |
817 | # | |
818 | # @tls-port: #optional The SPICE server's TLS port number. | |
819 | # | |
820 | # @auth: #optional the current authentication type used by the server | |
419e1bdf AL |
821 | # 'none' if no authentication is being used |
822 | # 'spice' uses SASL or direct TLS authentication, depending on command | |
823 | # line options | |
d1f29646 | 824 | # |
4efee029 AL |
825 | # @mouse-mode: The mode in which the mouse cursor is displayed currently. Can |
826 | # be determined by the client or the server, or unknown if spice | |
827 | # server doesn't provide this information. | |
828 | # | |
829 | # Since: 1.1 | |
830 | # | |
d1f29646 LC |
831 | # @channels: a list of @SpiceChannel for each active spice channel |
832 | # | |
833 | # Since: 0.14.0 | |
834 | ## | |
835 | { 'type': 'SpiceInfo', | |
836 | 'data': {'enabled': 'bool', '*host': 'str', '*port': 'int', | |
837 | '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str', | |
4efee029 | 838 | 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']} } |
d1f29646 LC |
839 | |
840 | ## | |
841 | # @query-spice | |
842 | # | |
843 | # Returns information about the current SPICE server | |
844 | # | |
845 | # Returns: @SpiceInfo | |
846 | # | |
847 | # Since: 0.14.0 | |
848 | ## | |
849 | { 'command': 'query-spice', 'returns': 'SpiceInfo' } | |
850 | ||
96637bcd LC |
851 | ## |
852 | # @BalloonInfo: | |
853 | # | |
854 | # Information about the guest balloon device. | |
855 | # | |
856 | # @actual: the number of bytes the balloon currently contains | |
857 | # | |
858 | # @mem_swapped_in: #optional number of pages swapped in within the guest | |
859 | # | |
860 | # @mem_swapped_out: #optional number of pages swapped out within the guest | |
861 | # | |
862 | # @major_page_faults: #optional number of major page faults within the guest | |
863 | # | |
864 | # @minor_page_faults: #optional number of minor page faults within the guest | |
865 | # | |
866 | # @free_mem: #optional amount of memory (in bytes) free in the guest | |
867 | # | |
868 | # @total_mem: #optional amount of memory (in bytes) visible to the guest | |
869 | # | |
870 | # Since: 0.14.0 | |
871 | # | |
872 | # Notes: all current versions of QEMU do not fill out optional information in | |
873 | # this structure. | |
874 | ## | |
875 | { 'type': 'BalloonInfo', | |
876 | 'data': {'actual': 'int', '*mem_swapped_in': 'int', | |
877 | '*mem_swapped_out': 'int', '*major_page_faults': 'int', | |
878 | '*minor_page_faults': 'int', '*free_mem': 'int', | |
879 | '*total_mem': 'int'} } | |
880 | ||
881 | ## | |
882 | # @query-balloon: | |
883 | # | |
884 | # Return information about the balloon device. | |
885 | # | |
886 | # Returns: @BalloonInfo on success | |
887 | # If the balloon driver is enabled but not functional because the KVM | |
888 | # kernel module cannot support it, KvmMissingCap | |
889 | # If no balloon device is present, DeviceNotActive | |
890 | # | |
891 | # Since: 0.14.0 | |
892 | ## | |
893 | { 'command': 'query-balloon', 'returns': 'BalloonInfo' } | |
894 | ||
79627472 LC |
895 | ## |
896 | # @PciMemoryRange: | |
897 | # | |
898 | # A PCI device memory region | |
899 | # | |
900 | # @base: the starting address (guest physical) | |
901 | # | |
902 | # @limit: the ending address (guest physical) | |
903 | # | |
904 | # Since: 0.14.0 | |
905 | ## | |
906 | { 'type': 'PciMemoryRange', 'data': {'base': 'int', 'limit': 'int'} } | |
907 | ||
908 | ## | |
909 | # @PciMemoryRegion | |
910 | # | |
911 | # Information about a PCI device I/O region. | |
912 | # | |
913 | # @bar: the index of the Base Address Register for this region | |
914 | # | |
915 | # @type: 'io' if the region is a PIO region | |
916 | # 'memory' if the region is a MMIO region | |
917 | # | |
918 | # @prefetch: #optional if @type is 'memory', true if the memory is prefetchable | |
919 | # | |
920 | # @mem_type_64: #optional if @type is 'memory', true if the BAR is 64-bit | |
921 | # | |
922 | # Since: 0.14.0 | |
923 | ## | |
924 | { 'type': 'PciMemoryRegion', | |
925 | 'data': {'bar': 'int', 'type': 'str', 'address': 'int', 'size': 'int', | |
926 | '*prefetch': 'bool', '*mem_type_64': 'bool' } } | |
927 | ||
928 | ## | |
929 | # @PciBridgeInfo: | |
930 | # | |
931 | # Information about a PCI Bridge device | |
932 | # | |
933 | # @bus.number: primary bus interface number. This should be the number of the | |
934 | # bus the device resides on. | |
935 | # | |
936 | # @bus.secondary: secondary bus interface number. This is the number of the | |
937 | # main bus for the bridge | |
938 | # | |
939 | # @bus.subordinate: This is the highest number bus that resides below the | |
940 | # bridge. | |
941 | # | |
942 | # @bus.io_range: The PIO range for all devices on this bridge | |
943 | # | |
944 | # @bus.memory_range: The MMIO range for all devices on this bridge | |
945 | # | |
946 | # @bus.prefetchable_range: The range of prefetchable MMIO for all devices on | |
947 | # this bridge | |
948 | # | |
949 | # @devices: a list of @PciDeviceInfo for each device on this bridge | |
950 | # | |
951 | # Since: 0.14.0 | |
952 | ## | |
953 | { 'type': 'PciBridgeInfo', | |
954 | 'data': {'bus': { 'number': 'int', 'secondary': 'int', 'subordinate': 'int', | |
955 | 'io_range': 'PciMemoryRange', | |
956 | 'memory_range': 'PciMemoryRange', | |
957 | 'prefetchable_range': 'PciMemoryRange' }, | |
958 | '*devices': ['PciDeviceInfo']} } | |
959 | ||
960 | ## | |
961 | # @PciDeviceInfo: | |
962 | # | |
963 | # Information about a PCI device | |
964 | # | |
965 | # @bus: the bus number of the device | |
966 | # | |
967 | # @slot: the slot the device is located in | |
968 | # | |
969 | # @function: the function of the slot used by the device | |
970 | # | |
971 | # @class_info.desc: #optional a string description of the device's class | |
972 | # | |
973 | # @class_info.class: the class code of the device | |
974 | # | |
975 | # @id.device: the PCI device id | |
976 | # | |
977 | # @id.vendor: the PCI vendor id | |
978 | # | |
979 | # @irq: #optional if an IRQ is assigned to the device, the IRQ number | |
980 | # | |
981 | # @qdev_id: the device name of the PCI device | |
982 | # | |
983 | # @pci_bridge: if the device is a PCI bridge, the bridge information | |
984 | # | |
985 | # @regions: a list of the PCI I/O regions associated with the device | |
986 | # | |
987 | # Notes: the contents of @class_info.desc are not stable and should only be | |
988 | # treated as informational. | |
989 | # | |
990 | # Since: 0.14.0 | |
991 | ## | |
992 | { 'type': 'PciDeviceInfo', | |
993 | 'data': {'bus': 'int', 'slot': 'int', 'function': 'int', | |
994 | 'class_info': {'*desc': 'str', 'class': 'int'}, | |
995 | 'id': {'device': 'int', 'vendor': 'int'}, | |
996 | '*irq': 'int', 'qdev_id': 'str', '*pci_bridge': 'PciBridgeInfo', | |
997 | 'regions': ['PciMemoryRegion']} } | |
998 | ||
999 | ## | |
1000 | # @PciInfo: | |
1001 | # | |
1002 | # Information about a PCI bus | |
1003 | # | |
1004 | # @bus: the bus index | |
1005 | # | |
1006 | # @devices: a list of devices on this bus | |
1007 | # | |
1008 | # Since: 0.14.0 | |
1009 | ## | |
1010 | { 'type': 'PciInfo', 'data': {'bus': 'int', 'devices': ['PciDeviceInfo']} } | |
1011 | ||
1012 | ## | |
1013 | # @query-pci: | |
1014 | # | |
1015 | # Return information about the PCI bus topology of the guest. | |
1016 | # | |
1017 | # Returns: a list of @PciInfo for each PCI bus | |
1018 | # | |
1019 | # Since: 0.14.0 | |
1020 | ## | |
1021 | { 'command': 'query-pci', 'returns': ['PciInfo'] } | |
1022 | ||
fb5458cd SH |
1023 | ## |
1024 | # @BlockJobInfo: | |
1025 | # | |
1026 | # Information about a long-running block device operation. | |
1027 | # | |
1028 | # @type: the job type ('stream' for image streaming) | |
1029 | # | |
1030 | # @device: the block device name | |
1031 | # | |
1032 | # @len: the maximum progress value | |
1033 | # | |
1034 | # @offset: the current progress value | |
1035 | # | |
1036 | # @speed: the rate limit, bytes per second | |
1037 | # | |
1038 | # Since: 1.1 | |
1039 | ## | |
1040 | { 'type': 'BlockJobInfo', | |
1041 | 'data': {'type': 'str', 'device': 'str', 'len': 'int', | |
1042 | 'offset': 'int', 'speed': 'int'} } | |
1043 | ||
1044 | ## | |
1045 | # @query-block-jobs: | |
1046 | # | |
1047 | # Return information about long-running block device operations. | |
1048 | # | |
1049 | # Returns: a list of @BlockJobInfo for each active block job | |
1050 | # | |
1051 | # Since: 1.1 | |
1052 | ## | |
1053 | { 'command': 'query-block-jobs', 'returns': ['BlockJobInfo'] } | |
1054 | ||
7a7f325e LC |
1055 | ## |
1056 | # @quit: | |
1057 | # | |
1058 | # This command will cause the QEMU process to exit gracefully. While every | |
1059 | # attempt is made to send the QMP response before terminating, this is not | |
1060 | # guaranteed. When using this interface, a premature EOF would not be | |
1061 | # unexpected. | |
1062 | # | |
1063 | # Since: 0.14.0 | |
1064 | ## | |
1065 | { 'command': 'quit' } | |
5f158f21 LC |
1066 | |
1067 | ## | |
1068 | # @stop: | |
1069 | # | |
1070 | # Stop all guest VCPU execution. | |
1071 | # | |
1072 | # Since: 0.14.0 | |
1073 | # | |
1074 | # Notes: This function will succeed even if the guest is already in the stopped | |
1075 | # state | |
1076 | ## | |
1077 | { 'command': 'stop' } | |
38d22653 LC |
1078 | |
1079 | ## | |
1080 | # @system_reset: | |
1081 | # | |
1082 | # Performs a hard reset of a guest. | |
1083 | # | |
1084 | # Since: 0.14.0 | |
1085 | ## | |
1086 | { 'command': 'system_reset' } | |
5bc465e4 LC |
1087 | |
1088 | ## | |
1089 | # @system_powerdown: | |
1090 | # | |
1091 | # Requests that a guest perform a powerdown operation. | |
1092 | # | |
1093 | # Since: 0.14.0 | |
1094 | # | |
1095 | # Notes: A guest may or may not respond to this command. This command | |
1096 | # returning does not indicate that a guest has accepted the request or | |
1097 | # that it has shut down. Many guests will respond to this command by | |
1098 | # prompting the user in some way. | |
1099 | ## | |
1100 | { 'command': 'system_powerdown' } | |
755f1968 LC |
1101 | |
1102 | ## | |
1103 | # @cpu: | |
1104 | # | |
1105 | # This command is a nop that is only provided for the purposes of compatibility. | |
1106 | # | |
1107 | # Since: 0.14.0 | |
1108 | # | |
1109 | # Notes: Do not use this command. | |
1110 | ## | |
1111 | { 'command': 'cpu', 'data': {'index': 'int'} } | |
0cfd6a9a LC |
1112 | |
1113 | ## | |
1114 | # @memsave: | |
1115 | # | |
1116 | # Save a portion of guest memory to a file. | |
1117 | # | |
1118 | # @val: the virtual address of the guest to start from | |
1119 | # | |
1120 | # @size: the size of memory region to save | |
1121 | # | |
1122 | # @filename: the file to save the memory to as binary data | |
1123 | # | |
1124 | # @cpu-index: #optional the index of the virtual CPU to use for translating the | |
1125 | # virtual address (defaults to CPU 0) | |
1126 | # | |
1127 | # Returns: Nothing on success | |
0cfd6a9a LC |
1128 | # |
1129 | # Since: 0.14.0 | |
1130 | # | |
1131 | # Notes: Errors were not reliably returned until 1.1 | |
1132 | ## | |
1133 | { 'command': 'memsave', | |
1134 | 'data': {'val': 'int', 'size': 'int', 'filename': 'str', '*cpu-index': 'int'} } | |
6d3962bf LC |
1135 | |
1136 | ## | |
1137 | # @pmemsave: | |
1138 | # | |
1139 | # Save a portion of guest physical memory to a file. | |
1140 | # | |
1141 | # @val: the physical address of the guest to start from | |
1142 | # | |
1143 | # @size: the size of memory region to save | |
1144 | # | |
1145 | # @filename: the file to save the memory to as binary data | |
1146 | # | |
1147 | # Returns: Nothing on success | |
6d3962bf LC |
1148 | # |
1149 | # Since: 0.14.0 | |
1150 | # | |
1151 | # Notes: Errors were not reliably returned until 1.1 | |
1152 | ## | |
1153 | { 'command': 'pmemsave', | |
1154 | 'data': {'val': 'int', 'size': 'int', 'filename': 'str'} } | |
e42e818b LC |
1155 | |
1156 | ## | |
1157 | # @cont: | |
1158 | # | |
1159 | # Resume guest VCPU execution. | |
1160 | # | |
1161 | # Since: 0.14.0 | |
1162 | # | |
1163 | # Returns: If successful, nothing | |
1164 | # If the QEMU is waiting for an incoming migration, MigrationExpected | |
1165 | # If QEMU was started with an encrypted block device and a key has | |
1166 | # not yet been set, DeviceEncrypted. | |
1167 | # | |
1168 | # Notes: This command will succeed if the guest is currently running. | |
1169 | ## | |
1170 | { 'command': 'cont' } | |
1171 | ||
9b9df25a GH |
1172 | ## |
1173 | # @system_wakeup: | |
1174 | # | |
1175 | # Wakeup guest from suspend. Does nothing in case the guest isn't suspended. | |
1176 | # | |
1177 | # Since: 1.1 | |
1178 | # | |
1179 | # Returns: nothing. | |
1180 | ## | |
1181 | { 'command': 'system_wakeup' } | |
1182 | ||
ab49ab5c LC |
1183 | ## |
1184 | # @inject-nmi: | |
1185 | # | |
1186 | # Injects an Non-Maskable Interrupt into all guest's VCPUs. | |
1187 | # | |
1188 | # Returns: If successful, nothing | |
ab49ab5c LC |
1189 | # |
1190 | # Since: 0.14.0 | |
1191 | # | |
1192 | # Notes: Only x86 Virtual Machines support this command. | |
1193 | ## | |
1194 | { 'command': 'inject-nmi' } | |
4b37156c LC |
1195 | |
1196 | ## | |
1197 | # @set_link: | |
1198 | # | |
1199 | # Sets the link status of a virtual network adapter. | |
1200 | # | |
1201 | # @name: the device name of the virtual network adapter | |
1202 | # | |
1203 | # @up: true to set the link status to be up | |
1204 | # | |
1205 | # Returns: Nothing on success | |
1206 | # If @name is not a valid network device, DeviceNotFound | |
1207 | # | |
1208 | # Since: 0.14.0 | |
1209 | # | |
1210 | # Notes: Not all network adapters support setting link status. This command | |
1211 | # will succeed even if the network adapter does not support link status | |
1212 | # notification. | |
1213 | ## | |
1214 | { 'command': 'set_link', 'data': {'name': 'str', 'up': 'bool'} } | |
a4dea8a9 LC |
1215 | |
1216 | ## | |
1217 | # @block_passwd: | |
1218 | # | |
1219 | # This command sets the password of a block device that has not been open | |
1220 | # with a password and requires one. | |
1221 | # | |
1222 | # The two cases where this can happen are a block device is created through | |
1223 | # QEMU's initial command line or a block device is changed through the legacy | |
1224 | # @change interface. | |
1225 | # | |
1226 | # In the event that the block device is created through the initial command | |
1227 | # line, the VM will start in the stopped state regardless of whether '-S' is | |
1228 | # used. The intention is for a management tool to query the block devices to | |
1229 | # determine which ones are encrypted, set the passwords with this command, and | |
1230 | # then start the guest with the @cont command. | |
1231 | # | |
1232 | # @device: the name of the device to set the password on | |
1233 | # | |
1234 | # @password: the password to use for the device | |
1235 | # | |
1236 | # Returns: nothing on success | |
1237 | # If @device is not a valid block device, DeviceNotFound | |
1238 | # If @device is not encrypted, DeviceNotEncrypted | |
a4dea8a9 LC |
1239 | # |
1240 | # Notes: Not all block formats support encryption and some that do are not | |
1241 | # able to validate that a password is correct. Disk corruption may | |
1242 | # occur if an invalid password is specified. | |
1243 | # | |
1244 | # Since: 0.14.0 | |
1245 | ## | |
1246 | { 'command': 'block_passwd', 'data': {'device': 'str', 'password': 'str'} } | |
d72f3264 LC |
1247 | |
1248 | ## | |
1249 | # @balloon: | |
1250 | # | |
1251 | # Request the balloon driver to change its balloon size. | |
1252 | # | |
1253 | # @value: the target size of the balloon in bytes | |
1254 | # | |
1255 | # Returns: Nothing on success | |
1256 | # If the balloon driver is enabled but not functional because the KVM | |
1257 | # kernel module cannot support it, KvmMissingCap | |
1258 | # If no balloon device is present, DeviceNotActive | |
1259 | # | |
1260 | # Notes: This command just issues a request to the guest. When it returns, | |
1261 | # the balloon size may not have changed. A guest can change the balloon | |
1262 | # size independent of this command. | |
1263 | # | |
1264 | # Since: 0.14.0 | |
1265 | ## | |
1266 | { 'command': 'balloon', 'data': {'value': 'int'} } | |
5e7caacb LC |
1267 | |
1268 | ## | |
1269 | # @block_resize | |
1270 | # | |
1271 | # Resize a block image while a guest is running. | |
1272 | # | |
1273 | # @device: the name of the device to get the image resized | |
1274 | # | |
1275 | # @size: new image size in bytes | |
1276 | # | |
1277 | # Returns: nothing on success | |
1278 | # If @device is not a valid block device, DeviceNotFound | |
5e7caacb LC |
1279 | # |
1280 | # Since: 0.14.0 | |
1281 | ## | |
1282 | { 'command': 'block_resize', 'data': { 'device': 'str', 'size': 'int' }} | |
6106e249 | 1283 | |
8802d1fd | 1284 | ## |
bc8b094f PB |
1285 | # @NewImageMode |
1286 | # | |
1287 | # An enumeration that tells QEMU how to set the backing file path in | |
1288 | # a new image file. | |
1289 | # | |
1290 | # @existing: QEMU should look for an existing image file. | |
1291 | # | |
1292 | # @absolute-paths: QEMU should create a new image with absolute paths | |
1293 | # for the backing file. | |
1294 | # | |
1295 | # Since: 1.1 | |
1296 | ## | |
1297 | { 'enum': 'NewImageMode' | |
1298 | 'data': [ 'existing', 'absolute-paths' ] } | |
1299 | ||
8802d1fd | 1300 | ## |
52e7c241 | 1301 | # @BlockdevSnapshot |
8802d1fd JC |
1302 | # |
1303 | # @device: the name of the device to generate the snapshot from. | |
1304 | # | |
1305 | # @snapshot-file: the target of the new image. A new file will be created. | |
1306 | # | |
1307 | # @format: #optional the format of the snapshot image, default is 'qcow2'. | |
6cc2a415 PB |
1308 | # |
1309 | # @mode: #optional whether and how QEMU should create a new image, default is | |
1310 | # 'absolute-paths'. | |
8802d1fd | 1311 | ## |
52e7c241 | 1312 | { 'type': 'BlockdevSnapshot', |
bc8b094f PB |
1313 | 'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str', |
1314 | '*mode': 'NewImageMode' } } | |
8802d1fd JC |
1315 | |
1316 | ## | |
52e7c241 | 1317 | # @BlockdevAction |
8802d1fd | 1318 | # |
52e7c241 PB |
1319 | # A discriminated record of operations that can be performed with |
1320 | # @transaction. | |
8802d1fd | 1321 | ## |
52e7c241 PB |
1322 | { 'union': 'BlockdevAction', |
1323 | 'data': { | |
1324 | 'blockdev-snapshot-sync': 'BlockdevSnapshot', | |
1325 | } } | |
8802d1fd JC |
1326 | |
1327 | ## | |
52e7c241 | 1328 | # @transaction |
8802d1fd | 1329 | # |
52e7c241 PB |
1330 | # Atomically operate on a group of one or more block devices. If |
1331 | # any operation fails, then the entire set of actions will be | |
1332 | # abandoned and the appropriate error returned. The only operation | |
1333 | # supported is currently blockdev-snapshot-sync. | |
8802d1fd JC |
1334 | # |
1335 | # List of: | |
52e7c241 | 1336 | # @BlockdevAction: information needed for the device snapshot |
8802d1fd JC |
1337 | # |
1338 | # Returns: nothing on success | |
1339 | # If @device is not a valid block device, DeviceNotFound | |
8802d1fd | 1340 | # |
52e7c241 PB |
1341 | # Note: The transaction aborts on the first failure. Therefore, there will |
1342 | # be only one device or snapshot file returned in an error condition, and | |
1343 | # subsequent actions will not have been attempted. | |
1344 | # | |
1345 | # Since 1.1 | |
8802d1fd | 1346 | ## |
52e7c241 PB |
1347 | { 'command': 'transaction', |
1348 | 'data': { 'actions': [ 'BlockdevAction' ] } } | |
8802d1fd | 1349 | |
6106e249 LC |
1350 | ## |
1351 | # @blockdev-snapshot-sync | |
1352 | # | |
1353 | # Generates a synchronous snapshot of a block device. | |
1354 | # | |
1355 | # @device: the name of the device to generate the snapshot from. | |
1356 | # | |
1357 | # @snapshot-file: the target of the new image. If the file exists, or if it | |
1358 | # is a device, the snapshot will be created in the existing | |
1359 | # file/device. If does not exist, a new file will be created. | |
1360 | # | |
1361 | # @format: #optional the format of the snapshot image, default is 'qcow2'. | |
1362 | # | |
6cc2a415 PB |
1363 | # @mode: #optional whether and how QEMU should create a new image, default is |
1364 | # 'absolute-paths'. | |
1365 | # | |
6106e249 LC |
1366 | # Returns: nothing on success |
1367 | # If @device is not a valid block device, DeviceNotFound | |
6106e249 | 1368 | # |
6106e249 LC |
1369 | # Since 0.14.0 |
1370 | ## | |
1371 | { 'command': 'blockdev-snapshot-sync', | |
6cc2a415 PB |
1372 | 'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str', |
1373 | '*mode': 'NewImageMode'} } | |
d51a67b4 LC |
1374 | |
1375 | ## | |
1376 | # @human-monitor-command: | |
1377 | # | |
1378 | # Execute a command on the human monitor and return the output. | |
1379 | # | |
1380 | # @command-line: the command to execute in the human monitor | |
1381 | # | |
1382 | # @cpu-index: #optional The CPU to use for commands that require an implicit CPU | |
1383 | # | |
1384 | # Returns: the output of the command as a string | |
1385 | # | |
1386 | # Since: 0.14.0 | |
1387 | # | |
1388 | # Notes: This command only exists as a stop-gap. It's use is highly | |
1389 | # discouraged. The semantics of this command are not guaranteed. | |
1390 | # | |
1391 | # Known limitations: | |
1392 | # | |
1393 | # o This command is stateless, this means that commands that depend | |
1394 | # on state information (such as getfd) might not work | |
1395 | # | |
1396 | # o Commands that prompt the user for data (eg. 'cont' when the block | |
1397 | # device is encrypted) don't currently work | |
1398 | ## | |
1399 | { 'command': 'human-monitor-command', | |
1400 | 'data': {'command-line': 'str', '*cpu-index': 'int'}, | |
b80e560b | 1401 | 'returns': 'str' } |
6cdedb07 LC |
1402 | |
1403 | ## | |
1404 | # @migrate_cancel | |
1405 | # | |
1406 | # Cancel the current executing migration process. | |
1407 | # | |
1408 | # Returns: nothing on success | |
1409 | # | |
1410 | # Notes: This command succeeds even if there is no migration process running. | |
1411 | # | |
1412 | # Since: 0.14.0 | |
1413 | ## | |
1414 | { 'command': 'migrate_cancel' } | |
4f0a993b LC |
1415 | |
1416 | ## | |
1417 | # @migrate_set_downtime | |
1418 | # | |
1419 | # Set maximum tolerated downtime for migration. | |
1420 | # | |
1421 | # @value: maximum downtime in seconds | |
1422 | # | |
1423 | # Returns: nothing on success | |
1424 | # | |
1425 | # Since: 0.14.0 | |
1426 | ## | |
1427 | { 'command': 'migrate_set_downtime', 'data': {'value': 'number'} } | |
3dc85383 LC |
1428 | |
1429 | ## | |
1430 | # @migrate_set_speed | |
1431 | # | |
1432 | # Set maximum speed for migration. | |
1433 | # | |
1434 | # @value: maximum speed in bytes. | |
1435 | # | |
1436 | # Returns: nothing on success | |
1437 | # | |
1438 | # Notes: A value lesser than zero will be automatically round up to zero. | |
1439 | # | |
1440 | # Since: 0.14.0 | |
1441 | ## | |
1442 | { 'command': 'migrate_set_speed', 'data': {'value': 'int'} } | |
b4b12c62 | 1443 | |
9e1ba4cc OW |
1444 | ## |
1445 | # @migrate-set-cache-size | |
1446 | # | |
1447 | # Set XBZRLE cache size | |
1448 | # | |
1449 | # @value: cache size in bytes | |
1450 | # | |
1451 | # The size will be rounded down to the nearest power of 2. | |
1452 | # The cache size can be modified before and during ongoing migration | |
1453 | # | |
1454 | # Returns: nothing on success | |
1455 | # | |
1456 | # Since: 1.2 | |
1457 | ## | |
1458 | { 'command': 'migrate-set-cache-size', 'data': {'value': 'int'} } | |
1459 | ||
1460 | ## | |
1461 | # @query-migrate-cache-size | |
1462 | # | |
1463 | # query XBZRLE cache size | |
1464 | # | |
1465 | # Returns: XBZRLE cache size in bytes | |
1466 | # | |
1467 | # Since: 1.2 | |
1468 | ## | |
1469 | { 'command': 'query-migrate-cache-size', 'returns': 'int' } | |
1470 | ||
b4b12c62 | 1471 | ## |
d03ee401 | 1472 | # @ObjectPropertyInfo: |
b4b12c62 AL |
1473 | # |
1474 | # @name: the name of the property | |
1475 | # | |
1476 | # @type: the type of the property. This will typically come in one of four | |
1477 | # forms: | |
1478 | # | |
1479 | # 1) A primitive type such as 'u8', 'u16', 'bool', 'str', or 'double'. | |
1480 | # These types are mapped to the appropriate JSON type. | |
1481 | # | |
1482 | # 2) A legacy type in the form 'legacy<subtype>' where subtype is the | |
1483 | # legacy qdev typename. These types are always treated as strings. | |
1484 | # | |
1485 | # 3) A child type in the form 'child<subtype>' where subtype is a qdev | |
1486 | # device type name. Child properties create the composition tree. | |
1487 | # | |
1488 | # 4) A link type in the form 'link<subtype>' where subtype is a qdev | |
1489 | # device type name. Link properties form the device model graph. | |
1490 | # | |
51920820 | 1491 | # Since: 1.2 |
b4b12c62 | 1492 | ## |
57c9fafe | 1493 | { 'type': 'ObjectPropertyInfo', |
b4b12c62 AL |
1494 | 'data': { 'name': 'str', 'type': 'str' } } |
1495 | ||
1496 | ## | |
1497 | # @qom-list: | |
1498 | # | |
57c9fafe | 1499 | # This command will list any properties of a object given a path in the object |
b4b12c62 AL |
1500 | # model. |
1501 | # | |
57c9fafe | 1502 | # @path: the path within the object model. See @qom-get for a description of |
b4b12c62 AL |
1503 | # this parameter. |
1504 | # | |
57c9fafe AL |
1505 | # Returns: a list of @ObjectPropertyInfo that describe the properties of the |
1506 | # object. | |
b4b12c62 | 1507 | # |
51920820 | 1508 | # Since: 1.2 |
b4b12c62 AL |
1509 | ## |
1510 | { 'command': 'qom-list', | |
1511 | 'data': { 'path': 'str' }, | |
57c9fafe | 1512 | 'returns': [ 'ObjectPropertyInfo' ] } |
eb6e8ea5 AL |
1513 | |
1514 | ## | |
1515 | # @qom-get: | |
1516 | # | |
57c9fafe | 1517 | # This command will get a property from a object model path and return the |
eb6e8ea5 AL |
1518 | # value. |
1519 | # | |
57c9fafe | 1520 | # @path: The path within the object model. There are two forms of supported |
eb6e8ea5 AL |
1521 | # paths--absolute and partial paths. |
1522 | # | |
57c9fafe | 1523 | # Absolute paths are derived from the root object and can follow child<> |
eb6e8ea5 AL |
1524 | # or link<> properties. Since they can follow link<> properties, they |
1525 | # can be arbitrarily long. Absolute paths look like absolute filenames | |
1526 | # and are prefixed with a leading slash. | |
1527 | # | |
1528 | # Partial paths look like relative filenames. They do not begin | |
1529 | # with a prefix. The matching rules for partial paths are subtle but | |
57c9fafe | 1530 | # designed to make specifying objects easy. At each level of the |
eb6e8ea5 AL |
1531 | # composition tree, the partial path is matched as an absolute path. |
1532 | # The first match is not returned. At least two matches are searched | |
1533 | # for. A successful result is only returned if only one match is | |
1534 | # found. If more than one match is found, a flag is return to | |
1535 | # indicate that the match was ambiguous. | |
1536 | # | |
1537 | # @property: The property name to read | |
1538 | # | |
1539 | # Returns: The property value. The type depends on the property type. legacy<> | |
1540 | # properties are returned as #str. child<> and link<> properties are | |
1541 | # returns as #str pathnames. All integer property types (u8, u16, etc) | |
1542 | # are returned as #int. | |
1543 | # | |
51920820 | 1544 | # Since: 1.2 |
eb6e8ea5 AL |
1545 | ## |
1546 | { 'command': 'qom-get', | |
1547 | 'data': { 'path': 'str', 'property': 'str' }, | |
1548 | 'returns': 'visitor', | |
1549 | 'gen': 'no' } | |
1550 | ||
1551 | ## | |
1552 | # @qom-set: | |
1553 | # | |
57c9fafe | 1554 | # This command will set a property from a object model path. |
eb6e8ea5 AL |
1555 | # |
1556 | # @path: see @qom-get for a description of this parameter | |
1557 | # | |
1558 | # @property: the property name to set | |
1559 | # | |
1560 | # @value: a value who's type is appropriate for the property type. See @qom-get | |
1561 | # for a description of type mapping. | |
1562 | # | |
51920820 | 1563 | # Since: 1.2 |
eb6e8ea5 AL |
1564 | ## |
1565 | { 'command': 'qom-set', | |
1566 | 'data': { 'path': 'str', 'property': 'str', 'value': 'visitor' }, | |
1567 | 'gen': 'no' } | |
fbf796fd LC |
1568 | |
1569 | ## | |
1570 | # @set_password: | |
1571 | # | |
1572 | # Sets the password of a remote display session. | |
1573 | # | |
1574 | # @protocol: `vnc' to modify the VNC server password | |
1575 | # `spice' to modify the Spice server password | |
1576 | # | |
1577 | # @password: the new password | |
1578 | # | |
1579 | # @connected: #optional how to handle existing clients when changing the | |
b80e560b | 1580 | # password. If nothing is specified, defaults to `keep' |
fbf796fd LC |
1581 | # `fail' to fail the command if clients are connected |
1582 | # `disconnect' to disconnect existing clients | |
1583 | # `keep' to maintain existing clients | |
1584 | # | |
1585 | # Returns: Nothing on success | |
1586 | # If Spice is not enabled, DeviceNotFound | |
fbf796fd LC |
1587 | # |
1588 | # Since: 0.14.0 | |
1589 | ## | |
1590 | { 'command': 'set_password', | |
1591 | 'data': {'protocol': 'str', 'password': 'str', '*connected': 'str'} } | |
9ad5372d LC |
1592 | |
1593 | ## | |
1594 | # @expire_password: | |
1595 | # | |
1596 | # Expire the password of a remote display server. | |
1597 | # | |
1598 | # @protocol: the name of the remote display protocol `vnc' or `spice' | |
1599 | # | |
1600 | # @time: when to expire the password. | |
1601 | # `now' to expire the password immediately | |
1602 | # `never' to cancel password expiration | |
1603 | # `+INT' where INT is the number of seconds from now (integer) | |
1604 | # `INT' where INT is the absolute time in seconds | |
1605 | # | |
1606 | # Returns: Nothing on success | |
1607 | # If @protocol is `spice' and Spice is not active, DeviceNotFound | |
9ad5372d LC |
1608 | # |
1609 | # Since: 0.14.0 | |
1610 | # | |
1611 | # Notes: Time is relative to the server and currently there is no way to | |
1612 | # coordinate server time with client time. It is not recommended to | |
1613 | # use the absolute time version of the @time parameter unless you're | |
1614 | # sure you are on the same machine as the QEMU instance. | |
1615 | ## | |
1616 | { 'command': 'expire_password', 'data': {'protocol': 'str', 'time': 'str'} } | |
c245b6a3 LC |
1617 | |
1618 | ## | |
1619 | # @eject: | |
1620 | # | |
1621 | # Ejects a device from a removable drive. | |
1622 | # | |
1623 | # @device: The name of the device | |
1624 | # | |
1625 | # @force: @optional If true, eject regardless of whether the drive is locked. | |
1626 | # If not specified, the default value is false. | |
1627 | # | |
1628 | # Returns: Nothing on success | |
1629 | # If @device is not a valid block device, DeviceNotFound | |
c245b6a3 LC |
1630 | # |
1631 | # Notes: Ejecting a device will no media results in success | |
1632 | # | |
1633 | # Since: 0.14.0 | |
1634 | ## | |
1635 | { 'command': 'eject', 'data': {'device': 'str', '*force': 'bool'} } | |
270b243f LC |
1636 | |
1637 | ## | |
1638 | # @change-vnc-password: | |
1639 | # | |
1640 | # Change the VNC server password. | |
1641 | # | |
1642 | # @target: the new password to use with VNC authentication | |
1643 | # | |
1644 | # Since: 1.1 | |
1645 | # | |
1646 | # Notes: An empty password in this command will set the password to the empty | |
1647 | # string. Existing clients are unaffected by executing this command. | |
1648 | ## | |
1649 | { 'command': 'change-vnc-password', 'data': {'password': 'str'} } | |
333a96ec LC |
1650 | |
1651 | ## | |
1652 | # @change: | |
1653 | # | |
1654 | # This command is multiple commands multiplexed together. | |
1655 | # | |
1656 | # @device: This is normally the name of a block device but it may also be 'vnc'. | |
1657 | # when it's 'vnc', then sub command depends on @target | |
1658 | # | |
1659 | # @target: If @device is a block device, then this is the new filename. | |
1660 | # If @device is 'vnc', then if the value 'password' selects the vnc | |
1661 | # change password command. Otherwise, this specifies a new server URI | |
1662 | # address to listen to for VNC connections. | |
1663 | # | |
1664 | # @arg: If @device is a block device, then this is an optional format to open | |
1665 | # the device with. | |
1666 | # If @device is 'vnc' and @target is 'password', this is the new VNC | |
1667 | # password to set. If this argument is an empty string, then no future | |
1668 | # logins will be allowed. | |
1669 | # | |
1670 | # Returns: Nothing on success. | |
1671 | # If @device is not a valid block device, DeviceNotFound | |
333a96ec LC |
1672 | # If the new block device is encrypted, DeviceEncrypted. Note that |
1673 | # if this error is returned, the device has been opened successfully | |
1674 | # and an additional call to @block_passwd is required to set the | |
1675 | # device's password. The behavior of reads and writes to the block | |
1676 | # device between when these calls are executed is undefined. | |
1677 | # | |
1678 | # Notes: It is strongly recommended that this interface is not used especially | |
1679 | # for changing block devices. | |
1680 | # | |
1681 | # Since: 0.14.0 | |
1682 | ## | |
1683 | { 'command': 'change', | |
1684 | 'data': {'device': 'str', 'target': 'str', '*arg': 'str'} } | |
80047da5 LC |
1685 | |
1686 | ## | |
1687 | # @block_set_io_throttle: | |
1688 | # | |
1689 | # Change I/O throttle limits for a block drive. | |
1690 | # | |
1691 | # @device: The name of the device | |
1692 | # | |
1693 | # @bps: total throughput limit in bytes per second | |
1694 | # | |
1695 | # @bps_rd: read throughput limit in bytes per second | |
1696 | # | |
1697 | # @bps_wr: write throughput limit in bytes per second | |
1698 | # | |
1699 | # @iops: total I/O operations per second | |
1700 | # | |
1701 | # @ops_rd: read I/O operations per second | |
1702 | # | |
1703 | # @iops_wr: write I/O operations per second | |
1704 | # | |
1705 | # Returns: Nothing on success | |
1706 | # If @device is not a valid block device, DeviceNotFound | |
80047da5 LC |
1707 | # |
1708 | # Since: 1.1 | |
b80e560b | 1709 | ## |
80047da5 LC |
1710 | { 'command': 'block_set_io_throttle', |
1711 | 'data': { 'device': 'str', 'bps': 'int', 'bps_rd': 'int', 'bps_wr': 'int', | |
1712 | 'iops': 'int', 'iops_rd': 'int', 'iops_wr': 'int' } } | |
12bd451f | 1713 | |
db58f9c0 SH |
1714 | ## |
1715 | # @block-stream: | |
12bd451f SH |
1716 | # |
1717 | # Copy data from a backing file into a block device. | |
1718 | # | |
1719 | # The block streaming operation is performed in the background until the entire | |
1720 | # backing file has been copied. This command returns immediately once streaming | |
1721 | # has started. The status of ongoing block streaming operations can be checked | |
1722 | # with query-block-jobs. The operation can be stopped before it has completed | |
db58f9c0 | 1723 | # using the block-job-cancel command. |
12bd451f SH |
1724 | # |
1725 | # If a base file is specified then sectors are not copied from that base file and | |
1726 | # its backing chain. When streaming completes the image file will have the base | |
1727 | # file as its backing file. This can be used to stream a subset of the backing | |
1728 | # file chain instead of flattening the entire image. | |
1729 | # | |
1730 | # On successful completion the image file is updated to drop the backing file | |
1731 | # and the BLOCK_JOB_COMPLETED event is emitted. | |
1732 | # | |
1733 | # @device: the device name | |
1734 | # | |
1735 | # @base: #optional the common backing file name | |
1736 | # | |
c83c66c3 SH |
1737 | # @speed: #optional the maximum speed, in bytes per second |
1738 | # | |
12bd451f | 1739 | # Returns: Nothing on success |
12bd451f | 1740 | # If @device does not exist, DeviceNotFound |
12bd451f SH |
1741 | # |
1742 | # Since: 1.1 | |
1743 | ## | |
c83c66c3 SH |
1744 | { 'command': 'block-stream', 'data': { 'device': 'str', '*base': 'str', |
1745 | '*speed': 'int' } } | |
2d47c6e9 SH |
1746 | |
1747 | ## | |
db58f9c0 | 1748 | # @block-job-set-speed: |
2d47c6e9 SH |
1749 | # |
1750 | # Set maximum speed for a background block operation. | |
1751 | # | |
1752 | # This command can only be issued when there is an active block job. | |
1753 | # | |
1754 | # Throttling can be disabled by setting the speed to 0. | |
1755 | # | |
1756 | # @device: the device name | |
1757 | # | |
c83c66c3 SH |
1758 | # @speed: the maximum speed, in bytes per second, or 0 for unlimited. |
1759 | # Defaults to 0. | |
2d47c6e9 SH |
1760 | # |
1761 | # Returns: Nothing on success | |
05290d80 | 1762 | # If no background operation is active on this device, DeviceNotActive |
2d47c6e9 SH |
1763 | # |
1764 | # Since: 1.1 | |
1765 | ## | |
db58f9c0 | 1766 | { 'command': 'block-job-set-speed', |
882ec7ce | 1767 | 'data': { 'device': 'str', 'speed': 'int' } } |
370521a1 SH |
1768 | |
1769 | ## | |
db58f9c0 | 1770 | # @block-job-cancel: |
370521a1 | 1771 | # |
05290d80 | 1772 | # Stop an active background block operation. |
370521a1 | 1773 | # |
05290d80 | 1774 | # This command returns immediately after marking the active background block |
370521a1 SH |
1775 | # operation for cancellation. It is an error to call this command if no |
1776 | # operation is in progress. | |
1777 | # | |
1778 | # The operation will cancel as soon as possible and then emit the | |
1779 | # BLOCK_JOB_CANCELLED event. Before that happens the job is still visible when | |
1780 | # enumerated using query-block-jobs. | |
1781 | # | |
05290d80 PB |
1782 | # For streaming, the image file retains its backing file unless the streaming |
1783 | # operation happens to complete just as it is being cancelled. A new streaming | |
1784 | # operation can be started at a later time to finish copying all data from the | |
1785 | # backing file. | |
370521a1 SH |
1786 | # |
1787 | # @device: the device name | |
1788 | # | |
1789 | # Returns: Nothing on success | |
05290d80 | 1790 | # If no background operation is active on this device, DeviceNotActive |
370521a1 SH |
1791 | # |
1792 | # Since: 1.1 | |
1793 | ## | |
db58f9c0 | 1794 | { 'command': 'block-job-cancel', 'data': { 'device': 'str' } } |
5eeee3fa AL |
1795 | |
1796 | ## | |
1797 | # @ObjectTypeInfo: | |
1798 | # | |
1799 | # This structure describes a search result from @qom-list-types | |
1800 | # | |
1801 | # @name: the type name found in the search | |
1802 | # | |
1803 | # Since: 1.1 | |
1804 | # | |
1805 | # Notes: This command is experimental and may change syntax in future releases. | |
1806 | ## | |
1807 | { 'type': 'ObjectTypeInfo', | |
1808 | 'data': { 'name': 'str' } } | |
1809 | ||
1810 | ## | |
1811 | # @qom-list-types: | |
1812 | # | |
1813 | # This command will return a list of types given search parameters | |
1814 | # | |
1815 | # @implements: if specified, only return types that implement this type name | |
1816 | # | |
1817 | # @abstract: if true, include abstract types in the results | |
1818 | # | |
1819 | # Returns: a list of @ObjectTypeInfo or an empty list if no results are found | |
1820 | # | |
1821 | # Since: 1.1 | |
5eeee3fa AL |
1822 | ## |
1823 | { 'command': 'qom-list-types', | |
1824 | 'data': { '*implements': 'str', '*abstract': 'bool' }, | |
1825 | 'returns': [ 'ObjectTypeInfo' ] } | |
e1c37d0e | 1826 | |
1daa31b9 AL |
1827 | ## |
1828 | # @DevicePropertyInfo: | |
1829 | # | |
1830 | # Information about device properties. | |
1831 | # | |
1832 | # @name: the name of the property | |
1833 | # @type: the typename of the property | |
1834 | # | |
1835 | # Since: 1.2 | |
1836 | ## | |
1837 | { 'type': 'DevicePropertyInfo', | |
1838 | 'data': { 'name': 'str', 'type': 'str' } } | |
1839 | ||
1840 | ## | |
1841 | # @device-list-properties: | |
1842 | # | |
1843 | # List properties associated with a device. | |
1844 | # | |
1845 | # @typename: the type name of a device | |
1846 | # | |
1847 | # Returns: a list of DevicePropertyInfo describing a devices properties | |
1848 | # | |
1849 | # Since: 1.2 | |
1850 | ## | |
1851 | { 'command': 'device-list-properties', | |
1852 | 'data': { 'typename': 'str'}, | |
1853 | 'returns': [ 'DevicePropertyInfo' ] } | |
1854 | ||
e1c37d0e LC |
1855 | ## |
1856 | # @migrate | |
1857 | # | |
1858 | # Migrates the current running guest to another Virtual Machine. | |
1859 | # | |
1860 | # @uri: the Uniform Resource Identifier of the destination VM | |
1861 | # | |
1862 | # @blk: #optional do block migration (full disk copy) | |
1863 | # | |
1864 | # @inc: #optional incremental disk copy migration | |
1865 | # | |
1866 | # @detach: this argument exists only for compatibility reasons and | |
1867 | # is ignored by QEMU | |
1868 | # | |
1869 | # Returns: nothing on success | |
1870 | # | |
1871 | # Since: 0.14.0 | |
1872 | ## | |
1873 | { 'command': 'migrate', | |
1874 | 'data': {'uri': 'str', '*blk': 'bool', '*inc': 'bool', '*detach': 'bool' } } | |
33cf629a | 1875 | |
a7ae8355 SS |
1876 | # @xen-save-devices-state: |
1877 | # | |
1878 | # Save the state of all devices to file. The RAM and the block devices | |
1879 | # of the VM are not saved by this command. | |
1880 | # | |
1881 | # @filename: the file to save the state of the devices to as binary | |
1882 | # data. See xen-save-devices-state.txt for a description of the binary | |
1883 | # format. | |
1884 | # | |
1885 | # Returns: Nothing on success | |
a7ae8355 SS |
1886 | # |
1887 | # Since: 1.1 | |
1888 | ## | |
1889 | { 'command': 'xen-save-devices-state', 'data': {'filename': 'str'} } | |
a15fef21 LC |
1890 | |
1891 | ## | |
1892 | # @device_del: | |
1893 | # | |
1894 | # Remove a device from a guest | |
1895 | # | |
1896 | # @id: the name of the device | |
1897 | # | |
1898 | # Returns: Nothing on success | |
1899 | # If @id is not a valid device, DeviceNotFound | |
a15fef21 LC |
1900 | # |
1901 | # Notes: When this command completes, the device may not be removed from the | |
1902 | # guest. Hot removal is an operation that requires guest cooperation. | |
1903 | # This command merely requests that the guest begin the hot removal | |
1904 | # process. | |
1905 | # | |
1906 | # Since: 0.14.0 | |
1907 | ## | |
1908 | { 'command': 'device_del', 'data': {'id': 'str'} } | |
783e9b48 WC |
1909 | |
1910 | ## | |
1911 | # @dump-guest-memory | |
1912 | # | |
1913 | # Dump guest's memory to vmcore. It is a synchronous operation that can take | |
1914 | # very long depending on the amount of guest memory. This command is only | |
f5b0d93b LC |
1915 | # supported on i386 and x86_64. |
1916 | # | |
1917 | # @paging: if true, do paging to get guest's memory mapping. This allows | |
1918 | # using gdb to process the core file. However, setting @paging to false | |
1919 | # may be desirable because of two reasons: | |
1920 | # | |
1921 | # 1. The guest may be in a catastrophic state or can have corrupted | |
1922 | # memory, which cannot be trusted | |
1923 | # 2. The guest can be in real-mode even if paging is enabled. For example, | |
1924 | # the guest uses ACPI to sleep, and ACPI sleep state goes in real-mode | |
1925 | # | |
783e9b48 | 1926 | # @protocol: the filename or file descriptor of the vmcore. The supported |
f5b0d93b LC |
1927 | # protocols are: |
1928 | # | |
783e9b48 WC |
1929 | # 1. file: the protocol starts with "file:", and the following string is |
1930 | # the file's path. | |
1931 | # 2. fd: the protocol starts with "fd:", and the following string is the | |
1932 | # fd's name. | |
f5b0d93b | 1933 | # |
783e9b48 | 1934 | # @begin: #optional if specified, the starting physical address. |
f5b0d93b | 1935 | # |
783e9b48 | 1936 | # @length: #optional if specified, the memory size, in bytes. If you don't |
f5b0d93b | 1937 | # want to dump all guest's memory, please specify the start @begin and @length |
783e9b48 WC |
1938 | # |
1939 | # Returns: nothing on success | |
783e9b48 WC |
1940 | # |
1941 | # Since: 1.2 | |
1942 | ## | |
1943 | { 'command': 'dump-guest-memory', | |
1944 | 'data': { 'paging': 'bool', 'protocol': 'str', '*begin': 'int', | |
1945 | '*length': 'int' } } | |
928059a3 LC |
1946 | ## |
1947 | # @netdev_add: | |
1948 | # | |
1949 | # Add a network backend. | |
1950 | # | |
1951 | # @type: the type of network backend. Current valid values are 'user', 'tap', | |
1952 | # 'vde', 'socket', 'dump' and 'bridge' | |
1953 | # | |
1954 | # @id: the name of the new network backend | |
1955 | # | |
1956 | # @props: #optional a list of properties to be passed to the backend in | |
1957 | # the format 'name=value', like 'ifname=tap0,script=no' | |
1958 | # | |
1959 | # Notes: The semantics of @props is not well defined. Future commands will be | |
1960 | # introduced that provide stronger typing for backend creation. | |
1961 | # | |
1962 | # Since: 0.14.0 | |
1963 | # | |
1964 | # Returns: Nothing on success | |
1965 | # If @type is not a valid network backend, DeviceNotFound | |
928059a3 LC |
1966 | ## |
1967 | { 'command': 'netdev_add', | |
1968 | 'data': {'type': 'str', 'id': 'str', '*props': '**'}, | |
1969 | 'gen': 'no' } | |
5f964155 LC |
1970 | |
1971 | ## | |
1972 | # @netdev_del: | |
1973 | # | |
1974 | # Remove a network backend. | |
1975 | # | |
1976 | # @id: the name of the network backend to remove | |
1977 | # | |
1978 | # Returns: Nothing on success | |
1979 | # If @id is not a valid network backend, DeviceNotFound | |
1980 | # | |
1981 | # Since: 0.14.0 | |
1982 | ## | |
1983 | { 'command': 'netdev_del', 'data': {'id': 'str'} } | |
208c9d1b | 1984 | |
14aa0c2d LE |
1985 | ## |
1986 | # @NetdevNoneOptions | |
1987 | # | |
1988 | # Use it alone to have zero network devices. | |
1989 | # | |
1990 | # Since 1.2 | |
1991 | ## | |
1992 | { 'type': 'NetdevNoneOptions', | |
1993 | 'data': { } } | |
1994 | ||
1995 | ## | |
1996 | # @NetLegacyNicOptions | |
1997 | # | |
1998 | # Create a new Network Interface Card. | |
1999 | # | |
2000 | # @netdev: #optional id of -netdev to connect to | |
2001 | # | |
2002 | # @macaddr: #optional MAC address | |
2003 | # | |
2004 | # @model: #optional device model (e1000, rtl8139, virtio etc.) | |
2005 | # | |
2006 | # @addr: #optional PCI device address | |
2007 | # | |
2008 | # @vectors: #optional number of MSI-x vectors, 0 to disable MSI-X | |
2009 | # | |
2010 | # Since 1.2 | |
2011 | ## | |
2012 | { 'type': 'NetLegacyNicOptions', | |
2013 | 'data': { | |
2014 | '*netdev': 'str', | |
2015 | '*macaddr': 'str', | |
2016 | '*model': 'str', | |
2017 | '*addr': 'str', | |
2018 | '*vectors': 'uint32' } } | |
2019 | ||
2020 | ## | |
2021 | # @String | |
2022 | # | |
2023 | # A fat type wrapping 'str', to be embedded in lists. | |
2024 | # | |
2025 | # Since 1.2 | |
2026 | ## | |
2027 | { 'type': 'String', | |
2028 | 'data': { | |
2029 | 'str': 'str' } } | |
2030 | ||
2031 | ## | |
2032 | # @NetdevUserOptions | |
2033 | # | |
2034 | # Use the user mode network stack which requires no administrator privilege to | |
2035 | # run. | |
2036 | # | |
2037 | # @hostname: #optional client hostname reported by the builtin DHCP server | |
2038 | # | |
2039 | # @restrict: #optional isolate the guest from the host | |
2040 | # | |
2041 | # @ip: #optional legacy parameter, use net= instead | |
2042 | # | |
2043 | # @net: #optional IP address and optional netmask | |
2044 | # | |
2045 | # @host: #optional guest-visible address of the host | |
2046 | # | |
2047 | # @tftp: #optional root directory of the built-in TFTP server | |
2048 | # | |
2049 | # @bootfile: #optional BOOTP filename, for use with tftp= | |
2050 | # | |
2051 | # @dhcpstart: #optional the first of the 16 IPs the built-in DHCP server can | |
2052 | # assign | |
2053 | # | |
2054 | # @dns: #optional guest-visible address of the virtual nameserver | |
2055 | # | |
2056 | # @smb: #optional root directory of the built-in SMB server | |
2057 | # | |
2058 | # @smbserver: #optional IP address of the built-in SMB server | |
2059 | # | |
2060 | # @hostfwd: #optional redirect incoming TCP or UDP host connections to guest | |
2061 | # endpoints | |
2062 | # | |
2063 | # @guestfwd: #optional forward guest TCP connections | |
2064 | # | |
2065 | # Since 1.2 | |
2066 | ## | |
2067 | { 'type': 'NetdevUserOptions', | |
2068 | 'data': { | |
2069 | '*hostname': 'str', | |
2070 | '*restrict': 'bool', | |
2071 | '*ip': 'str', | |
2072 | '*net': 'str', | |
2073 | '*host': 'str', | |
2074 | '*tftp': 'str', | |
2075 | '*bootfile': 'str', | |
2076 | '*dhcpstart': 'str', | |
2077 | '*dns': 'str', | |
2078 | '*smb': 'str', | |
2079 | '*smbserver': 'str', | |
2080 | '*hostfwd': ['String'], | |
2081 | '*guestfwd': ['String'] } } | |
2082 | ||
2083 | ## | |
2084 | # @NetdevTapOptions | |
2085 | # | |
2086 | # Connect the host TAP network interface name to the VLAN. | |
2087 | # | |
2088 | # @ifname: #optional interface name | |
2089 | # | |
2090 | # @fd: #optional file descriptor of an already opened tap | |
2091 | # | |
2092 | # @script: #optional script to initialize the interface | |
2093 | # | |
2094 | # @downscript: #optional script to shut down the interface | |
2095 | # | |
2096 | # @helper: #optional command to execute to configure bridge | |
2097 | # | |
2098 | # @sndbuf: #optional send buffer limit. Understands [TGMKkb] suffixes. | |
2099 | # | |
2100 | # @vnet_hdr: #optional enable the IFF_VNET_HDR flag on the tap interface | |
2101 | # | |
2102 | # @vhost: #optional enable vhost-net network accelerator | |
2103 | # | |
2104 | # @vhostfd: #optional file descriptor of an already opened vhost net device | |
2105 | # | |
2106 | # @vhostforce: #optional vhost on for non-MSIX virtio guests | |
2107 | # | |
2108 | # Since 1.2 | |
2109 | ## | |
2110 | { 'type': 'NetdevTapOptions', | |
2111 | 'data': { | |
2112 | '*ifname': 'str', | |
2113 | '*fd': 'str', | |
2114 | '*script': 'str', | |
2115 | '*downscript': 'str', | |
2116 | '*helper': 'str', | |
2117 | '*sndbuf': 'size', | |
2118 | '*vnet_hdr': 'bool', | |
2119 | '*vhost': 'bool', | |
2120 | '*vhostfd': 'str', | |
2121 | '*vhostforce': 'bool' } } | |
2122 | ||
2123 | ## | |
2124 | # @NetdevSocketOptions | |
2125 | # | |
2126 | # Connect the VLAN to a remote VLAN in another QEMU virtual machine using a TCP | |
2127 | # socket connection. | |
2128 | # | |
2129 | # @fd: #optional file descriptor of an already opened socket | |
2130 | # | |
2131 | # @listen: #optional port number, and optional hostname, to listen on | |
2132 | # | |
2133 | # @connect: #optional port number, and optional hostname, to connect to | |
2134 | # | |
2135 | # @mcast: #optional UDP multicast address and port number | |
2136 | # | |
2137 | # @localaddr: #optional source address and port for multicast and udp packets | |
2138 | # | |
2139 | # @udp: #optional UDP unicast address and port number | |
2140 | # | |
2141 | # Since 1.2 | |
2142 | ## | |
2143 | { 'type': 'NetdevSocketOptions', | |
2144 | 'data': { | |
2145 | '*fd': 'str', | |
2146 | '*listen': 'str', | |
2147 | '*connect': 'str', | |
2148 | '*mcast': 'str', | |
2149 | '*localaddr': 'str', | |
2150 | '*udp': 'str' } } | |
2151 | ||
2152 | ## | |
2153 | # @NetdevVdeOptions | |
2154 | # | |
2155 | # Connect the VLAN to a vde switch running on the host. | |
2156 | # | |
2157 | # @sock: #optional socket path | |
2158 | # | |
2159 | # @port: #optional port number | |
2160 | # | |
2161 | # @group: #optional group owner of socket | |
2162 | # | |
2163 | # @mode: #optional permissions for socket | |
2164 | # | |
2165 | # Since 1.2 | |
2166 | ## | |
2167 | { 'type': 'NetdevVdeOptions', | |
2168 | 'data': { | |
2169 | '*sock': 'str', | |
2170 | '*port': 'uint16', | |
2171 | '*group': 'str', | |
2172 | '*mode': 'uint16' } } | |
2173 | ||
2174 | ## | |
2175 | # @NetdevDumpOptions | |
2176 | # | |
2177 | # Dump VLAN network traffic to a file. | |
2178 | # | |
2179 | # @len: #optional per-packet size limit (64k default). Understands [TGMKkb] | |
2180 | # suffixes. | |
2181 | # | |
2182 | # @file: #optional dump file path (default is qemu-vlan0.pcap) | |
2183 | # | |
2184 | # Since 1.2 | |
2185 | ## | |
2186 | { 'type': 'NetdevDumpOptions', | |
2187 | 'data': { | |
2188 | '*len': 'size', | |
2189 | '*file': 'str' } } | |
2190 | ||
2191 | ## | |
2192 | # @NetdevBridgeOptions | |
2193 | # | |
2194 | # Connect a host TAP network interface to a host bridge device. | |
2195 | # | |
2196 | # @br: #optional bridge name | |
2197 | # | |
2198 | # @helper: #optional command to execute to configure bridge | |
2199 | # | |
2200 | # Since 1.2 | |
2201 | ## | |
2202 | { 'type': 'NetdevBridgeOptions', | |
2203 | 'data': { | |
2204 | '*br': 'str', | |
2205 | '*helper': 'str' } } | |
2206 | ||
f6c874e3 SH |
2207 | ## |
2208 | # @NetdevHubPortOptions | |
2209 | # | |
2210 | # Connect two or more net clients through a software hub. | |
2211 | # | |
2212 | # @hubid: hub identifier number | |
2213 | # | |
2214 | # Since 1.2 | |
2215 | ## | |
2216 | { 'type': 'NetdevHubPortOptions', | |
2217 | 'data': { | |
2218 | 'hubid': 'int32' } } | |
2219 | ||
14aa0c2d LE |
2220 | ## |
2221 | # @NetClientOptions | |
2222 | # | |
2223 | # A discriminated record of network device traits. | |
2224 | # | |
2225 | # Since 1.2 | |
2226 | ## | |
2227 | { 'union': 'NetClientOptions', | |
2228 | 'data': { | |
f6c874e3 SH |
2229 | 'none': 'NetdevNoneOptions', |
2230 | 'nic': 'NetLegacyNicOptions', | |
2231 | 'user': 'NetdevUserOptions', | |
2232 | 'tap': 'NetdevTapOptions', | |
2233 | 'socket': 'NetdevSocketOptions', | |
2234 | 'vde': 'NetdevVdeOptions', | |
2235 | 'dump': 'NetdevDumpOptions', | |
2236 | 'bridge': 'NetdevBridgeOptions', | |
2237 | 'hubport': 'NetdevHubPortOptions' } } | |
14aa0c2d LE |
2238 | |
2239 | ## | |
2240 | # @NetLegacy | |
2241 | # | |
2242 | # Captures the configuration of a network device; legacy. | |
2243 | # | |
2244 | # @vlan: #optional vlan number | |
2245 | # | |
2246 | # @id: #optional identifier for monitor commands | |
2247 | # | |
2248 | # @name: #optional identifier for monitor commands, ignored if @id is present | |
2249 | # | |
2250 | # @opts: device type specific properties (legacy) | |
2251 | # | |
2252 | # Since 1.2 | |
2253 | ## | |
2254 | { 'type': 'NetLegacy', | |
2255 | 'data': { | |
2256 | '*vlan': 'int32', | |
2257 | '*id': 'str', | |
2258 | '*name': 'str', | |
2259 | 'opts': 'NetClientOptions' } } | |
2260 | ||
2261 | ## | |
2262 | # @Netdev | |
2263 | # | |
2264 | # Captures the configuration of a network device. | |
2265 | # | |
2266 | # @id: identifier for monitor commands. | |
2267 | # | |
2268 | # @opts: device type specific properties | |
2269 | # | |
2270 | # Since 1.2 | |
2271 | ## | |
2272 | { 'type': 'Netdev', | |
2273 | 'data': { | |
2274 | 'id': 'str', | |
2275 | 'opts': 'NetClientOptions' } } | |
2276 | ||
208c9d1b CB |
2277 | ## |
2278 | # @getfd: | |
2279 | # | |
2280 | # Receive a file descriptor via SCM rights and assign it a name | |
2281 | # | |
2282 | # @fdname: file descriptor name | |
2283 | # | |
2284 | # Returns: Nothing on success | |
208c9d1b CB |
2285 | # |
2286 | # Since: 0.14.0 | |
2287 | # | |
2288 | # Notes: If @fdname already exists, the file descriptor assigned to | |
2289 | # it will be closed and replaced by the received file | |
2290 | # descriptor. | |
2291 | # The 'closefd' command can be used to explicitly close the | |
2292 | # file descriptor when it is no longer needed. | |
2293 | ## | |
2294 | { 'command': 'getfd', 'data': {'fdname': 'str'} } | |
2295 | ||
2296 | ## | |
2297 | # @closefd: | |
2298 | # | |
2299 | # Close a file descriptor previously passed via SCM rights | |
2300 | # | |
2301 | # @fdname: file descriptor name | |
2302 | # | |
2303 | # Returns: Nothing on success | |
208c9d1b CB |
2304 | # |
2305 | # Since: 0.14.0 | |
2306 | ## | |
2307 | { 'command': 'closefd', 'data': {'fdname': 'str'} } | |
01d3c80d AL |
2308 | |
2309 | ## | |
2310 | # @MachineInfo: | |
2311 | # | |
2312 | # Information describing a machine. | |
2313 | # | |
2314 | # @name: the name of the machine | |
2315 | # | |
2316 | # @alias: #optional an alias for the machine name | |
2317 | # | |
2318 | # @default: #optional whether the machine is default | |
2319 | # | |
2320 | # Since: 1.2.0 | |
2321 | ## | |
2322 | { 'type': 'MachineInfo', | |
2323 | 'data': { 'name': 'str', '*alias': 'str', | |
2324 | '*is-default': 'bool' } } | |
2325 | ||
2326 | ## | |
2327 | # @query-machines: | |
2328 | # | |
2329 | # Return a list of supported machines | |
2330 | # | |
2331 | # Returns: a list of MachineInfo | |
2332 | # | |
2333 | # Since: 1.2.0 | |
2334 | ## | |
2335 | { 'command': 'query-machines', 'returns': ['MachineInfo'] } | |
e4e31c63 AL |
2336 | |
2337 | ## | |
2338 | # @CpuDefinitionInfo: | |
2339 | # | |
2340 | # Virtual CPU definition. | |
2341 | # | |
2342 | # @name: the name of the CPU definition | |
2343 | # | |
2344 | # Since: 1.2.0 | |
2345 | ## | |
2346 | { 'type': 'CpuDefinitionInfo', | |
2347 | 'data': { 'name': 'str' } } | |
2348 | ||
2349 | ## | |
2350 | # @query-cpu-definitions: | |
2351 | # | |
2352 | # Return a list of supported virtual CPU definitions | |
2353 | # | |
2354 | # Returns: a list of CpuDefInfo | |
2355 | # | |
2356 | # Since: 1.2.0 | |
2357 | ## | |
2358 | { 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo'] } |