Commit | Line | Data |
---|---|---|
2313086a BS |
1 | HXCOMM Use DEFHEADING() to define headings in both help text and texi |
2 | HXCOMM Text between STEXI and ETEXI are copied to texi version and | |
3 | HXCOMM discarded from C version | |
4 | HXCOMM DEF(command, args, callback, arg_string, help) is used to construct | |
5 | HXCOMM monitor commands | |
6 | HXCOMM HXCOMM can be used for comments, discarded from both texi and C | |
7 | ||
8 | STEXI | |
9 | @table @option | |
10 | ETEXI | |
11 | ||
d7f9b689 LC |
12 | { |
13 | .name = "help|?", | |
129be006 | 14 | .args_type = "name:S?", |
d7f9b689 LC |
15 | .params = "[cmd]", |
16 | .help = "show the help", | |
2b9e3576 | 17 | .cmd = do_help_cmd, |
d7f9b689 LC |
18 | }, |
19 | ||
2313086a BS |
20 | STEXI |
21 | @item help or ? [@var{cmd}] | |
70fcbbe7 | 22 | @findex help |
2313086a BS |
23 | Show the help for all commands or just for command @var{cmd}. |
24 | ETEXI | |
25 | ||
d7f9b689 LC |
26 | { |
27 | .name = "commit", | |
28 | .args_type = "device:B", | |
d7f9b689 LC |
29 | .params = "device|all", |
30 | .help = "commit changes to the disk images (if -snapshot is used) or backing files", | |
2b9e3576 | 31 | .cmd = hmp_commit, |
d7f9b689 LC |
32 | }, |
33 | ||
2313086a BS |
34 | STEXI |
35 | @item commit | |
70fcbbe7 | 36 | @findex commit |
2313086a | 37 | Commit changes to the disk images (if -snapshot is used) or backing files. |
37222900 JC |
38 | If the backing file is smaller than the snapshot, then the backing file will be |
39 | resized to be the same size as the snapshot. If the snapshot is smaller than | |
40 | the backing file, the backing file will not be truncated. If you want the | |
41 | backing file to match the size of the smaller snapshot, you can safely truncate | |
42 | it yourself once the commit operation successfully completes. | |
2313086a BS |
43 | ETEXI |
44 | ||
d7f9b689 LC |
45 | { |
46 | .name = "q|quit", | |
47 | .args_type = "", | |
d7f9b689 LC |
48 | .params = "", |
49 | .help = "quit the emulator", | |
2b9e3576 | 50 | .cmd = hmp_quit, |
d7f9b689 LC |
51 | }, |
52 | ||
2313086a BS |
53 | STEXI |
54 | @item q or quit | |
70fcbbe7 | 55 | @findex quit |
2313086a BS |
56 | Quit the emulator. |
57 | ETEXI | |
58 | ||
6d4a2b3a CH |
59 | { |
60 | .name = "block_resize", | |
61 | .args_type = "device:B,size:o", | |
62 | .params = "device size", | |
63 | .help = "resize a block image", | |
2b9e3576 | 64 | .cmd = hmp_block_resize, |
6d4a2b3a CH |
65 | }, |
66 | ||
67 | STEXI | |
68 | @item block_resize | |
69 | @findex block_resize | |
70 | Resize a block image while a guest is running. Usually requires guest | |
71 | action to see the updated size. Resize to a lower size is supported, | |
72 | but should be used with extreme caution. Note that this command only | |
73 | resizes image files, it can not resize block devices like LVM volumes. | |
74 | ETEXI | |
75 | ||
12bd451f SH |
76 | { |
77 | .name = "block_stream", | |
c83c66c3 SH |
78 | .args_type = "device:B,speed:o?,base:s?", |
79 | .params = "device [speed [base]]", | |
12bd451f | 80 | .help = "copy data from a backing file into a block device", |
2b9e3576 | 81 | .cmd = hmp_block_stream, |
12bd451f SH |
82 | }, |
83 | ||
84 | STEXI | |
85 | @item block_stream | |
86 | @findex block_stream | |
87 | Copy data from a backing file into a block device. | |
2d47c6e9 SH |
88 | ETEXI |
89 | ||
90 | { | |
91 | .name = "block_job_set_speed", | |
882ec7ce SH |
92 | .args_type = "device:B,speed:o", |
93 | .params = "device speed", | |
2d47c6e9 | 94 | .help = "set maximum speed for a background block operation", |
2b9e3576 | 95 | .cmd = hmp_block_job_set_speed, |
2d47c6e9 SH |
96 | }, |
97 | ||
98 | STEXI | |
4451b799 PB |
99 | @item block_job_set_speed |
100 | @findex block_job_set_speed | |
2d47c6e9 | 101 | Set maximum speed for a background block operation. |
370521a1 SH |
102 | ETEXI |
103 | ||
104 | { | |
105 | .name = "block_job_cancel", | |
6e37fb81 PB |
106 | .args_type = "force:-f,device:B", |
107 | .params = "[-f] device", | |
108 | .help = "stop an active background block operation (use -f" | |
109 | "\n\t\t\t if the operation is currently paused)", | |
2b9e3576 | 110 | .cmd = hmp_block_job_cancel, |
370521a1 SH |
111 | }, |
112 | ||
113 | STEXI | |
114 | @item block_job_cancel | |
115 | @findex block_job_cancel | |
aeae883b PB |
116 | Stop an active background block operation (streaming, mirroring). |
117 | ETEXI | |
118 | ||
119 | { | |
120 | .name = "block_job_complete", | |
121 | .args_type = "device:B", | |
122 | .params = "device", | |
123 | .help = "stop an active background block operation", | |
2b9e3576 | 124 | .cmd = hmp_block_job_complete, |
aeae883b PB |
125 | }, |
126 | ||
127 | STEXI | |
128 | @item block_job_complete | |
129 | @findex block_job_complete | |
130 | Manually trigger completion of an active background block operation. | |
131 | For mirroring, this will switch the device to the destination path. | |
6e37fb81 PB |
132 | ETEXI |
133 | ||
134 | { | |
135 | .name = "block_job_pause", | |
136 | .args_type = "device:B", | |
137 | .params = "device", | |
138 | .help = "pause an active background block operation", | |
2b9e3576 | 139 | .cmd = hmp_block_job_pause, |
6e37fb81 PB |
140 | }, |
141 | ||
142 | STEXI | |
143 | @item block_job_pause | |
144 | @findex block_job_pause | |
145 | Pause an active block streaming operation. | |
146 | ETEXI | |
147 | ||
148 | { | |
149 | .name = "block_job_resume", | |
150 | .args_type = "device:B", | |
151 | .params = "device", | |
152 | .help = "resume a paused background block operation", | |
2b9e3576 | 153 | .cmd = hmp_block_job_resume, |
6e37fb81 PB |
154 | }, |
155 | ||
156 | STEXI | |
157 | @item block_job_resume | |
158 | @findex block_job_resume | |
159 | Resume a paused block streaming operation. | |
12bd451f | 160 | ETEXI |
6d4a2b3a | 161 | |
d7f9b689 LC |
162 | { |
163 | .name = "eject", | |
78d714e0 | 164 | .args_type = "force:-f,device:B", |
d7f9b689 LC |
165 | .params = "[-f] device", |
166 | .help = "eject a removable medium (use -f to force it)", | |
2b9e3576 | 167 | .cmd = hmp_eject, |
d7f9b689 LC |
168 | }, |
169 | ||
2313086a BS |
170 | STEXI |
171 | @item eject [-f] @var{device} | |
70fcbbe7 | 172 | @findex eject |
2313086a | 173 | Eject a removable medium (use -f to force it). |
9063f814 RH |
174 | ETEXI |
175 | ||
176 | { | |
177 | .name = "drive_del", | |
f7bdc41a | 178 | .args_type = "id:B", |
9063f814 RH |
179 | .params = "device", |
180 | .help = "remove host block device", | |
2b9e3576 | 181 | .cmd = hmp_drive_del, |
9063f814 RH |
182 | }, |
183 | ||
184 | STEXI | |
185 | @item drive_del @var{device} | |
186 | @findex drive_del | |
187 | Remove host block device. The result is that guest generated IO is no longer | |
188 | submitted against the host device underlying the disk. Once a drive has | |
189 | been deleted, the QEMU Block layer returns -EIO which results in IO | |
190 | errors in the guest for applications that are reading/writing to the device. | |
293c51a6 SH |
191 | These errors are always reported to the guest, regardless of the drive's error |
192 | actions (drive options rerror, werror). | |
2313086a BS |
193 | ETEXI |
194 | ||
d7f9b689 LC |
195 | { |
196 | .name = "change", | |
baead0ab HR |
197 | .args_type = "device:B,target:F,arg:s?,read-only-mode:s?", |
198 | .params = "device filename [format [read-only-mode]]", | |
d7f9b689 | 199 | .help = "change a removable medium, optional format", |
2b9e3576 | 200 | .cmd = hmp_change, |
d7f9b689 LC |
201 | }, |
202 | ||
2313086a BS |
203 | STEXI |
204 | @item change @var{device} @var{setting} | |
70fcbbe7 | 205 | @findex change |
2313086a BS |
206 | Change the configuration of a device. |
207 | ||
208 | @table @option | |
baead0ab | 209 | @item change @var{diskdevice} @var{filename} [@var{format} [@var{read-only-mode}]] |
2313086a BS |
210 | Change the medium for a removable disk device to point to @var{filename}. eg |
211 | ||
212 | @example | |
213 | (qemu) change ide1-cd0 /path/to/some.iso | |
214 | @end example | |
215 | ||
216 | @var{format} is optional. | |
217 | ||
baead0ab HR |
218 | @var{read-only-mode} may be used to change the read-only status of the device. |
219 | It accepts the following values: | |
220 | ||
221 | @table @var | |
222 | @item retain | |
223 | Retains the current status; this is the default. | |
224 | ||
225 | @item read-only | |
226 | Makes the device read-only. | |
227 | ||
228 | @item read-write | |
229 | Makes the device writable. | |
230 | @end table | |
231 | ||
2313086a BS |
232 | @item change vnc @var{display},@var{options} |
233 | Change the configuration of the VNC server. The valid syntax for @var{display} | |
234 | and @var{options} are described at @ref{sec_invocation}. eg | |
235 | ||
236 | @example | |
237 | (qemu) change vnc localhost:1 | |
238 | @end example | |
239 | ||
240 | @item change vnc password [@var{password}] | |
241 | ||
242 | Change the password associated with the VNC server. If the new password is not | |
243 | supplied, the monitor will prompt for it to be entered. VNC passwords are only | |
244 | significant up to 8 letters. eg | |
245 | ||
246 | @example | |
247 | (qemu) change vnc password | |
248 | Password: ******** | |
249 | @end example | |
250 | ||
251 | @end table | |
252 | ETEXI | |
253 | ||
d7f9b689 LC |
254 | { |
255 | .name = "screendump", | |
f771c544 TH |
256 | .args_type = "filename:F,device:s?,head:i?", |
257 | .params = "filename [device [head]]", | |
258 | .help = "save screen from head 'head' of display device 'device' " | |
259 | "into PPM image 'filename'", | |
2b9e3576 | 260 | .cmd = hmp_screendump, |
d7f9b689 LC |
261 | }, |
262 | ||
2313086a BS |
263 | STEXI |
264 | @item screendump @var{filename} | |
70fcbbe7 | 265 | @findex screendump |
2313086a BS |
266 | Save screen into PPM image @var{filename}. |
267 | ETEXI | |
268 | ||
d7f9b689 LC |
269 | { |
270 | .name = "logfile", | |
271 | .args_type = "filename:F", | |
d7f9b689 LC |
272 | .params = "filename", |
273 | .help = "output logs to 'filename'", | |
2b9e3576 | 274 | .cmd = hmp_logfile, |
d7f9b689 LC |
275 | }, |
276 | ||
2313086a BS |
277 | STEXI |
278 | @item logfile @var{filename} | |
70fcbbe7 | 279 | @findex logfile |
2313086a BS |
280 | Output logs to @var{filename}. |
281 | ETEXI | |
282 | ||
22890ab5 PS |
283 | { |
284 | .name = "trace-event", | |
77e2b172 LV |
285 | .args_type = "name:s,option:b,vcpu:i?", |
286 | .params = "name on|off [vcpu]", | |
287 | .help = "changes status of a specific trace event " | |
288 | "(vcpu: vCPU to set, default is all)", | |
2b9e3576 | 289 | .cmd = hmp_trace_event, |
987bd270 | 290 | .command_completion = trace_event_completion, |
22890ab5 PS |
291 | }, |
292 | ||
293 | STEXI | |
294 | @item trace-event | |
295 | @findex trace-event | |
296 | changes status of a trace event | |
c5ceb523 SH |
297 | ETEXI |
298 | ||
c45a8168 | 299 | #if defined(CONFIG_TRACE_SIMPLE) |
c5ceb523 SH |
300 | { |
301 | .name = "trace-file", | |
302 | .args_type = "op:s?,arg:F?", | |
303 | .params = "on|off|flush|set [arg]", | |
304 | .help = "open, close, or flush trace file, or set a new file name", | |
2b9e3576 | 305 | .cmd = hmp_trace_file, |
c5ceb523 SH |
306 | }, |
307 | ||
308 | STEXI | |
309 | @item trace-file on|off|flush | |
310 | @findex trace-file | |
311 | Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed. | |
22890ab5 PS |
312 | ETEXI |
313 | #endif | |
314 | ||
d7f9b689 LC |
315 | { |
316 | .name = "log", | |
317 | .args_type = "items:s", | |
d7f9b689 | 318 | .params = "item1[,...]", |
989b697d | 319 | .help = "activate logging of the specified items", |
2b9e3576 | 320 | .cmd = hmp_log, |
d7f9b689 LC |
321 | }, |
322 | ||
2313086a BS |
323 | STEXI |
324 | @item log @var{item1}[,...] | |
70fcbbe7 | 325 | @findex log |
989b697d | 326 | Activate logging of the specified items. |
2313086a BS |
327 | ETEXI |
328 | ||
d7f9b689 LC |
329 | { |
330 | .name = "savevm", | |
331 | .args_type = "name:s?", | |
d7f9b689 LC |
332 | .params = "[tag|id]", |
333 | .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created", | |
2b9e3576 | 334 | .cmd = hmp_savevm, |
d7f9b689 LC |
335 | }, |
336 | ||
2313086a BS |
337 | STEXI |
338 | @item savevm [@var{tag}|@var{id}] | |
70fcbbe7 | 339 | @findex savevm |
2313086a BS |
340 | Create a snapshot of the whole virtual machine. If @var{tag} is |
341 | provided, it is used as human readable identifier. If there is already | |
342 | a snapshot with the same tag or ID, it is replaced. More info at | |
343 | @ref{vm_snapshots}. | |
344 | ETEXI | |
345 | ||
d7f9b689 LC |
346 | { |
347 | .name = "loadvm", | |
348 | .args_type = "name:s", | |
d7f9b689 LC |
349 | .params = "tag|id", |
350 | .help = "restore a VM snapshot from its tag or id", | |
2b9e3576 | 351 | .cmd = hmp_loadvm, |
b21631f3 | 352 | .command_completion = loadvm_completion, |
d7f9b689 LC |
353 | }, |
354 | ||
2313086a BS |
355 | STEXI |
356 | @item loadvm @var{tag}|@var{id} | |
70fcbbe7 | 357 | @findex loadvm |
2313086a BS |
358 | Set the whole virtual machine to the snapshot identified by the tag |
359 | @var{tag} or the unique snapshot ID @var{id}. | |
360 | ETEXI | |
361 | ||
d7f9b689 LC |
362 | { |
363 | .name = "delvm", | |
364 | .args_type = "name:s", | |
d7f9b689 LC |
365 | .params = "tag|id", |
366 | .help = "delete a VM snapshot from its tag or id", | |
2b9e3576 | 367 | .cmd = hmp_delvm, |
b21631f3 | 368 | .command_completion = delvm_completion, |
d7f9b689 LC |
369 | }, |
370 | ||
2313086a BS |
371 | STEXI |
372 | @item delvm @var{tag}|@var{id} | |
70fcbbe7 | 373 | @findex delvm |
2313086a BS |
374 | Delete the snapshot identified by @var{tag} or @var{id}. |
375 | ETEXI | |
376 | ||
d7f9b689 LC |
377 | { |
378 | .name = "singlestep", | |
379 | .args_type = "option:s?", | |
d7f9b689 LC |
380 | .params = "[on|off]", |
381 | .help = "run emulation in singlestep mode or switch to normal mode", | |
2b9e3576 | 382 | .cmd = hmp_singlestep, |
d7f9b689 LC |
383 | }, |
384 | ||
2313086a BS |
385 | STEXI |
386 | @item singlestep [off] | |
70fcbbe7 | 387 | @findex singlestep |
2313086a BS |
388 | Run the emulation in single step mode. |
389 | If called with option off, the emulation returns to normal mode. | |
390 | ETEXI | |
391 | ||
d7f9b689 LC |
392 | { |
393 | .name = "stop", | |
394 | .args_type = "", | |
d7f9b689 LC |
395 | .params = "", |
396 | .help = "stop emulation", | |
2b9e3576 | 397 | .cmd = hmp_stop, |
d7f9b689 LC |
398 | }, |
399 | ||
2313086a BS |
400 | STEXI |
401 | @item stop | |
70fcbbe7 | 402 | @findex stop |
2313086a BS |
403 | Stop emulation. |
404 | ETEXI | |
405 | ||
d7f9b689 LC |
406 | { |
407 | .name = "c|cont", | |
408 | .args_type = "", | |
d7f9b689 LC |
409 | .params = "", |
410 | .help = "resume emulation", | |
2b9e3576 | 411 | .cmd = hmp_cont, |
d7f9b689 LC |
412 | }, |
413 | ||
2313086a BS |
414 | STEXI |
415 | @item c or cont | |
70fcbbe7 | 416 | @findex cont |
2313086a | 417 | Resume emulation. |
9b9df25a GH |
418 | ETEXI |
419 | ||
420 | { | |
421 | .name = "system_wakeup", | |
422 | .args_type = "", | |
423 | .params = "", | |
424 | .help = "wakeup guest from suspend", | |
2b9e3576 | 425 | .cmd = hmp_system_wakeup, |
9b9df25a GH |
426 | }, |
427 | ||
428 | STEXI | |
429 | @item system_wakeup | |
430 | @findex system_wakeup | |
431 | Wakeup guest from suspend. | |
2313086a BS |
432 | ETEXI |
433 | ||
d7f9b689 LC |
434 | { |
435 | .name = "gdbserver", | |
436 | .args_type = "device:s?", | |
d7f9b689 LC |
437 | .params = "[device]", |
438 | .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", | |
2b9e3576 | 439 | .cmd = hmp_gdbserver, |
d7f9b689 LC |
440 | }, |
441 | ||
2313086a BS |
442 | STEXI |
443 | @item gdbserver [@var{port}] | |
70fcbbe7 | 444 | @findex gdbserver |
2313086a BS |
445 | Start gdbserver session (default @var{port}=1234) |
446 | ETEXI | |
447 | ||
d7f9b689 LC |
448 | { |
449 | .name = "x", | |
450 | .args_type = "fmt:/,addr:l", | |
d7f9b689 LC |
451 | .params = "/fmt addr", |
452 | .help = "virtual memory dump starting at 'addr'", | |
2b9e3576 | 453 | .cmd = hmp_memory_dump, |
d7f9b689 LC |
454 | }, |
455 | ||
2313086a BS |
456 | STEXI |
457 | @item x/fmt @var{addr} | |
70fcbbe7 | 458 | @findex x |
2313086a BS |
459 | Virtual memory dump starting at @var{addr}. |
460 | ETEXI | |
461 | ||
d7f9b689 LC |
462 | { |
463 | .name = "xp", | |
464 | .args_type = "fmt:/,addr:l", | |
d7f9b689 LC |
465 | .params = "/fmt addr", |
466 | .help = "physical memory dump starting at 'addr'", | |
2b9e3576 | 467 | .cmd = hmp_physical_memory_dump, |
d7f9b689 LC |
468 | }, |
469 | ||
2313086a BS |
470 | STEXI |
471 | @item xp /@var{fmt} @var{addr} | |
70fcbbe7 | 472 | @findex xp |
2313086a BS |
473 | Physical memory dump starting at @var{addr}. |
474 | ||
475 | @var{fmt} is a format which tells the command how to format the | |
476 | data. Its syntax is: @option{/@{count@}@{format@}@{size@}} | |
477 | ||
478 | @table @var | |
479 | @item count | |
480 | is the number of items to be dumped. | |
481 | ||
482 | @item format | |
483 | can be x (hex), d (signed decimal), u (unsigned decimal), o (octal), | |
484 | c (char) or i (asm instruction). | |
485 | ||
486 | @item size | |
487 | can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86, | |
488 | @code{h} or @code{w} can be specified with the @code{i} format to | |
489 | respectively select 16 or 32 bit code instruction size. | |
490 | ||
491 | @end table | |
492 | ||
493 | Examples: | |
494 | @itemize | |
495 | @item | |
496 | Dump 10 instructions at the current instruction pointer: | |
497 | @example | |
498 | (qemu) x/10i $eip | |
499 | 0x90107063: ret | |
500 | 0x90107064: sti | |
501 | 0x90107065: lea 0x0(%esi,1),%esi | |
502 | 0x90107069: lea 0x0(%edi,1),%edi | |
503 | 0x90107070: ret | |
504 | 0x90107071: jmp 0x90107080 | |
505 | 0x90107073: nop | |
506 | 0x90107074: nop | |
507 | 0x90107075: nop | |
508 | 0x90107076: nop | |
509 | @end example | |
510 | ||
511 | @item | |
512 | Dump 80 16 bit values at the start of the video memory. | |
513 | @smallexample | |
514 | (qemu) xp/80hx 0xb8000 | |
515 | 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42 | |
516 | 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41 | |
517 | 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72 | |
518 | 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73 | |
519 | 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20 | |
520 | 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720 | |
521 | 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 | |
522 | 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 | |
523 | 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 | |
524 | 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 | |
525 | @end smallexample | |
526 | @end itemize | |
e9628441 PB |
527 | ETEXI |
528 | ||
529 | { | |
530 | .name = "gpa2hva", | |
531 | .args_type = "addr:l", | |
532 | .params = "addr", | |
533 | .help = "print the host virtual address corresponding to a guest physical address", | |
534 | .cmd = hmp_gpa2hva, | |
535 | }, | |
536 | ||
537 | STEXI | |
538 | @item gpa2hva @var{addr} | |
539 | @findex gpa2hva | |
540 | Print the host virtual address at which the guest's physical address @var{addr} | |
541 | is mapped. | |
542 | ETEXI | |
543 | ||
544 | #ifdef CONFIG_LINUX | |
545 | { | |
546 | .name = "gpa2hpa", | |
547 | .args_type = "addr:l", | |
548 | .params = "addr", | |
549 | .help = "print the host physical address corresponding to a guest physical address", | |
550 | .cmd = hmp_gpa2hpa, | |
551 | }, | |
552 | #endif | |
553 | ||
554 | STEXI | |
555 | @item gpa2hpa @var{addr} | |
556 | @findex gpa2hpa | |
557 | Print the host physical address at which the guest's physical address @var{addr} | |
558 | is mapped. | |
2313086a BS |
559 | ETEXI |
560 | ||
d7f9b689 LC |
561 | { |
562 | .name = "p|print", | |
563 | .args_type = "fmt:/,val:l", | |
d7f9b689 LC |
564 | .params = "/fmt expr", |
565 | .help = "print expression value (use $reg for CPU register access)", | |
2b9e3576 | 566 | .cmd = do_print, |
d7f9b689 LC |
567 | }, |
568 | ||
2313086a BS |
569 | STEXI |
570 | @item p or print/@var{fmt} @var{expr} | |
70fcbbe7 | 571 | @findex print |
2313086a BS |
572 | Print expression value. Only the @var{format} part of @var{fmt} is |
573 | used. | |
574 | ETEXI | |
575 | ||
d7f9b689 LC |
576 | { |
577 | .name = "i", | |
578 | .args_type = "fmt:/,addr:i,index:i.", | |
d7f9b689 LC |
579 | .params = "/fmt addr", |
580 | .help = "I/O port read", | |
2b9e3576 | 581 | .cmd = hmp_ioport_read, |
d7f9b689 LC |
582 | }, |
583 | ||
2313086a | 584 | STEXI |
b76d799e MA |
585 | @item i/@var{fmt} @var{addr} [.@var{index}] |
586 | @findex i | |
2313086a BS |
587 | Read I/O port. |
588 | ETEXI | |
589 | ||
d7f9b689 LC |
590 | { |
591 | .name = "o", | |
592 | .args_type = "fmt:/,addr:i,val:i", | |
d7f9b689 LC |
593 | .params = "/fmt addr value", |
594 | .help = "I/O port write", | |
2b9e3576 | 595 | .cmd = hmp_ioport_write, |
d7f9b689 LC |
596 | }, |
597 | ||
f114784f | 598 | STEXI |
b76d799e MA |
599 | @item o/@var{fmt} @var{addr} @var{val} |
600 | @findex o | |
f114784f JK |
601 | Write to I/O port. |
602 | ETEXI | |
2313086a | 603 | |
d7f9b689 LC |
604 | { |
605 | .name = "sendkey", | |
2ef20c15 | 606 | .args_type = "keys:s,hold-time:i?", |
d7f9b689 LC |
607 | .params = "keys [hold_ms]", |
608 | .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)", | |
2b9e3576 | 609 | .cmd = hmp_sendkey, |
29136cd8 | 610 | .command_completion = sendkey_completion, |
d7f9b689 LC |
611 | }, |
612 | ||
2313086a BS |
613 | STEXI |
614 | @item sendkey @var{keys} | |
70fcbbe7 | 615 | @findex sendkey |
886cc706 AK |
616 | Send @var{keys} to the guest. @var{keys} could be the name of the |
617 | key or the raw value in hexadecimal format. Use @code{-} to press | |
618 | several keys simultaneously. Example: | |
2313086a BS |
619 | @example |
620 | sendkey ctrl-alt-f1 | |
621 | @end example | |
622 | ||
623 | This command is useful to send keys that your graphical user interface | |
624 | intercepts at low level, such as @code{ctrl-alt-f1} in X Window. | |
625 | ETEXI | |
626 | ||
d7f9b689 LC |
627 | { |
628 | .name = "system_reset", | |
629 | .args_type = "", | |
d7f9b689 LC |
630 | .params = "", |
631 | .help = "reset the system", | |
2b9e3576 | 632 | .cmd = hmp_system_reset, |
d7f9b689 LC |
633 | }, |
634 | ||
2313086a BS |
635 | STEXI |
636 | @item system_reset | |
70fcbbe7 | 637 | @findex system_reset |
2313086a BS |
638 | Reset the system. |
639 | ETEXI | |
640 | ||
d7f9b689 LC |
641 | { |
642 | .name = "system_powerdown", | |
643 | .args_type = "", | |
d7f9b689 LC |
644 | .params = "", |
645 | .help = "send system power down event", | |
2b9e3576 | 646 | .cmd = hmp_system_powerdown, |
d7f9b689 LC |
647 | }, |
648 | ||
2313086a BS |
649 | STEXI |
650 | @item system_powerdown | |
70fcbbe7 | 651 | @findex system_powerdown |
2313086a BS |
652 | Power down the system (if supported). |
653 | ETEXI | |
654 | ||
d7f9b689 LC |
655 | { |
656 | .name = "sum", | |
657 | .args_type = "start:i,size:i", | |
d7f9b689 LC |
658 | .params = "addr size", |
659 | .help = "compute the checksum of a memory region", | |
2b9e3576 | 660 | .cmd = hmp_sum, |
d7f9b689 LC |
661 | }, |
662 | ||
2313086a BS |
663 | STEXI |
664 | @item sum @var{addr} @var{size} | |
70fcbbe7 | 665 | @findex sum |
2313086a | 666 | Compute the checksum of a memory region. |
2313086a BS |
667 | ETEXI |
668 | ||
d7f9b689 LC |
669 | { |
670 | .name = "device_add", | |
c7e4e8ce MA |
671 | .args_type = "device:O", |
672 | .params = "driver[,prop=value][,...]", | |
d7f9b689 | 673 | .help = "add device, like -device on the command line", |
2b9e3576 | 674 | .cmd = hmp_device_add, |
2da1b3ab | 675 | .command_completion = device_add_completion, |
d7f9b689 LC |
676 | }, |
677 | ||
3418bd25 GH |
678 | STEXI |
679 | @item device_add @var{config} | |
70fcbbe7 | 680 | @findex device_add |
3418bd25 GH |
681 | Add device. |
682 | ETEXI | |
683 | ||
d7f9b689 LC |
684 | { |
685 | .name = "device_del", | |
686 | .args_type = "id:s", | |
d7f9b689 LC |
687 | .params = "device", |
688 | .help = "remove device", | |
2b9e3576 | 689 | .cmd = hmp_device_del, |
2da1b3ab | 690 | .command_completion = device_del_completion, |
d7f9b689 LC |
691 | }, |
692 | ||
3418bd25 GH |
693 | STEXI |
694 | @item device_del @var{id} | |
70fcbbe7 | 695 | @findex device_del |
6287d827 DB |
696 | Remove device @var{id}. @var{id} may be a short ID |
697 | or a QOM object path. | |
3418bd25 GH |
698 | ETEXI |
699 | ||
d7f9b689 LC |
700 | { |
701 | .name = "cpu", | |
702 | .args_type = "index:i", | |
d7f9b689 LC |
703 | .params = "index", |
704 | .help = "set the default CPU", | |
2b9e3576 | 705 | .cmd = hmp_cpu, |
d7f9b689 | 706 | }, |
3418bd25 | 707 | |
2313086a | 708 | STEXI |
c427ea9c MA |
709 | @item cpu @var{index} |
710 | @findex cpu | |
2313086a BS |
711 | Set the default CPU. |
712 | ETEXI | |
713 | ||
d7f9b689 LC |
714 | { |
715 | .name = "mouse_move", | |
716 | .args_type = "dx_str:s,dy_str:s,dz_str:s?", | |
d7f9b689 LC |
717 | .params = "dx dy [dz]", |
718 | .help = "send mouse move events", | |
2b9e3576 | 719 | .cmd = hmp_mouse_move, |
d7f9b689 LC |
720 | }, |
721 | ||
2313086a BS |
722 | STEXI |
723 | @item mouse_move @var{dx} @var{dy} [@var{dz}] | |
70fcbbe7 | 724 | @findex mouse_move |
2313086a BS |
725 | Move the active mouse to the specified coordinates @var{dx} @var{dy} |
726 | with optional scroll axis @var{dz}. | |
727 | ETEXI | |
728 | ||
d7f9b689 LC |
729 | { |
730 | .name = "mouse_button", | |
731 | .args_type = "button_state:i", | |
d7f9b689 LC |
732 | .params = "state", |
733 | .help = "change mouse button state (1=L, 2=M, 4=R)", | |
2b9e3576 | 734 | .cmd = hmp_mouse_button, |
d7f9b689 LC |
735 | }, |
736 | ||
2313086a BS |
737 | STEXI |
738 | @item mouse_button @var{val} | |
70fcbbe7 | 739 | @findex mouse_button |
2313086a BS |
740 | Change the active mouse button state @var{val} (1=L, 2=M, 4=R). |
741 | ETEXI | |
742 | ||
d7f9b689 LC |
743 | { |
744 | .name = "mouse_set", | |
745 | .args_type = "index:i", | |
d7f9b689 LC |
746 | .params = "index", |
747 | .help = "set which mouse device receives events", | |
2b9e3576 | 748 | .cmd = hmp_mouse_set, |
d7f9b689 LC |
749 | }, |
750 | ||
2313086a BS |
751 | STEXI |
752 | @item mouse_set @var{index} | |
70fcbbe7 | 753 | @findex mouse_set |
2313086a BS |
754 | Set which mouse device receives events at given @var{index}, index |
755 | can be obtained with | |
756 | @example | |
757 | info mice | |
758 | @end example | |
759 | ETEXI | |
760 | ||
d7f9b689 LC |
761 | { |
762 | .name = "wavcapture", | |
763 | .args_type = "path:F,freq:i?,bits:i?,nchannels:i?", | |
d7f9b689 LC |
764 | .params = "path [frequency [bits [channels]]]", |
765 | .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)", | |
2b9e3576 | 766 | .cmd = hmp_wavcapture, |
d7f9b689 | 767 | }, |
2313086a BS |
768 | STEXI |
769 | @item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]] | |
70fcbbe7 | 770 | @findex wavcapture |
2313086a BS |
771 | Capture audio into @var{filename}. Using sample rate @var{frequency} |
772 | bits per sample @var{bits} and number of channels @var{channels}. | |
773 | ||
774 | Defaults: | |
775 | @itemize @minus | |
776 | @item Sample rate = 44100 Hz - CD quality | |
777 | @item Bits = 16 | |
778 | @item Number of channels = 2 - Stereo | |
779 | @end itemize | |
780 | ETEXI | |
781 | ||
d7f9b689 LC |
782 | { |
783 | .name = "stopcapture", | |
784 | .args_type = "n:i", | |
d7f9b689 LC |
785 | .params = "capture index", |
786 | .help = "stop capture", | |
2b9e3576 | 787 | .cmd = hmp_stopcapture, |
d7f9b689 | 788 | }, |
2313086a BS |
789 | STEXI |
790 | @item stopcapture @var{index} | |
70fcbbe7 | 791 | @findex stopcapture |
2313086a BS |
792 | Stop capture with a given @var{index}, index can be obtained with |
793 | @example | |
794 | info capture | |
795 | @end example | |
796 | ETEXI | |
797 | ||
d7f9b689 LC |
798 | { |
799 | .name = "memsave", | |
800 | .args_type = "val:l,size:i,filename:s", | |
d7f9b689 LC |
801 | .params = "addr size file", |
802 | .help = "save to disk virtual memory dump starting at 'addr' of size 'size'", | |
2b9e3576 | 803 | .cmd = hmp_memsave, |
d7f9b689 LC |
804 | }, |
805 | ||
2313086a BS |
806 | STEXI |
807 | @item memsave @var{addr} @var{size} @var{file} | |
70fcbbe7 | 808 | @findex memsave |
2313086a BS |
809 | save to disk virtual memory dump starting at @var{addr} of size @var{size}. |
810 | ETEXI | |
811 | ||
d7f9b689 LC |
812 | { |
813 | .name = "pmemsave", | |
814 | .args_type = "val:l,size:i,filename:s", | |
d7f9b689 LC |
815 | .params = "addr size file", |
816 | .help = "save to disk physical memory dump starting at 'addr' of size 'size'", | |
2b9e3576 | 817 | .cmd = hmp_pmemsave, |
d7f9b689 LC |
818 | }, |
819 | ||
2313086a BS |
820 | STEXI |
821 | @item pmemsave @var{addr} @var{size} @var{file} | |
70fcbbe7 | 822 | @findex pmemsave |
2313086a BS |
823 | save to disk physical memory dump starting at @var{addr} of size @var{size}. |
824 | ETEXI | |
825 | ||
d7f9b689 LC |
826 | { |
827 | .name = "boot_set", | |
828 | .args_type = "bootdevice:s", | |
d7f9b689 LC |
829 | .params = "bootdevice", |
830 | .help = "define new values for the boot device list", | |
2b9e3576 | 831 | .cmd = hmp_boot_set, |
d7f9b689 LC |
832 | }, |
833 | ||
2313086a BS |
834 | STEXI |
835 | @item boot_set @var{bootdevicelist} | |
70fcbbe7 | 836 | @findex boot_set |
2313086a BS |
837 | Define new values for the boot device list. Those values will override |
838 | the values specified on the command line through the @code{-boot} option. | |
839 | ||
840 | The values that can be specified here depend on the machine type, but are | |
841 | the same that can be specified in the @code{-boot} command line option. | |
842 | ETEXI | |
843 | ||
d7f9b689 LC |
844 | { |
845 | .name = "nmi", | |
e9b4b432 LC |
846 | .args_type = "", |
847 | .params = "", | |
9cb805fd | 848 | .help = "inject an NMI", |
2b9e3576 | 849 | .cmd = hmp_nmi, |
d7f9b689 | 850 | }, |
2313086a BS |
851 | STEXI |
852 | @item nmi @var{cpu} | |
70fcbbe7 | 853 | @findex nmi |
9cb805fd | 854 | Inject an NMI on the default CPU (x86/s390) or all CPUs (ppc64). |
1f590cf9 LL |
855 | |
856 | ETEXI | |
857 | ||
858 | { | |
3949e594 | 859 | .name = "ringbuf_write", |
1f590cf9 LL |
860 | .args_type = "device:s,data:s", |
861 | .params = "device data", | |
3949e594 | 862 | .help = "Write to a ring buffer character device", |
2b9e3576 | 863 | .cmd = hmp_ringbuf_write, |
8e597779 | 864 | .command_completion = ringbuf_write_completion, |
1f590cf9 LL |
865 | }, |
866 | ||
867 | STEXI | |
3949e594 MA |
868 | @item ringbuf_write @var{device} @var{data} |
869 | @findex ringbuf_write | |
870 | Write @var{data} to ring buffer character device @var{device}. | |
871 | @var{data} must be a UTF-8 string. | |
1f590cf9 | 872 | |
49b6d722 LL |
873 | ETEXI |
874 | ||
875 | { | |
3949e594 | 876 | .name = "ringbuf_read", |
49b6d722 LL |
877 | .args_type = "device:s,size:i", |
878 | .params = "device size", | |
3949e594 | 879 | .help = "Read from a ring buffer character device", |
2b9e3576 | 880 | .cmd = hmp_ringbuf_read, |
8e597779 | 881 | .command_completion = ringbuf_write_completion, |
49b6d722 LL |
882 | }, |
883 | ||
884 | STEXI | |
3949e594 MA |
885 | @item ringbuf_read @var{device} |
886 | @findex ringbuf_read | |
887 | Read and print up to @var{size} bytes from ring buffer character | |
888 | device @var{device}. | |
543f3412 MA |
889 | Certain non-printable characters are printed \uXXXX, where XXXX is the |
890 | character code in hexadecimal. Character \ is printed \\. | |
3949e594 MA |
891 | Bug: can screw up when the buffer contains invalid UTF-8 sequences, |
892 | NUL characters, after the ring buffer lost data, and when reading | |
893 | stops because the size limit is reached. | |
49b6d722 | 894 | |
2313086a BS |
895 | ETEXI |
896 | ||
d7f9b689 LC |
897 | { |
898 | .name = "migrate", | |
fbc3d96c LS |
899 | .args_type = "detach:-d,blk:-b,inc:-i,uri:s", |
900 | .params = "[-d] [-b] [-i] uri", | |
901 | .help = "migrate to URI (using -d to not wait for completion)" | |
902 | "\n\t\t\t -b for migration without shared storage with" | |
903 | " full copy of disk\n\t\t\t -i for migration without " | |
904 | "shared storage with incremental copy of disk " | |
905 | "(base image shared between src and destination)", | |
2b9e3576 | 906 | .cmd = hmp_migrate, |
d7f9b689 LC |
907 | }, |
908 | ||
fbc3d96c | 909 | |
2313086a | 910 | STEXI |
fbc3d96c | 911 | @item migrate [-d] [-b] [-i] @var{uri} |
70fcbbe7 | 912 | @findex migrate |
2313086a | 913 | Migrate to @var{uri} (using -d to not wait for completion). |
fbc3d96c LS |
914 | -b for migration with full copy of disk |
915 | -i for migration with incremental copy of disk (base image is shared) | |
2313086a BS |
916 | ETEXI |
917 | ||
d7f9b689 LC |
918 | { |
919 | .name = "migrate_cancel", | |
920 | .args_type = "", | |
d7f9b689 LC |
921 | .params = "", |
922 | .help = "cancel the current VM migration", | |
2b9e3576 | 923 | .cmd = hmp_migrate_cancel, |
d7f9b689 LC |
924 | }, |
925 | ||
2313086a BS |
926 | STEXI |
927 | @item migrate_cancel | |
70fcbbe7 | 928 | @findex migrate_cancel |
2313086a | 929 | Cancel the current VM migration. |
94ae12cb | 930 | ETEXI |
9e1ba4cc | 931 | |
94ae12cb DDAG |
932 | { |
933 | .name = "migrate_continue", | |
934 | .args_type = "state:s", | |
935 | .params = "state", | |
936 | .help = "Continue migration from the given paused state", | |
937 | .cmd = hmp_migrate_continue, | |
938 | }, | |
939 | STEXI | |
940 | @item migrate_continue @var{state} | |
941 | @findex migrate_continue | |
942 | Continue migration from the paused state @var{state} | |
bf1ae1f4 DDAG |
943 | ETEXI |
944 | ||
945 | { | |
946 | .name = "migrate_incoming", | |
947 | .args_type = "uri:s", | |
948 | .params = "uri", | |
949 | .help = "Continue an incoming migration from an -incoming defer", | |
2b9e3576 | 950 | .cmd = hmp_migrate_incoming, |
bf1ae1f4 DDAG |
951 | }, |
952 | ||
953 | STEXI | |
954 | @item migrate_incoming @var{uri} | |
955 | @findex migrate_incoming | |
956 | Continue an incoming migration using the @var{uri} (that has the same syntax | |
957 | as the -incoming option). | |
958 | ||
9e1ba4cc OW |
959 | ETEXI |
960 | ||
961 | { | |
962 | .name = "migrate_set_cache_size", | |
963 | .args_type = "value:o", | |
964 | .params = "value", | |
965 | .help = "set cache size (in bytes) for XBZRLE migrations," | |
966 | "the cache size will be rounded down to the nearest " | |
967 | "power of 2.\n" | |
968 | "The cache size affects the number of cache misses." | |
969 | "In case of a high cache miss ratio you need to increase" | |
970 | " the cache size", | |
2b9e3576 | 971 | .cmd = hmp_migrate_set_cache_size, |
9e1ba4cc OW |
972 | }, |
973 | ||
974 | STEXI | |
975 | @item migrate_set_cache_size @var{value} | |
976 | @findex migrate_set_cache_size | |
977 | Set cache size to @var{value} (in bytes) for xbzrle migrations. | |
2313086a BS |
978 | ETEXI |
979 | ||
d7f9b689 LC |
980 | { |
981 | .name = "migrate_set_speed", | |
ed3d4a80 | 982 | .args_type = "value:o", |
d7f9b689 | 983 | .params = "value", |
ed3d4a80 JS |
984 | .help = "set maximum speed (in bytes) for migrations. " |
985 | "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T", | |
2b9e3576 | 986 | .cmd = hmp_migrate_set_speed, |
d7f9b689 LC |
987 | }, |
988 | ||
2313086a BS |
989 | STEXI |
990 | @item migrate_set_speed @var{value} | |
70fcbbe7 | 991 | @findex migrate_set_speed |
2313086a | 992 | Set maximum speed to @var{value} (in bytes) for migrations. |
2ea42952 GC |
993 | ETEXI |
994 | ||
d7f9b689 LC |
995 | { |
996 | .name = "migrate_set_downtime", | |
b0fbf7d3 | 997 | .args_type = "value:T", |
d7f9b689 LC |
998 | .params = "value", |
999 | .help = "set maximum tolerated downtime (in seconds) for migrations", | |
2b9e3576 | 1000 | .cmd = hmp_migrate_set_downtime, |
d7f9b689 | 1001 | }, |
2ea42952 GC |
1002 | |
1003 | STEXI | |
1004 | @item migrate_set_downtime @var{second} | |
70fcbbe7 | 1005 | @findex migrate_set_downtime |
2ea42952 | 1006 | Set maximum tolerated downtime (in seconds) for migration. |
00458433 OW |
1007 | ETEXI |
1008 | ||
1009 | { | |
1010 | .name = "migrate_set_capability", | |
1011 | .args_type = "capability:s,state:b", | |
1012 | .params = "capability state", | |
1013 | .help = "Enable/Disable the usage of a capability for migration", | |
2b9e3576 | 1014 | .cmd = hmp_migrate_set_capability, |
c68a0409 | 1015 | .command_completion = migrate_set_capability_completion, |
00458433 OW |
1016 | }, |
1017 | ||
1018 | STEXI | |
1019 | @item migrate_set_capability @var{capability} @var{state} | |
1020 | @findex migrate_set_capability | |
1021 | Enable/Disable the usage of a capability @var{capability} for migration. | |
50e9a629 LL |
1022 | ETEXI |
1023 | ||
1024 | { | |
1025 | .name = "migrate_set_parameter", | |
69ef1f36 | 1026 | .args_type = "parameter:s,value:s", |
50e9a629 LL |
1027 | .params = "parameter value", |
1028 | .help = "Set the parameter for migration", | |
2b9e3576 | 1029 | .cmd = hmp_migrate_set_parameter, |
50e9a629 LL |
1030 | .command_completion = migrate_set_parameter_completion, |
1031 | }, | |
1032 | ||
1033 | STEXI | |
1034 | @item migrate_set_parameter @var{parameter} @var{value} | |
1035 | @findex migrate_set_parameter | |
1036 | Set the parameter @var{parameter} for migration. | |
4886a1bc DDAG |
1037 | ETEXI |
1038 | ||
1039 | { | |
1040 | .name = "migrate_start_postcopy", | |
1041 | .args_type = "", | |
1042 | .params = "", | |
a54d340b | 1043 | .help = "Followup to a migration command to switch the migration" |
32c3db5b | 1044 | " to postcopy mode. The postcopy-ram capability must " |
c2eb7f21 GK |
1045 | "be set on both source and destination before the " |
1046 | "original migration command .", | |
2b9e3576 | 1047 | .cmd = hmp_migrate_start_postcopy, |
4886a1bc DDAG |
1048 | }, |
1049 | ||
1050 | STEXI | |
1051 | @item migrate_start_postcopy | |
1052 | @findex migrate_start_postcopy | |
1053 | Switch in-progress migration to postcopy mode. Ignored after the end of | |
1054 | migration (or once already in postcopy). | |
d89e666e HZ |
1055 | ETEXI |
1056 | ||
1057 | { | |
1058 | .name = "x_colo_lost_heartbeat", | |
1059 | .args_type = "", | |
1060 | .params = "", | |
1061 | .help = "Tell COLO that heartbeat is lost,\n\t\t\t" | |
1062 | "a failover or takeover is needed.", | |
1063 | .cmd = hmp_x_colo_lost_heartbeat, | |
1064 | }, | |
1065 | ||
1066 | STEXI | |
1067 | @item x_colo_lost_heartbeat | |
1068 | @findex x_colo_lost_heartbeat | |
1069 | Tell COLO that heartbeat is lost, a failover or takeover is needed. | |
f8882568 JS |
1070 | ETEXI |
1071 | ||
1072 | { | |
2ea720db JS |
1073 | .name = "client_migrate_info", |
1074 | .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?", | |
1075 | .params = "protocol hostname port tls-port cert-subject", | |
13cadefb | 1076 | .help = "set migration information for remote display", |
2b9e3576 | 1077 | .cmd = hmp_client_migrate_info, |
f8882568 JS |
1078 | }, |
1079 | ||
e866e239 GH |
1080 | STEXI |
1081 | @item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject} | |
1082 | @findex client_migrate_info | |
13cadefb MA |
1083 | Set migration information for remote display. This makes the server |
1084 | ask the client to automatically reconnect using the new parameters | |
1085 | once migration finished successfully. Only implemented for SPICE. | |
e866e239 GH |
1086 | ETEXI |
1087 | ||
783e9b48 WC |
1088 | { |
1089 | .name = "dump-guest-memory", | |
228de9cf PX |
1090 | .args_type = "paging:-p,detach:-d,zlib:-z,lzo:-l,snappy:-s,filename:F,begin:i?,length:i?", |
1091 | .params = "[-p] [-d] [-z|-l|-s] filename [begin length]", | |
c20499d9 QN |
1092 | .help = "dump guest memory into file 'filename'.\n\t\t\t" |
1093 | "-p: do paging to get guest's memory mapping.\n\t\t\t" | |
228de9cf | 1094 | "-d: return immediately (do not wait for completion).\n\t\t\t" |
1b7a0f75 QN |
1095 | "-z: dump in kdump-compressed format, with zlib compression.\n\t\t\t" |
1096 | "-l: dump in kdump-compressed format, with lzo compression.\n\t\t\t" | |
1097 | "-s: dump in kdump-compressed format, with snappy compression.\n\t\t\t" | |
c20499d9 QN |
1098 | "begin: the starting physical address.\n\t\t\t" |
1099 | "length: the memory size, in bytes.", | |
2b9e3576 | 1100 | .cmd = hmp_dump_guest_memory, |
783e9b48 WC |
1101 | }, |
1102 | ||
1103 | ||
1104 | STEXI | |
c20499d9 | 1105 | @item dump-guest-memory [-p] @var{filename} @var{begin} @var{length} |
1b7a0f75 | 1106 | @item dump-guest-memory [-z|-l|-s] @var{filename} |
783e9b48 WC |
1107 | @findex dump-guest-memory |
1108 | Dump guest memory to @var{protocol}. The file can be processed with crash or | |
1b7a0f75 | 1109 | gdb. Without -z|-l|-s, the dump format is ELF. |
c20499d9 | 1110 | -p: do paging to get guest's memory mapping. |
1b7a0f75 QN |
1111 | -z: dump in kdump-compressed format, with zlib compression. |
1112 | -l: dump in kdump-compressed format, with lzo compression. | |
1113 | -s: dump in kdump-compressed format, with snappy compression. | |
c20499d9 | 1114 | filename: dump file name. |
783e9b48 | 1115 | begin: the starting physical address. It's optional, and should be |
c20499d9 | 1116 | specified together with length. |
783e9b48 | 1117 | length: the memory size, in bytes. It's optional, and should be specified |
c20499d9 | 1118 | together with begin. |
783e9b48 | 1119 | ETEXI |
783e9b48 | 1120 | |
a4538a5c JH |
1121 | #if defined(TARGET_S390X) |
1122 | { | |
1123 | .name = "dump-skeys", | |
1124 | .args_type = "filename:F", | |
1125 | .params = "", | |
1126 | .help = "Save guest storage keys into file 'filename'.\n", | |
2b9e3576 | 1127 | .cmd = hmp_dump_skeys, |
a4538a5c JH |
1128 | }, |
1129 | #endif | |
1130 | ||
1131 | STEXI | |
1132 | @item dump-skeys @var{filename} | |
1133 | @findex dump-skeys | |
1134 | Save guest storage keys to a file. | |
f860d497 CI |
1135 | ETEXI |
1136 | ||
1137 | #if defined(TARGET_S390X) | |
1138 | { | |
1139 | .name = "migration_mode", | |
1140 | .args_type = "mode:i", | |
1141 | .params = "mode", | |
1142 | .help = "Enables or disables migration mode\n", | |
1143 | .cmd = hmp_migrationmode, | |
1144 | }, | |
1145 | #endif | |
1146 | ||
1147 | STEXI | |
1148 | @item migration_mode @var{mode} | |
1149 | @findex migration_mode | |
1150 | Enables or disables migration mode. | |
a4538a5c JH |
1151 | ETEXI |
1152 | ||
e866e239 | 1153 | { |
2ea720db | 1154 | .name = "snapshot_blkdev", |
6cc2a415 PB |
1155 | .args_type = "reuse:-n,device:B,snapshot-file:s?,format:s?", |
1156 | .params = "[-n] device [new-image-file] [format]", | |
2ea720db JS |
1157 | .help = "initiates a live snapshot\n\t\t\t" |
1158 | "of device. If a new image file is specified, the\n\t\t\t" | |
1159 | "new image file will become the new root image.\n\t\t\t" | |
1160 | "If format is specified, the snapshot file will\n\t\t\t" | |
775ca88e | 1161 | "be created in that format.\n\t\t\t" |
6cc2a415 PB |
1162 | "The default format is qcow2. The -n flag requests QEMU\n\t\t\t" |
1163 | "to reuse the image found in new-image-file, instead of\n\t\t\t" | |
1164 | "recreating it from scratch.", | |
2b9e3576 | 1165 | .cmd = hmp_snapshot_blkdev, |
e866e239 GH |
1166 | }, |
1167 | ||
f8882568 JS |
1168 | STEXI |
1169 | @item snapshot_blkdev | |
1170 | @findex snapshot_blkdev | |
1171 | Snapshot device, using snapshot file as target if provided | |
775ca88e WX |
1172 | ETEXI |
1173 | ||
1174 | { | |
1175 | .name = "snapshot_blkdev_internal", | |
1176 | .args_type = "device:B,name:s", | |
1177 | .params = "device name", | |
1178 | .help = "take an internal snapshot of device.\n\t\t\t" | |
1179 | "The format of the image used by device must\n\t\t\t" | |
1180 | "support it, such as qcow2.\n\t\t\t", | |
2b9e3576 | 1181 | .cmd = hmp_snapshot_blkdev_internal, |
775ca88e WX |
1182 | }, |
1183 | ||
1184 | STEXI | |
1185 | @item snapshot_blkdev_internal | |
1186 | @findex snapshot_blkdev_internal | |
1187 | Take an internal snapshot on device if it support | |
7a4ed2ee WX |
1188 | ETEXI |
1189 | ||
1190 | { | |
1191 | .name = "snapshot_delete_blkdev_internal", | |
1192 | .args_type = "device:B,name:s,id:s?", | |
1193 | .params = "device name [id]", | |
1194 | .help = "delete an internal snapshot of device.\n\t\t\t" | |
1195 | "If id is specified, qemu will try delete\n\t\t\t" | |
1196 | "the snapshot matching both id and name.\n\t\t\t" | |
1197 | "The format of the image used by device must\n\t\t\t" | |
1198 | "support it, such as qcow2.\n\t\t\t", | |
2b9e3576 | 1199 | .cmd = hmp_snapshot_delete_blkdev_internal, |
7a4ed2ee WX |
1200 | }, |
1201 | ||
1202 | STEXI | |
1203 | @item snapshot_delete_blkdev_internal | |
1204 | @findex snapshot_delete_blkdev_internal | |
1205 | Delete an internal snapshot on device if it support | |
d9b902db PB |
1206 | ETEXI |
1207 | ||
1208 | { | |
1209 | .name = "drive_mirror", | |
1210 | .args_type = "reuse:-n,full:-f,device:B,target:s,format:s?", | |
1211 | .params = "[-n] [-f] device target [format]", | |
1212 | .help = "initiates live storage\n\t\t\t" | |
1213 | "migration for a device. The device's contents are\n\t\t\t" | |
1214 | "copied to the new image file, including data that\n\t\t\t" | |
1215 | "is written after the command is started.\n\t\t\t" | |
1216 | "The -n flag requests QEMU to reuse the image found\n\t\t\t" | |
1217 | "in new-image-file, instead of recreating it from scratch.\n\t\t\t" | |
1218 | "The -f flag requests QEMU to copy the whole disk,\n\t\t\t" | |
1219 | "so that the result does not need a backing file.\n\t\t\t", | |
2b9e3576 | 1220 | .cmd = hmp_drive_mirror, |
d9b902db PB |
1221 | }, |
1222 | STEXI | |
1223 | @item drive_mirror | |
1224 | @findex drive_mirror | |
1225 | Start mirroring a block device's writes to a new destination, | |
1226 | using the specified target. | |
de90930a SH |
1227 | ETEXI |
1228 | ||
1229 | { | |
1230 | .name = "drive_backup", | |
13b9414b PB |
1231 | .args_type = "reuse:-n,full:-f,compress:-c,device:B,target:s,format:s?", |
1232 | .params = "[-n] [-f] [-c] device target [format]", | |
de90930a SH |
1233 | .help = "initiates a point-in-time\n\t\t\t" |
1234 | "copy for a device. The device's contents are\n\t\t\t" | |
1235 | "copied to the new image file, excluding data that\n\t\t\t" | |
1236 | "is written after the command is started.\n\t\t\t" | |
1237 | "The -n flag requests QEMU to reuse the image found\n\t\t\t" | |
1238 | "in new-image-file, instead of recreating it from scratch.\n\t\t\t" | |
1239 | "The -f flag requests QEMU to copy the whole disk,\n\t\t\t" | |
13b9414b PB |
1240 | "so that the result does not need a backing file.\n\t\t\t" |
1241 | "The -c flag requests QEMU to compress backup data\n\t\t\t" | |
1242 | "(if the target format supports it).\n\t\t\t", | |
2b9e3576 | 1243 | .cmd = hmp_drive_backup, |
de90930a SH |
1244 | }, |
1245 | STEXI | |
1246 | @item drive_backup | |
1247 | @findex drive_backup | |
1248 | Start a point-in-time copy of a block device to a specificed target. | |
2313086a BS |
1249 | ETEXI |
1250 | ||
d7f9b689 LC |
1251 | { |
1252 | .name = "drive_add", | |
abb21ac3 KW |
1253 | .args_type = "node:-n,pci_addr:s,opts:s", |
1254 | .params = "[-n] [[<domain>:]<bus>:]<slot>\n" | |
d7f9b689 | 1255 | "[file=file][,if=type][,bus=n]\n" |
fb0490f6 | 1256 | "[,unit=m][,media=d][,index=i]\n" |
d7f9b689 | 1257 | "[,cyls=c,heads=h,secs=s[,trans=t]]\n" |
fb0490f6 SH |
1258 | "[,snapshot=on|off][,cache=on|off]\n" |
1259 | "[,readonly=on|off][,copy-on-read=on|off]", | |
d7f9b689 | 1260 | .help = "add drive to PCI storage controller", |
2b9e3576 | 1261 | .cmd = hmp_drive_add, |
d7f9b689 | 1262 | }, |
d7f9b689 | 1263 | |
2313086a BS |
1264 | STEXI |
1265 | @item drive_add | |
70fcbbe7 | 1266 | @findex drive_add |
2313086a | 1267 | Add drive to PCI storage controller. |
2ae63bda IY |
1268 | ETEXI |
1269 | ||
1270 | { | |
1271 | .name = "pcie_aer_inject_error", | |
1272 | .args_type = "advisory_non_fatal:-a,correctable:-c," | |
1273 | "id:s,error_status:s," | |
1274 | "header0:i?,header1:i?,header2:i?,header3:i?," | |
1275 | "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?", | |
1276 | .params = "[-a] [-c] id " | |
1277 | "<error_status> [<tlp header> [<tlp header prefix>]]", | |
1278 | .help = "inject pcie aer error\n\t\t\t" | |
1279 | " -a for advisory non fatal error\n\t\t\t" | |
1280 | " -c for correctable error\n\t\t\t" | |
1281 | "<id> = qdev device id\n\t\t\t" | |
1282 | "<error_status> = error string or 32bit\n\t\t\t" | |
1283 | "<tlb header> = 32bit x 4\n\t\t\t" | |
1284 | "<tlb header prefix> = 32bit x 4", | |
2b9e3576 | 1285 | .cmd = hmp_pcie_aer_inject_error, |
2ae63bda IY |
1286 | }, |
1287 | ||
1288 | STEXI | |
1289 | @item pcie_aer_inject_error | |
1290 | @findex pcie_aer_inject_error | |
1291 | Inject PCIe AER error | |
ae82d324 MA |
1292 | ETEXI |
1293 | ||
1294 | { | |
1295 | .name = "netdev_add", | |
1296 | .args_type = "netdev:O", | |
03ce5744 | 1297 | .params = "[user|tap|socket|vde|bridge|hubport|netmap|vhost-user],id=str[,prop=value][,...]", |
ae82d324 | 1298 | .help = "add host network device", |
2b9e3576 | 1299 | .cmd = hmp_netdev_add, |
b162b49a | 1300 | .command_completion = netdev_add_completion, |
ae82d324 MA |
1301 | }, |
1302 | ||
1303 | STEXI | |
1304 | @item netdev_add | |
1305 | @findex netdev_add | |
1306 | Add host network device. | |
1307 | ETEXI | |
1308 | ||
1309 | { | |
1310 | .name = "netdev_del", | |
1311 | .args_type = "id:s", | |
1312 | .params = "id", | |
1313 | .help = "remove host network device", | |
2b9e3576 | 1314 | .cmd = hmp_netdev_del, |
11b389f2 | 1315 | .command_completion = netdev_del_completion, |
ae82d324 MA |
1316 | }, |
1317 | ||
1318 | STEXI | |
1319 | @item netdev_del | |
1320 | @findex netdev_del | |
1321 | Remove host network device. | |
cff8b2c6 PB |
1322 | ETEXI |
1323 | ||
1324 | { | |
1325 | .name = "object_add", | |
1326 | .args_type = "object:O", | |
1327 | .params = "[qom-type=]type,id=str[,prop=value][,...]", | |
1328 | .help = "create QOM object", | |
2b9e3576 | 1329 | .cmd = hmp_object_add, |
bfa40f77 | 1330 | .command_completion = object_add_completion, |
cff8b2c6 PB |
1331 | }, |
1332 | ||
1333 | STEXI | |
1334 | @item object_add | |
1335 | @findex object_add | |
1336 | Create QOM object. | |
ab2d0531 PB |
1337 | ETEXI |
1338 | ||
1339 | { | |
1340 | .name = "object_del", | |
1341 | .args_type = "id:s", | |
1342 | .params = "id", | |
1343 | .help = "destroy QOM object", | |
2b9e3576 | 1344 | .cmd = hmp_object_del, |
bfa40f77 | 1345 | .command_completion = object_del_completion, |
ab2d0531 PB |
1346 | }, |
1347 | ||
1348 | STEXI | |
1349 | @item object_del | |
1350 | @findex object_del | |
1351 | Destroy QOM object. | |
2313086a BS |
1352 | ETEXI |
1353 | ||
1354 | #ifdef CONFIG_SLIRP | |
d7f9b689 LC |
1355 | { |
1356 | .name = "hostfwd_add", | |
1357 | .args_type = "arg1:s,arg2:s?,arg3:s?", | |
93653066 | 1358 | .params = "[hub_id name]|[netdev_id] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport", |
d7f9b689 | 1359 | .help = "redirect TCP or UDP connections from host to guest (requires -net user)", |
2b9e3576 | 1360 | .cmd = hmp_hostfwd_add, |
d7f9b689 | 1361 | }, |
21413d68 MA |
1362 | #endif |
1363 | STEXI | |
1364 | @item hostfwd_add | |
1365 | @findex hostfwd_add | |
1366 | Redirect TCP or UDP connections from host to guest (requires -net user). | |
1367 | ETEXI | |
d7f9b689 | 1368 | |
21413d68 | 1369 | #ifdef CONFIG_SLIRP |
d7f9b689 LC |
1370 | { |
1371 | .name = "hostfwd_remove", | |
1372 | .args_type = "arg1:s,arg2:s?,arg3:s?", | |
93653066 | 1373 | .params = "[hub_id name]|[netdev_id] [tcp|udp]:[hostaddr]:hostport", |
d7f9b689 | 1374 | .help = "remove host-to-guest TCP or UDP redirection", |
2b9e3576 | 1375 | .cmd = hmp_hostfwd_remove, |
d7f9b689 LC |
1376 | }, |
1377 | ||
2313086a BS |
1378 | #endif |
1379 | STEXI | |
21413d68 MA |
1380 | @item hostfwd_remove |
1381 | @findex hostfwd_remove | |
1382 | Remove host-to-guest TCP or UDP redirection. | |
2313086a BS |
1383 | ETEXI |
1384 | ||
d7f9b689 LC |
1385 | { |
1386 | .name = "balloon", | |
3b0bd6ec | 1387 | .args_type = "value:M", |
d7f9b689 | 1388 | .params = "target", |
3c05613a | 1389 | .help = "request VM to change its memory allocation (in MB)", |
2b9e3576 | 1390 | .cmd = hmp_balloon, |
d7f9b689 LC |
1391 | }, |
1392 | ||
2313086a BS |
1393 | STEXI |
1394 | @item balloon @var{value} | |
70fcbbe7 | 1395 | @findex balloon |
2313086a BS |
1396 | Request VM to change its memory allocation to @var{value} (in MB). |
1397 | ETEXI | |
1398 | ||
d7f9b689 LC |
1399 | { |
1400 | .name = "set_link", | |
c9b26a4c MA |
1401 | .args_type = "name:s,up:b", |
1402 | .params = "name on|off", | |
d7f9b689 | 1403 | .help = "change the link status of a network adapter", |
2b9e3576 | 1404 | .cmd = hmp_set_link, |
40d19394 | 1405 | .command_completion = set_link_completion, |
d7f9b689 LC |
1406 | }, |
1407 | ||
2313086a | 1408 | STEXI |
c9b26a4c | 1409 | @item set_link @var{name} [on|off] |
70fcbbe7 | 1410 | @findex set_link |
c9b26a4c | 1411 | Switch link @var{name} on (i.e. up) or off (i.e. down). |
2313086a BS |
1412 | ETEXI |
1413 | ||
d7f9b689 LC |
1414 | { |
1415 | .name = "watchdog_action", | |
1416 | .args_type = "action:s", | |
d7f9b689 LC |
1417 | .params = "[reset|shutdown|poweroff|pause|debug|none]", |
1418 | .help = "change watchdog action", | |
2b9e3576 | 1419 | .cmd = hmp_watchdog_action, |
d0ece345 | 1420 | .command_completion = watchdog_action_completion, |
d7f9b689 LC |
1421 | }, |
1422 | ||
2313086a BS |
1423 | STEXI |
1424 | @item watchdog_action | |
70fcbbe7 | 1425 | @findex watchdog_action |
2313086a BS |
1426 | Change watchdog action. |
1427 | ETEXI | |
1428 | ||
d7f9b689 LC |
1429 | { |
1430 | .name = "acl_show", | |
1431 | .args_type = "aclname:s", | |
d7f9b689 LC |
1432 | .params = "aclname", |
1433 | .help = "list rules in the access control list", | |
2b9e3576 | 1434 | .cmd = hmp_acl_show, |
d7f9b689 LC |
1435 | }, |
1436 | ||
2313086a | 1437 | STEXI |
15dfcd45 | 1438 | @item acl_show @var{aclname} |
70fcbbe7 | 1439 | @findex acl_show |
15dfcd45 JK |
1440 | List all the matching rules in the access control list, and the default |
1441 | policy. There are currently two named access control lists, | |
1442 | @var{vnc.x509dname} and @var{vnc.username} matching on the x509 client | |
1443 | certificate distinguished name, and SASL username respectively. | |
1444 | ETEXI | |
2313086a | 1445 | |
d7f9b689 LC |
1446 | { |
1447 | .name = "acl_policy", | |
1448 | .args_type = "aclname:s,policy:s", | |
d7f9b689 LC |
1449 | .params = "aclname allow|deny", |
1450 | .help = "set default access control list policy", | |
2b9e3576 | 1451 | .cmd = hmp_acl_policy, |
d7f9b689 LC |
1452 | }, |
1453 | ||
15dfcd45 | 1454 | STEXI |
cbbfacc6 | 1455 | @item acl_policy @var{aclname} @code{allow|deny} |
70fcbbe7 | 1456 | @findex acl_policy |
15dfcd45 | 1457 | Set the default access control list policy, used in the event that |
2313086a | 1458 | none of the explicit rules match. The default policy at startup is |
15dfcd45 JK |
1459 | always @code{deny}. |
1460 | ETEXI | |
1461 | ||
d7f9b689 LC |
1462 | { |
1463 | .name = "acl_add", | |
1464 | .args_type = "aclname:s,match:s,policy:s,index:i?", | |
d7f9b689 LC |
1465 | .params = "aclname match allow|deny [index]", |
1466 | .help = "add a match rule to the access control list", | |
2b9e3576 | 1467 | .cmd = hmp_acl_add, |
d7f9b689 LC |
1468 | }, |
1469 | ||
15dfcd45 | 1470 | STEXI |
0e4aec98 MA |
1471 | @item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}] |
1472 | @findex acl_add | |
15dfcd45 JK |
1473 | Add a match rule to the access control list, allowing or denying access. |
1474 | The match will normally be an exact username or x509 distinguished name, | |
1475 | but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to | |
1476 | allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will | |
2313086a | 1477 | normally be appended to the end of the ACL, but can be inserted |
15dfcd45 JK |
1478 | earlier in the list if the optional @var{index} parameter is supplied. |
1479 | ETEXI | |
1480 | ||
d7f9b689 LC |
1481 | { |
1482 | .name = "acl_remove", | |
1483 | .args_type = "aclname:s,match:s", | |
d7f9b689 LC |
1484 | .params = "aclname match", |
1485 | .help = "remove a match rule from the access control list", | |
2b9e3576 | 1486 | .cmd = hmp_acl_remove, |
d7f9b689 LC |
1487 | }, |
1488 | ||
15dfcd45 JK |
1489 | STEXI |
1490 | @item acl_remove @var{aclname} @var{match} | |
70fcbbe7 | 1491 | @findex acl_remove |
15dfcd45 JK |
1492 | Remove the specified match rule from the access control list. |
1493 | ETEXI | |
1494 | ||
d7f9b689 LC |
1495 | { |
1496 | .name = "acl_reset", | |
1497 | .args_type = "aclname:s", | |
d7f9b689 LC |
1498 | .params = "aclname", |
1499 | .help = "reset the access control list", | |
2b9e3576 | 1500 | .cmd = hmp_acl_reset, |
d7f9b689 LC |
1501 | }, |
1502 | ||
15dfcd45 | 1503 | STEXI |
0e4aec98 MA |
1504 | @item acl_reset @var{aclname} |
1505 | @findex acl_reset | |
15dfcd45 | 1506 | Remove all matches from the access control list, and set the default |
2313086a | 1507 | policy back to @code{deny}. |
2313086a BS |
1508 | ETEXI |
1509 | ||
4057725f PB |
1510 | { |
1511 | .name = "nbd_server_start", | |
1512 | .args_type = "all:-a,writable:-w,uri:s", | |
1513 | .params = "nbd_server_start [-a] [-w] host:port", | |
1514 | .help = "serve block devices on the given host and port", | |
2b9e3576 | 1515 | .cmd = hmp_nbd_server_start, |
4057725f PB |
1516 | }, |
1517 | STEXI | |
1518 | @item nbd_server_start @var{host}:@var{port} | |
1519 | @findex nbd_server_start | |
1520 | Start an NBD server on the given host and/or port. If the @option{-a} | |
1521 | option is included, all of the virtual machine's block devices that | |
1522 | have an inserted media on them are automatically exported; in this case, | |
1523 | the @option{-w} option makes the devices writable too. | |
1524 | ETEXI | |
1525 | ||
1526 | { | |
1527 | .name = "nbd_server_add", | |
dba49323 EB |
1528 | .args_type = "writable:-w,device:B,name:s?", |
1529 | .params = "nbd_server_add [-w] device [name]", | |
4057725f | 1530 | .help = "export a block device via NBD", |
2b9e3576 | 1531 | .cmd = hmp_nbd_server_add, |
4057725f PB |
1532 | }, |
1533 | STEXI | |
dba49323 | 1534 | @item nbd_server_add @var{device} [ @var{name} ] |
4057725f PB |
1535 | @findex nbd_server_add |
1536 | Export a block device through QEMU's NBD server, which must be started | |
1537 | beforehand with @command{nbd_server_start}. The @option{-w} option makes the | |
dba49323 EB |
1538 | exported device writable too. The export name is controlled by @var{name}, |
1539 | defaulting to @var{device}. | |
08fb10a7 EB |
1540 | ETEXI |
1541 | ||
1542 | { | |
1543 | .name = "nbd_server_remove", | |
1544 | .args_type = "force:-f,name:s", | |
1545 | .params = "nbd_server_remove [-f] name", | |
1546 | .help = "remove an export previously exposed via NBD", | |
1547 | .cmd = hmp_nbd_server_remove, | |
1548 | }, | |
1549 | STEXI | |
1550 | @item nbd_server_remove [-f] @var{name} | |
1551 | @findex nbd_server_remove | |
1552 | Stop exporting a block device through QEMU's NBD server, which was | |
1553 | previously started with @command{nbd_server_add}. The @option{-f} | |
1554 | option forces the server to drop the export immediately even if | |
1555 | clients are connected; otherwise the command fails unless there are no | |
1556 | clients. | |
4057725f PB |
1557 | ETEXI |
1558 | ||
1559 | { | |
1560 | .name = "nbd_server_stop", | |
1561 | .args_type = "", | |
1562 | .params = "nbd_server_stop", | |
1563 | .help = "stop serving block devices using the NBD protocol", | |
2b9e3576 | 1564 | .cmd = hmp_nbd_server_stop, |
4057725f PB |
1565 | }, |
1566 | STEXI | |
1567 | @item nbd_server_stop | |
1568 | @findex nbd_server_stop | |
1569 | Stop the QEMU embedded NBD server. | |
1570 | ETEXI | |
1571 | ||
1572 | ||
79c4f6b0 | 1573 | #if defined(TARGET_I386) |
d7f9b689 LC |
1574 | |
1575 | { | |
1576 | .name = "mce", | |
31ce5e0c JD |
1577 | .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", |
1578 | .params = "[-b] cpu bank status mcgstatus addr misc", | |
1579 | .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]", | |
2b9e3576 | 1580 | .cmd = hmp_mce, |
d7f9b689 LC |
1581 | }, |
1582 | ||
79c4f6b0 HY |
1583 | #endif |
1584 | STEXI | |
1585 | @item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc} | |
70fcbbe7 | 1586 | @findex mce (x86) |
79c4f6b0 | 1587 | Inject an MCE on the given CPU (x86 only). |
f07918fd MM |
1588 | ETEXI |
1589 | ||
d7f9b689 LC |
1590 | { |
1591 | .name = "getfd", | |
1592 | .args_type = "fdname:s", | |
d7f9b689 LC |
1593 | .params = "getfd name", |
1594 | .help = "receive a file descriptor via SCM rights and assign it a name", | |
2b9e3576 | 1595 | .cmd = hmp_getfd, |
d7f9b689 LC |
1596 | }, |
1597 | ||
f07918fd MM |
1598 | STEXI |
1599 | @item getfd @var{fdname} | |
70fcbbe7 | 1600 | @findex getfd |
f07918fd MM |
1601 | If a file descriptor is passed alongside this command using the SCM_RIGHTS |
1602 | mechanism on unix sockets, it is stored using the name @var{fdname} for | |
1603 | later use by other monitor commands. | |
1604 | ETEXI | |
1605 | ||
d7f9b689 LC |
1606 | { |
1607 | .name = "closefd", | |
1608 | .args_type = "fdname:s", | |
d7f9b689 LC |
1609 | .params = "closefd name", |
1610 | .help = "close a file descriptor previously passed via SCM rights", | |
2b9e3576 | 1611 | .cmd = hmp_closefd, |
d7f9b689 LC |
1612 | }, |
1613 | ||
f07918fd MM |
1614 | STEXI |
1615 | @item closefd @var{fdname} | |
70fcbbe7 | 1616 | @findex closefd |
f07918fd MM |
1617 | Close the file descriptor previously assigned to @var{fdname} using the |
1618 | @code{getfd} command. This is only needed if the file descriptor was never | |
1619 | used by another monitor command. | |
a3a55a2e LC |
1620 | ETEXI |
1621 | ||
1622 | { | |
1623 | .name = "block_passwd", | |
1624 | .args_type = "device:B,password:s", | |
1625 | .params = "block_passwd device password", | |
1626 | .help = "set the password of encrypted block devices", | |
2b9e3576 | 1627 | .cmd = hmp_block_passwd, |
a3a55a2e LC |
1628 | }, |
1629 | ||
727f005e | 1630 | STEXI |
b76d799e MA |
1631 | @item block_passwd @var{device} @var{password} |
1632 | @findex block_passwd | |
1633 | Set the encrypted device @var{device} password to @var{password} | |
c01c214b DB |
1634 | |
1635 | This command is now obsolete and will always return an error since 2.10 | |
727f005e ZYW |
1636 | ETEXI |
1637 | ||
1638 | { | |
1639 | .name = "block_set_io_throttle", | |
1640 | .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l", | |
1641 | .params = "device bps bps_rd bps_wr iops iops_rd iops_wr", | |
1642 | .help = "change I/O throttle limits for a block drive", | |
2b9e3576 | 1643 | .cmd = hmp_block_set_io_throttle, |
727f005e ZYW |
1644 | }, |
1645 | ||
a3a55a2e | 1646 | STEXI |
b76d799e MA |
1647 | @item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr} |
1648 | @findex block_set_io_throttle | |
1649 | Change I/O throttle limits for a block drive to @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr} | |
7572150c GH |
1650 | ETEXI |
1651 | ||
1652 | { | |
1653 | .name = "set_password", | |
1654 | .args_type = "protocol:s,password:s,connected:s?", | |
1655 | .params = "protocol password action-if-connected", | |
1656 | .help = "set spice/vnc password", | |
2b9e3576 | 1657 | .cmd = hmp_set_password, |
7572150c GH |
1658 | }, |
1659 | ||
1660 | STEXI | |
1661 | @item set_password [ vnc | spice ] password [ action-if-connected ] | |
1662 | @findex set_password | |
7572150c GH |
1663 | Change spice/vnc password. Use zero to make the password stay valid |
1664 | forever. @var{action-if-connected} specifies what should happen in | |
1665 | case a connection is established: @var{fail} makes the password change | |
1666 | fail. @var{disconnect} changes the password and disconnects the | |
1667 | client. @var{keep} changes the password and keeps the connection up. | |
1668 | @var{keep} is the default. | |
1669 | ETEXI | |
1670 | ||
1671 | { | |
1672 | .name = "expire_password", | |
1673 | .args_type = "protocol:s,time:s", | |
1674 | .params = "protocol time", | |
1675 | .help = "set spice/vnc password expire-time", | |
2b9e3576 | 1676 | .cmd = hmp_expire_password, |
7572150c GH |
1677 | }, |
1678 | ||
1679 | STEXI | |
1680 | @item expire_password [ vnc | spice ] expire-time | |
1681 | @findex expire_password | |
7572150c GH |
1682 | Specify when a password for spice/vnc becomes |
1683 | invalid. @var{expire-time} accepts: | |
1684 | ||
1685 | @table @var | |
1686 | @item now | |
1687 | Invalidate password instantly. | |
1688 | ||
1689 | @item never | |
1690 | Password stays valid forever. | |
1691 | ||
1692 | @item +nsec | |
1693 | Password stays valid for @var{nsec} seconds starting now. | |
1694 | ||
1695 | @item nsec | |
1696 | Password is invalidated at the given time. @var{nsec} are the seconds | |
1697 | passed since 1970, i.e. unix epoch. | |
1698 | ||
1699 | @end table | |
f1088908 GH |
1700 | ETEXI |
1701 | ||
46920825 GH |
1702 | { |
1703 | .name = "chardev-add", | |
1704 | .args_type = "args:s", | |
1705 | .params = "args", | |
1706 | .help = "add chardev", | |
2b9e3576 | 1707 | .cmd = hmp_chardev_add, |
13e315da | 1708 | .command_completion = chardev_add_completion, |
46920825 GH |
1709 | }, |
1710 | ||
1711 | STEXI | |
b76d799e MA |
1712 | @item chardev-add args |
1713 | @findex chardev-add | |
75b60160 AN |
1714 | chardev-add accepts the same parameters as the -chardev command line switch. |
1715 | ||
1716 | ETEXI | |
1717 | ||
1718 | { | |
1719 | .name = "chardev-change", | |
1720 | .args_type = "id:s,args:s", | |
1721 | .params = "id args", | |
1722 | .help = "change chardev", | |
1723 | .cmd = hmp_chardev_change, | |
1724 | }, | |
1725 | ||
1726 | STEXI | |
1727 | @item chardev-change args | |
1728 | @findex chardev-change | |
1729 | chardev-change accepts existing chardev @var{id} and then the same arguments | |
1730 | as the -chardev command line switch (except for "id"). | |
46920825 GH |
1731 | |
1732 | ETEXI | |
1733 | ||
1734 | { | |
1735 | .name = "chardev-remove", | |
1736 | .args_type = "id:s", | |
1737 | .params = "id", | |
1738 | .help = "remove chardev", | |
2b9e3576 | 1739 | .cmd = hmp_chardev_remove, |
6297d9a2 | 1740 | .command_completion = chardev_remove_completion, |
46920825 GH |
1741 | }, |
1742 | ||
1743 | STEXI | |
b76d799e MA |
1744 | @item chardev-remove id |
1745 | @findex chardev-remove | |
46920825 GH |
1746 | Removes the chardev @var{id}. |
1747 | ||
bd1d5ad9 SF |
1748 | ETEXI |
1749 | ||
1750 | { | |
1751 | .name = "chardev-send-break", | |
1752 | .args_type = "id:s", | |
1753 | .params = "id", | |
1754 | .help = "send a break on chardev", | |
1755 | .cmd = hmp_chardev_send_break, | |
1756 | .command_completion = chardev_remove_completion, | |
1757 | }, | |
1758 | ||
1759 | STEXI | |
1760 | @item chardev-send-break id | |
1761 | @findex chardev-send-break | |
1762 | Send a break on the chardev @var{id}. | |
1763 | ||
587da2c3 KW |
1764 | ETEXI |
1765 | ||
1766 | { | |
1767 | .name = "qemu-io", | |
1768 | .args_type = "device:B,command:s", | |
1769 | .params = "[device] \"[command]\"", | |
1770 | .help = "run a qemu-io command on a block device", | |
2b9e3576 | 1771 | .cmd = hmp_qemu_io, |
587da2c3 KW |
1772 | }, |
1773 | ||
1774 | STEXI | |
1775 | @item qemu-io @var{device} @var{command} | |
1776 | @findex qemu-io | |
587da2c3 KW |
1777 | Executes a qemu-io command on the given block device. |
1778 | ||
abf23329 JH |
1779 | ETEXI |
1780 | ||
1781 | { | |
1782 | .name = "cpu-add", | |
1783 | .args_type = "id:i", | |
1784 | .params = "id", | |
1785 | .help = "add cpu", | |
2b9e3576 | 1786 | .cmd = hmp_cpu_add, |
abf23329 JH |
1787 | }, |
1788 | ||
1789 | STEXI | |
1790 | @item cpu-add @var{id} | |
b76d799e | 1791 | @findex cpu-add |
abf23329 | 1792 | Add CPU with id @var{id} |
89d7fa9e AF |
1793 | ETEXI |
1794 | ||
1795 | { | |
1796 | .name = "qom-list", | |
1797 | .args_type = "path:s?", | |
1798 | .params = "path", | |
1799 | .help = "list QOM properties", | |
2b9e3576 | 1800 | .cmd = hmp_qom_list, |
89d7fa9e AF |
1801 | }, |
1802 | ||
1803 | STEXI | |
1804 | @item qom-list [@var{path}] | |
1805 | Print QOM properties of object at location @var{path} | |
c0e6ee9e AF |
1806 | ETEXI |
1807 | ||
1808 | { | |
1809 | .name = "qom-set", | |
1810 | .args_type = "path:s,property:s,value:s", | |
1811 | .params = "path property value", | |
1812 | .help = "set QOM property", | |
2b9e3576 | 1813 | .cmd = hmp_qom_set, |
c0e6ee9e AF |
1814 | }, |
1815 | ||
1816 | STEXI | |
1817 | @item qom-set @var{path} @var{property} @var{value} | |
1818 | Set QOM property @var{property} of object at location @var{path} to value @var{value} | |
46920825 | 1819 | ETEXI |
b40292e7 | 1820 | |
33572ece JK |
1821 | { |
1822 | .name = "info", | |
1823 | .args_type = "item:s?", | |
1824 | .params = "[subcommand]", | |
1825 | .help = "show various information about the system state", | |
2b9e3576 MAL |
1826 | .cmd = hmp_info_help, |
1827 | .sub_table = info_cmds, | |
33572ece JK |
1828 | }, |
1829 | ||
70703344 PB |
1830 | STEXI |
1831 | @end table | |
1832 | ETEXI |