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