blob: 4610ad4c00c11b2c7fd7ac92eeb6759148b66f23 [file] [log] [blame]
Blue Swirl23130862009-06-06 08:22:04 +00001HXCOMM Use DEFHEADING() to define headings in both help text and texi
2HXCOMM Text between STEXI and ETEXI are copied to texi version and
3HXCOMM discarded from C version
4HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
5HXCOMM monitor commands
6HXCOMM HXCOMM can be used for comments, discarded from both texi and C
7
8STEXI
9@table @option
10ETEXI
11
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030012 {
13 .name = "help|?",
14 .args_type = "name:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030015 .params = "[cmd]",
16 .help = "show the help",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -030017 .mhandler.cmd = do_help_cmd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030018 },
19
Blue Swirl23130862009-06-06 08:22:04 +000020STEXI
21@item help or ? [@var{cmd}]
22Show the help for all commands or just for command @var{cmd}.
23ETEXI
24
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030025 {
26 .name = "commit",
27 .args_type = "device:B",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030028 .params = "device|all",
29 .help = "commit changes to the disk images (if -snapshot is used) or backing files",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -030030 .mhandler.cmd = do_commit,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030031 },
32
Blue Swirl23130862009-06-06 08:22:04 +000033STEXI
34@item commit
35Commit changes to the disk images (if -snapshot is used) or backing files.
36ETEXI
37
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030038 {
39 .name = "info",
40 .args_type = "item:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030041 .params = "[subcommand]",
42 .help = "show various information about the system state",
Luiz Capitulino13c74252009-10-07 13:41:55 -030043 .user_print = monitor_user_noop,
44 .mhandler.cmd_new = do_info,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030045 },
46
Blue Swirl23130862009-06-06 08:22:04 +000047STEXI
48@item info @var{subcommand}
49Show various information about the system state.
50
51@table @option
52@item info version
53show the version of QEMU
54@item info network
55show the various VLANs and the associated devices
56@item info chardev
57show the character devices
58@item info block
59show the block devices
60@item info block
61show block device statistics
62@item info registers
63show the cpu registers
64@item info cpus
65show infos for each CPU
66@item info history
67show the command line history
68@item info irq
69show the interrupts statistics (if available)
70@item info pic
71show i8259 (PIC) state
72@item info pci
73show emulated PCI device info
74@item info tlb
75show virtual to physical memory mappings (i386 only)
76@item info mem
77show the active virtual memory mappings (i386 only)
78@item info hpet
79show state of HPET (i386 only)
Blue Swirl23130862009-06-06 08:22:04 +000080@item info kvm
81show KVM information
82@item info usb
83show USB devices plugged on the virtual USB hub
84@item info usbhost
85show all USB host devices
86@item info profile
87show profiling information
88@item info capture
89show information about active capturing
90@item info snapshots
91show list of VM snapshots
92@item info status
93show the current VM status (running|paused)
94@item info pcmcia
95show guest PCMCIA status
96@item info mice
97show which guest mouse is receiving events
98@item info vnc
99show the vnc server status
100@item info name
101show the current VM name
102@item info uuid
103show the current VM UUID
104@item info cpustats
105show CPU statistics
Jan Kiszka6dbe5532009-06-24 14:42:29 +0200106@item info usernet
107show user network stack connection states
Blue Swirl23130862009-06-06 08:22:04 +0000108@item info migrate
109show migration status
110@item info balloon
111show balloon information
112@item info qtree
113show device tree
114@end table
115ETEXI
116
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300117 {
118 .name = "q|quit",
119 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300120 .params = "",
121 .help = "quit the emulator",
Luiz Capitulinob223f352009-10-07 13:41:56 -0300122 .user_print = monitor_user_noop,
123 .mhandler.cmd_new = do_quit,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300124 },
125
Blue Swirl23130862009-06-06 08:22:04 +0000126STEXI
127@item q or quit
128Quit the emulator.
129ETEXI
130
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300131 {
132 .name = "eject",
133 .args_type = "force:-f,filename:B",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300134 .params = "[-f] device",
135 .help = "eject a removable medium (use -f to force it)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300136 .mhandler.cmd = do_eject,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300137 },
138
Blue Swirl23130862009-06-06 08:22:04 +0000139STEXI
140@item eject [-f] @var{device}
141Eject a removable medium (use -f to force it).
142ETEXI
143
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300144 {
145 .name = "change",
146 .args_type = "device:B,target:F,arg:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300147 .params = "device filename [format]",
148 .help = "change a removable medium, optional format",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300149 .mhandler.cmd = do_change,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300150 },
151
Blue Swirl23130862009-06-06 08:22:04 +0000152STEXI
153@item change @var{device} @var{setting}
154
155Change the configuration of a device.
156
157@table @option
158@item change @var{diskdevice} @var{filename} [@var{format}]
159Change the medium for a removable disk device to point to @var{filename}. eg
160
161@example
162(qemu) change ide1-cd0 /path/to/some.iso
163@end example
164
165@var{format} is optional.
166
167@item change vnc @var{display},@var{options}
168Change the configuration of the VNC server. The valid syntax for @var{display}
169and @var{options} are described at @ref{sec_invocation}. eg
170
171@example
172(qemu) change vnc localhost:1
173@end example
174
175@item change vnc password [@var{password}]
176
177Change the password associated with the VNC server. If the new password is not
178supplied, the monitor will prompt for it to be entered. VNC passwords are only
179significant up to 8 letters. eg
180
181@example
182(qemu) change vnc password
183Password: ********
184@end example
185
186@end table
187ETEXI
188
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300189 {
190 .name = "screendump",
191 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300192 .params = "filename",
193 .help = "save screen into PPM image 'filename'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300194 .mhandler.cmd = do_screen_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300195 },
196
Blue Swirl23130862009-06-06 08:22:04 +0000197STEXI
198@item screendump @var{filename}
199Save screen into PPM image @var{filename}.
200ETEXI
201
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300202 {
203 .name = "logfile",
204 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300205 .params = "filename",
206 .help = "output logs to 'filename'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300207 .mhandler.cmd = do_logfile,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300208 },
209
Blue Swirl23130862009-06-06 08:22:04 +0000210STEXI
211@item logfile @var{filename}
212Output logs to @var{filename}.
213ETEXI
214
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300215 {
216 .name = "log",
217 .args_type = "items:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300218 .params = "item1[,...]",
219 .help = "activate logging of the specified items to '/tmp/qemu.log'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300220 .mhandler.cmd = do_log,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300221 },
222
Blue Swirl23130862009-06-06 08:22:04 +0000223STEXI
224@item log @var{item1}[,...]
225Activate logging of the specified items to @file{/tmp/qemu.log}.
226ETEXI
227
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300228 {
229 .name = "savevm",
230 .args_type = "name:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300231 .params = "[tag|id]",
232 .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300233 .mhandler.cmd = do_savevm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300234 },
235
Blue Swirl23130862009-06-06 08:22:04 +0000236STEXI
237@item savevm [@var{tag}|@var{id}]
238Create a snapshot of the whole virtual machine. If @var{tag} is
239provided, it is used as human readable identifier. If there is already
240a snapshot with the same tag or ID, it is replaced. More info at
241@ref{vm_snapshots}.
242ETEXI
243
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300244 {
245 .name = "loadvm",
246 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300247 .params = "tag|id",
248 .help = "restore a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300249 .mhandler.cmd = do_loadvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300250 },
251
Blue Swirl23130862009-06-06 08:22:04 +0000252STEXI
253@item loadvm @var{tag}|@var{id}
254Set the whole virtual machine to the snapshot identified by the tag
255@var{tag} or the unique snapshot ID @var{id}.
256ETEXI
257
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300258 {
259 .name = "delvm",
260 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300261 .params = "tag|id",
262 .help = "delete a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300263 .mhandler.cmd = do_delvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300264 },
265
Blue Swirl23130862009-06-06 08:22:04 +0000266STEXI
267@item delvm @var{tag}|@var{id}
268Delete the snapshot identified by @var{tag} or @var{id}.
269ETEXI
270
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300271 {
272 .name = "singlestep",
273 .args_type = "option:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300274 .params = "[on|off]",
275 .help = "run emulation in singlestep mode or switch to normal mode",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300276 .mhandler.cmd = do_singlestep,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300277 },
278
Blue Swirl23130862009-06-06 08:22:04 +0000279STEXI
280@item singlestep [off]
281Run the emulation in single step mode.
282If called with option off, the emulation returns to normal mode.
283ETEXI
284
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300285 {
286 .name = "stop",
287 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300288 .params = "",
289 .help = "stop emulation",
Luiz Capitulinoe0c97bd2009-10-07 13:41:57 -0300290 .user_print = monitor_user_noop,
291 .mhandler.cmd_new = do_stop,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300292 },
293
Blue Swirl23130862009-06-06 08:22:04 +0000294STEXI
295@item stop
296Stop emulation.
297ETEXI
298
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300299 {
300 .name = "c|cont",
301 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300302 .params = "",
303 .help = "resume emulation",
Luiz Capitulinoa1f896a2009-10-07 13:42:00 -0300304 .user_print = monitor_user_noop,
305 .mhandler.cmd_new = do_cont,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300306 },
307
Blue Swirl23130862009-06-06 08:22:04 +0000308STEXI
309@item c or cont
310Resume emulation.
311ETEXI
312
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300313 {
314 .name = "gdbserver",
315 .args_type = "device:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300316 .params = "[device]",
317 .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300318 .mhandler.cmd = do_gdbserver,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300319 },
320
Blue Swirl23130862009-06-06 08:22:04 +0000321STEXI
322@item gdbserver [@var{port}]
323Start gdbserver session (default @var{port}=1234)
324ETEXI
325
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300326 {
327 .name = "x",
328 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300329 .params = "/fmt addr",
330 .help = "virtual memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300331 .mhandler.cmd = do_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300332 },
333
Blue Swirl23130862009-06-06 08:22:04 +0000334STEXI
335@item x/fmt @var{addr}
336Virtual memory dump starting at @var{addr}.
337ETEXI
338
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300339 {
340 .name = "xp",
341 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300342 .params = "/fmt addr",
343 .help = "physical memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300344 .mhandler.cmd = do_physical_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300345 },
346
Blue Swirl23130862009-06-06 08:22:04 +0000347STEXI
348@item xp /@var{fmt} @var{addr}
349Physical memory dump starting at @var{addr}.
350
351@var{fmt} is a format which tells the command how to format the
352data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
353
354@table @var
355@item count
356is the number of items to be dumped.
357
358@item format
359can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
360c (char) or i (asm instruction).
361
362@item size
363can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
364@code{h} or @code{w} can be specified with the @code{i} format to
365respectively select 16 or 32 bit code instruction size.
366
367@end table
368
369Examples:
370@itemize
371@item
372Dump 10 instructions at the current instruction pointer:
373@example
374(qemu) x/10i $eip
3750x90107063: ret
3760x90107064: sti
3770x90107065: lea 0x0(%esi,1),%esi
3780x90107069: lea 0x0(%edi,1),%edi
3790x90107070: ret
3800x90107071: jmp 0x90107080
3810x90107073: nop
3820x90107074: nop
3830x90107075: nop
3840x90107076: nop
385@end example
386
387@item
388Dump 80 16 bit values at the start of the video memory.
389@smallexample
390(qemu) xp/80hx 0xb8000
3910x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
3920x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
3930x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
3940x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
3950x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
3960x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
3970x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
3980x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
3990x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4000x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
401@end smallexample
402@end itemize
403ETEXI
404
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300405 {
406 .name = "p|print",
407 .args_type = "fmt:/,val:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300408 .params = "/fmt expr",
409 .help = "print expression value (use $reg for CPU register access)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300410 .mhandler.cmd = do_print,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300411 },
412
Blue Swirl23130862009-06-06 08:22:04 +0000413STEXI
414@item p or print/@var{fmt} @var{expr}
415
416Print expression value. Only the @var{format} part of @var{fmt} is
417used.
418ETEXI
419
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300420 {
421 .name = "i",
422 .args_type = "fmt:/,addr:i,index:i.",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300423 .params = "/fmt addr",
424 .help = "I/O port read",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300425 .mhandler.cmd = do_ioport_read,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300426 },
427
Blue Swirl23130862009-06-06 08:22:04 +0000428STEXI
429Read I/O port.
430ETEXI
431
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300432 {
433 .name = "o",
434 .args_type = "fmt:/,addr:i,val:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300435 .params = "/fmt addr value",
436 .help = "I/O port write",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300437 .mhandler.cmd = do_ioport_write,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300438 },
439
Jan Kiszkaf1147842009-07-14 10:20:11 +0200440STEXI
441Write to I/O port.
442ETEXI
Blue Swirl23130862009-06-06 08:22:04 +0000443
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300444 {
445 .name = "sendkey",
446 .args_type = "string:s,hold_time:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300447 .params = "keys [hold_ms]",
448 .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300449 .mhandler.cmd = do_sendkey,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300450 },
451
Blue Swirl23130862009-06-06 08:22:04 +0000452STEXI
453@item sendkey @var{keys}
454
455Send @var{keys} to the emulator. @var{keys} could be the name of the
456key or @code{#} followed by the raw value in either decimal or hexadecimal
457format. Use @code{-} to press several keys simultaneously. Example:
458@example
459sendkey ctrl-alt-f1
460@end example
461
462This command is useful to send keys that your graphical user interface
463intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
464ETEXI
465
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300466 {
467 .name = "system_reset",
468 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300469 .params = "",
470 .help = "reset the system",
Luiz Capitulinoc80d2592009-10-07 13:41:58 -0300471 .user_print = monitor_user_noop,
472 .mhandler.cmd_new = do_system_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300473 },
474
Blue Swirl23130862009-06-06 08:22:04 +0000475STEXI
476@item system_reset
477
478Reset the system.
479ETEXI
480
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300481 {
482 .name = "system_powerdown",
483 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300484 .params = "",
485 .help = "send system power down event",
Luiz Capitulino43076662009-10-07 13:41:59 -0300486 .user_print = monitor_user_noop,
487 .mhandler.cmd_new = do_system_powerdown,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300488 },
489
Blue Swirl23130862009-06-06 08:22:04 +0000490STEXI
491@item system_powerdown
492
493Power down the system (if supported).
494ETEXI
495
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300496 {
497 .name = "sum",
498 .args_type = "start:i,size:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300499 .params = "addr size",
500 .help = "compute the checksum of a memory region",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300501 .mhandler.cmd = do_sum,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300502 },
503
Blue Swirl23130862009-06-06 08:22:04 +0000504STEXI
505@item sum @var{addr} @var{size}
506
507Compute the checksum of a memory region.
508ETEXI
509
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300510 {
511 .name = "usb_add",
512 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300513 .params = "device",
514 .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300515 .mhandler.cmd = do_usb_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300516 },
517
Blue Swirl23130862009-06-06 08:22:04 +0000518STEXI
519@item usb_add @var{devname}
520
521Add the USB device @var{devname}. For details of available devices see
522@ref{usb_devices}
523ETEXI
524
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300525 {
526 .name = "usb_del",
527 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300528 .params = "device",
529 .help = "remove USB device 'bus.addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300530 .mhandler.cmd = do_usb_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300531 },
532
Blue Swirl23130862009-06-06 08:22:04 +0000533STEXI
534@item usb_del @var{devname}
535
536Remove the USB device @var{devname} from the QEMU virtual USB
537hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
538command @code{info usb} to see the devices you can remove.
539ETEXI
540
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300541 {
542 .name = "device_add",
543 .args_type = "config:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300544 .params = "device",
545 .help = "add device, like -device on the command line",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300546 .mhandler.cmd = do_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300547 },
548
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200549STEXI
550@item device_add @var{config}
551
552Add device.
553ETEXI
554
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300555 {
556 .name = "device_del",
557 .args_type = "id:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300558 .params = "device",
559 .help = "remove device",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300560 .mhandler.cmd = do_device_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300561 },
562
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200563STEXI
564@item device_del @var{id}
565
566Remove device @var{id}.
567ETEXI
568
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300569 {
570 .name = "cpu",
571 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300572 .params = "index",
573 .help = "set the default CPU",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300574 .mhandler.cmd = do_cpu_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300575 },
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200576
Blue Swirl23130862009-06-06 08:22:04 +0000577STEXI
578Set the default CPU.
579ETEXI
580
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300581 {
582 .name = "mouse_move",
583 .args_type = "dx_str:s,dy_str:s,dz_str:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300584 .params = "dx dy [dz]",
585 .help = "send mouse move events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300586 .mhandler.cmd = do_mouse_move,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300587 },
588
Blue Swirl23130862009-06-06 08:22:04 +0000589STEXI
590@item mouse_move @var{dx} @var{dy} [@var{dz}]
591Move the active mouse to the specified coordinates @var{dx} @var{dy}
592with optional scroll axis @var{dz}.
593ETEXI
594
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300595 {
596 .name = "mouse_button",
597 .args_type = "button_state:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300598 .params = "state",
599 .help = "change mouse button state (1=L, 2=M, 4=R)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300600 .mhandler.cmd = do_mouse_button,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300601 },
602
Blue Swirl23130862009-06-06 08:22:04 +0000603STEXI
604@item mouse_button @var{val}
605Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
606ETEXI
607
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300608 {
609 .name = "mouse_set",
610 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300611 .params = "index",
612 .help = "set which mouse device receives events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300613 .mhandler.cmd = do_mouse_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300614 },
615
Blue Swirl23130862009-06-06 08:22:04 +0000616STEXI
617@item mouse_set @var{index}
618Set which mouse device receives events at given @var{index}, index
619can be obtained with
620@example
621info mice
622@end example
623ETEXI
624
625#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300626 {
627 .name = "wavcapture",
628 .args_type = "path:F,freq:i?,bits:i?,nchannels:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300629 .params = "path [frequency [bits [channels]]]",
630 .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300631 .mhandler.cmd = do_wav_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300632 },
Blue Swirl23130862009-06-06 08:22:04 +0000633#endif
634STEXI
635@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
636Capture audio into @var{filename}. Using sample rate @var{frequency}
637bits per sample @var{bits} and number of channels @var{channels}.
638
639Defaults:
640@itemize @minus
641@item Sample rate = 44100 Hz - CD quality
642@item Bits = 16
643@item Number of channels = 2 - Stereo
644@end itemize
645ETEXI
646
647#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300648 {
649 .name = "stopcapture",
650 .args_type = "n:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300651 .params = "capture index",
652 .help = "stop capture",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300653 .mhandler.cmd = do_stop_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300654 },
Blue Swirl23130862009-06-06 08:22:04 +0000655#endif
656STEXI
657@item stopcapture @var{index}
658Stop capture with a given @var{index}, index can be obtained with
659@example
660info capture
661@end example
662ETEXI
663
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300664 {
665 .name = "memsave",
666 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300667 .params = "addr size file",
668 .help = "save to disk virtual memory dump starting at 'addr' of size 'size'",
Luiz Capitulino57e09452009-10-16 12:23:43 -0300669 .user_print = monitor_user_noop,
670 .mhandler.cmd_new = do_memory_save,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300671 },
672
Blue Swirl23130862009-06-06 08:22:04 +0000673STEXI
674@item memsave @var{addr} @var{size} @var{file}
675save to disk virtual memory dump starting at @var{addr} of size @var{size}.
676ETEXI
677
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300678 {
679 .name = "pmemsave",
680 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300681 .params = "addr size file",
682 .help = "save to disk physical memory dump starting at 'addr' of size 'size'",
Luiz Capitulino18f5a8b2009-10-16 12:23:44 -0300683 .user_print = monitor_user_noop,
684 .mhandler.cmd_new = do_physical_memory_save,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300685 },
686
Blue Swirl23130862009-06-06 08:22:04 +0000687STEXI
688@item pmemsave @var{addr} @var{size} @var{file}
689save to disk physical memory dump starting at @var{addr} of size @var{size}.
690ETEXI
691
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300692 {
693 .name = "boot_set",
694 .args_type = "bootdevice:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300695 .params = "bootdevice",
696 .help = "define new values for the boot device list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300697 .mhandler.cmd = do_boot_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300698 },
699
Blue Swirl23130862009-06-06 08:22:04 +0000700STEXI
701@item boot_set @var{bootdevicelist}
702
703Define new values for the boot device list. Those values will override
704the values specified on the command line through the @code{-boot} option.
705
706The values that can be specified here depend on the machine type, but are
707the same that can be specified in the @code{-boot} command line option.
708ETEXI
709
710#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300711 {
712 .name = "nmi",
713 .args_type = "cpu_index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300714 .params = "cpu",
715 .help = "inject an NMI on the given CPU",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300716 .mhandler.cmd = do_inject_nmi,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300717 },
Blue Swirl23130862009-06-06 08:22:04 +0000718#endif
719STEXI
720@item nmi @var{cpu}
721Inject an NMI on the given CPU (x86 only).
722ETEXI
723
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300724 {
725 .name = "migrate",
726 .args_type = "detach:-d,uri:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300727 .params = "[-d] uri",
728 .help = "migrate to URI (using -d to not wait for completion)",
Luiz Capitulino5f79da02009-10-16 12:23:45 -0300729 .user_print = monitor_user_noop,
730 .mhandler.cmd_new = do_migrate,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300731 },
732
Blue Swirl23130862009-06-06 08:22:04 +0000733STEXI
734@item migrate [-d] @var{uri}
735Migrate to @var{uri} (using -d to not wait for completion).
736ETEXI
737
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300738 {
739 .name = "migrate_cancel",
740 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300741 .params = "",
742 .help = "cancel the current VM migration",
Luiz Capitulino911d2962009-10-16 12:23:47 -0300743 .user_print = monitor_user_noop,
744 .mhandler.cmd_new = do_migrate_cancel,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300745 },
746
Blue Swirl23130862009-06-06 08:22:04 +0000747STEXI
748@item migrate_cancel
749Cancel the current VM migration.
750ETEXI
751
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300752 {
753 .name = "migrate_set_speed",
754 .args_type = "value:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300755 .params = "value",
756 .help = "set maximum speed (in bytes) for migrations",
Luiz Capitulino3a492102009-10-16 12:23:46 -0300757 .user_print = monitor_user_noop,
758 .mhandler.cmd_new = do_migrate_set_speed,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300759 },
760
Blue Swirl23130862009-06-06 08:22:04 +0000761STEXI
762@item migrate_set_speed @var{value}
763Set maximum speed to @var{value} (in bytes) for migrations.
764ETEXI
765
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300766 {
767 .name = "migrate_set_downtime",
768 .args_type = "value:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300769 .params = "value",
770 .help = "set maximum tolerated downtime (in seconds) for migrations",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300771 .mhandler.cmd = do_migrate_set_downtime,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300772 },
Glauber Costa2ea42952009-05-28 15:22:58 -0400773
774STEXI
775@item migrate_set_downtime @var{second}
776Set maximum tolerated downtime (in seconds) for migration.
777ETEXI
778
Blue Swirl23130862009-06-06 08:22:04 +0000779#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300780 {
781 .name = "drive_add",
782 .args_type = "pci_addr:s,opts:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300783 .params = "[[<domain>:]<bus>:]<slot>\n"
784 "[file=file][,if=type][,bus=n]\n"
785 "[,unit=m][,media=d][index=i]\n"
786 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
787 "[snapshot=on|off][,cache=on|off]",
788 .help = "add drive to PCI storage controller",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300789 .mhandler.cmd = drive_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300790 },
Blue Swirl23130862009-06-06 08:22:04 +0000791#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300792
Blue Swirl23130862009-06-06 08:22:04 +0000793STEXI
794@item drive_add
795Add drive to PCI storage controller.
796ETEXI
797
798#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300799 {
800 .name = "pci_add",
801 .args_type = "pci_addr:s,type:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300802 .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
803 .help = "hot-add PCI device",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300804 .mhandler.cmd = pci_device_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300805 },
Blue Swirl23130862009-06-06 08:22:04 +0000806#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300807
Blue Swirl23130862009-06-06 08:22:04 +0000808STEXI
809@item pci_add
810Hot-add PCI device.
811ETEXI
812
813#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300814 {
815 .name = "pci_del",
816 .args_type = "pci_addr:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300817 .params = "[[<domain>:]<bus>:]<slot>",
818 .help = "hot remove PCI device",
Luiz Capitulino6848d822009-10-16 12:23:48 -0300819 .user_print = monitor_user_noop,
820 .mhandler.cmd_new = do_pci_device_hot_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300821 },
Blue Swirl23130862009-06-06 08:22:04 +0000822#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300823
Blue Swirl23130862009-06-06 08:22:04 +0000824STEXI
825@item pci_del
826Hot remove PCI device.
827ETEXI
828
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300829 {
830 .name = "host_net_add",
831 .args_type = "device:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300832 .params = "tap|user|socket|vde|dump [options]",
833 .help = "add host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300834 .mhandler.cmd = net_host_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300835 },
836
Blue Swirl23130862009-06-06 08:22:04 +0000837STEXI
838@item host_net_add
839Add host VLAN client.
840ETEXI
841
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300842 {
843 .name = "host_net_remove",
844 .args_type = "vlan_id:i,device:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300845 .params = "vlan_id name",
846 .help = "remove host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300847 .mhandler.cmd = net_host_device_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300848 },
849
Blue Swirl23130862009-06-06 08:22:04 +0000850STEXI
851@item host_net_remove
852Remove host VLAN client.
853ETEXI
854
855#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300856 {
857 .name = "hostfwd_add",
858 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300859 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
860 .help = "redirect TCP or UDP connections from host to guest (requires -net user)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300861 .mhandler.cmd = net_slirp_hostfwd_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300862 },
863
864 {
865 .name = "hostfwd_remove",
866 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300867 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
868 .help = "remove host-to-guest TCP or UDP redirection",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300869 .mhandler.cmd = net_slirp_hostfwd_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300870 },
871
Blue Swirl23130862009-06-06 08:22:04 +0000872#endif
873STEXI
874@item host_net_redir
875Redirect TCP or UDP connections from host to guest (requires -net user).
876ETEXI
877
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300878 {
879 .name = "balloon",
880 .args_type = "value:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300881 .params = "target",
882 .help = "request VM to change it's memory allocation (in MB)",
Luiz Capitulino83fb1de2009-10-07 13:42:01 -0300883 .user_print = monitor_user_noop,
884 .mhandler.cmd_new = do_balloon,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300885 },
886
Blue Swirl23130862009-06-06 08:22:04 +0000887STEXI
888@item balloon @var{value}
889Request VM to change its memory allocation to @var{value} (in MB).
890ETEXI
891
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300892 {
893 .name = "set_link",
894 .args_type = "name:s,up_or_down:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300895 .params = "name up|down",
896 .help = "change the link status of a network adapter",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300897 .mhandler.cmd = do_set_link,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300898 },
899
Blue Swirl23130862009-06-06 08:22:04 +0000900STEXI
901@item set_link @var{name} [up|down]
902Set link @var{name} up or down.
903ETEXI
904
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300905 {
906 .name = "watchdog_action",
907 .args_type = "action:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300908 .params = "[reset|shutdown|poweroff|pause|debug|none]",
909 .help = "change watchdog action",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300910 .mhandler.cmd = do_watchdog_action,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300911 },
912
Blue Swirl23130862009-06-06 08:22:04 +0000913STEXI
914@item watchdog_action
915Change watchdog action.
916ETEXI
917
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300918 {
919 .name = "acl_show",
920 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300921 .params = "aclname",
922 .help = "list rules in the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300923 .mhandler.cmd = do_acl_show,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300924 },
925
Blue Swirl23130862009-06-06 08:22:04 +0000926STEXI
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200927@item acl_show @var{aclname}
928List all the matching rules in the access control list, and the default
929policy. There are currently two named access control lists,
930@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
931certificate distinguished name, and SASL username respectively.
932ETEXI
Blue Swirl23130862009-06-06 08:22:04 +0000933
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300934 {
935 .name = "acl_policy",
936 .args_type = "aclname:s,policy:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300937 .params = "aclname allow|deny",
938 .help = "set default access control list policy",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300939 .mhandler.cmd = do_acl_policy,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300940 },
941
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200942STEXI
Jan Kiszkacbbfacc2009-07-03 08:46:05 +0200943@item acl_policy @var{aclname} @code{allow|deny}
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200944Set the default access control list policy, used in the event that
Blue Swirl23130862009-06-06 08:22:04 +0000945none of the explicit rules match. The default policy at startup is
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200946always @code{deny}.
947ETEXI
948
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300949 {
950 .name = "acl_add",
951 .args_type = "aclname:s,match:s,policy:s,index:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300952 .params = "aclname match allow|deny [index]",
953 .help = "add a match rule to the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300954 .mhandler.cmd = do_acl_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300955 },
956
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200957STEXI
958@item acl_allow @var{aclname} @var{match} @code{allow|deny} [@var{index}]
959Add a match rule to the access control list, allowing or denying access.
960The match will normally be an exact username or x509 distinguished name,
961but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
962allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
Blue Swirl23130862009-06-06 08:22:04 +0000963normally be appended to the end of the ACL, but can be inserted
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200964earlier in the list if the optional @var{index} parameter is supplied.
965ETEXI
966
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300967 {
968 .name = "acl_remove",
969 .args_type = "aclname:s,match:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300970 .params = "aclname match",
971 .help = "remove a match rule from the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300972 .mhandler.cmd = do_acl_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300973 },
974
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200975STEXI
976@item acl_remove @var{aclname} @var{match}
977Remove the specified match rule from the access control list.
978ETEXI
979
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300980 {
981 .name = "acl_reset",
982 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300983 .params = "aclname",
984 .help = "reset the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300985 .mhandler.cmd = do_acl_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300986 },
987
Jan Kiszka15dfcd42009-06-25 08:22:08 +0200988STEXI
989@item acl_remove @var{aclname} @var{match}
990Remove all matches from the access control list, and set the default
Blue Swirl23130862009-06-06 08:22:04 +0000991policy back to @code{deny}.
Blue Swirl23130862009-06-06 08:22:04 +0000992ETEXI
993
Huang Ying79c4f6b2009-06-23 10:05:14 +0800994#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300995
996 {
997 .name = "mce",
998 .args_type = "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300999 .params = "cpu bank status mcgstatus addr misc",
1000 .help = "inject a MCE on the given CPU",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001001 .mhandler.cmd = do_inject_mce,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001002 },
1003
Huang Ying79c4f6b2009-06-23 10:05:14 +08001004#endif
1005STEXI
1006@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
1007Inject an MCE on the given CPU (x86 only).
1008ETEXI
1009
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001010 {
1011 .name = "getfd",
1012 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001013 .params = "getfd name",
1014 .help = "receive a file descriptor via SCM rights and assign it a name",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001015 .mhandler.cmd = do_getfd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001016 },
1017
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001018STEXI
1019@item getfd @var{fdname}
1020If a file descriptor is passed alongside this command using the SCM_RIGHTS
1021mechanism on unix sockets, it is stored using the name @var{fdname} for
1022later use by other monitor commands.
1023ETEXI
1024
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001025 {
1026 .name = "closefd",
1027 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001028 .params = "closefd name",
1029 .help = "close a file descriptor previously passed via SCM rights",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001030 .mhandler.cmd = do_closefd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001031 },
1032
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001033STEXI
1034@item closefd @var{fdname}
1035Close the file descriptor previously assigned to @var{fdname} using the
1036@code{getfd} command. This is only needed if the file descriptor was never
1037used by another monitor command.
1038ETEXI
1039
Blue Swirl23130862009-06-06 08:22:04 +00001040STEXI
1041@end table
1042ETEXI