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