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