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