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