blob: ac27ab379c8d8bdb738ff99b8fb98a82a523fcc4 [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}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +010022@findex help
Blue Swirl23130862009-06-06 08:22:04 +000023Show the help for all commands or just for command @var{cmd}.
24ETEXI
25
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030026 {
27 .name = "commit",
28 .args_type = "device:B",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030029 .params = "device|all",
30 .help = "commit changes to the disk images (if -snapshot is used) or backing files",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -030031 .mhandler.cmd = do_commit,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030032 },
33
Blue Swirl23130862009-06-06 08:22:04 +000034STEXI
35@item commit
Stefan Weil70fcbbe2010-02-05 23:52:04 +010036@findex commit
Blue Swirl23130862009-06-06 08:22:04 +000037Commit changes to the disk images (if -snapshot is used) or backing files.
38ETEXI
39
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030040 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030041 .name = "q|quit",
42 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030043 .params = "",
44 .help = "quit the emulator",
Luiz Capitulinob223f352009-10-07 13:41:56 -030045 .user_print = monitor_user_noop,
Luiz Capitulino7a7f3252011-09-15 14:20:28 -030046 .mhandler.cmd = hmp_quit,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030047 },
48
Blue Swirl23130862009-06-06 08:22:04 +000049STEXI
50@item q or quit
Stefan Weil70fcbbe2010-02-05 23:52:04 +010051@findex quit
Blue Swirl23130862009-06-06 08:22:04 +000052Quit the emulator.
53ETEXI
54
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030055 {
Christoph Hellwig6d4a2b32011-01-24 13:32:33 +010056 .name = "block_resize",
57 .args_type = "device:B,size:o",
58 .params = "device size",
59 .help = "resize a block image",
Luiz Capitulino5e7caac2011-11-25 14:57:10 -020060 .mhandler.cmd = hmp_block_resize,
Christoph Hellwig6d4a2b32011-01-24 13:32:33 +010061 },
62
63STEXI
64@item block_resize
65@findex block_resize
66Resize a block image while a guest is running. Usually requires guest
67action to see the updated size. Resize to a lower size is supported,
68but should be used with extreme caution. Note that this command only
69resizes image files, it can not resize block devices like LVM volumes.
70ETEXI
71
72
73 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030074 .name = "eject",
Luiz Capitulino78d714e2009-12-14 18:53:21 -020075 .args_type = "force:-f,device:B",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030076 .params = "[-f] device",
77 .help = "eject a removable medium (use -f to force it)",
Luiz Capitulinoc245b6a2011-12-07 16:02:36 -020078 .mhandler.cmd = hmp_eject,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030079 },
80
Blue Swirl23130862009-06-06 08:22:04 +000081STEXI
82@item eject [-f] @var{device}
Stefan Weil70fcbbe2010-02-05 23:52:04 +010083@findex eject
Blue Swirl23130862009-06-06 08:22:04 +000084Eject a removable medium (use -f to force it).
85ETEXI
86
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030087 {
Ryan Harper9063f812010-11-12 11:07:13 -060088 .name = "drive_del",
89 .args_type = "id:s",
90 .params = "device",
91 .help = "remove host block device",
92 .user_print = monitor_user_noop,
93 .mhandler.cmd_new = do_drive_del,
94 },
95
96STEXI
97@item drive_del @var{device}
98@findex drive_del
99Remove host block device. The result is that guest generated IO is no longer
100submitted against the host device underlying the disk. Once a drive has
101been deleted, the QEMU Block layer returns -EIO which results in IO
102errors in the guest for applications that are reading/writing to the device.
103ETEXI
104
105 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300106 .name = "change",
107 .args_type = "device:B,target:F,arg:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300108 .params = "device filename [format]",
109 .help = "change a removable medium, optional format",
Luiz Capitulino333a96e2011-12-08 11:13:50 -0200110 .mhandler.cmd = hmp_change,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300111 },
112
Blue Swirl23130862009-06-06 08:22:04 +0000113STEXI
114@item change @var{device} @var{setting}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100115@findex change
Blue Swirl23130862009-06-06 08:22:04 +0000116
117Change the configuration of a device.
118
119@table @option
120@item change @var{diskdevice} @var{filename} [@var{format}]
121Change the medium for a removable disk device to point to @var{filename}. eg
122
123@example
124(qemu) change ide1-cd0 /path/to/some.iso
125@end example
126
127@var{format} is optional.
128
129@item change vnc @var{display},@var{options}
130Change the configuration of the VNC server. The valid syntax for @var{display}
131and @var{options} are described at @ref{sec_invocation}. eg
132
133@example
134(qemu) change vnc localhost:1
135@end example
136
137@item change vnc password [@var{password}]
138
139Change the password associated with the VNC server. If the new password is not
140supplied, the monitor will prompt for it to be entered. VNC passwords are only
141significant up to 8 letters. eg
142
143@example
144(qemu) change vnc password
145Password: ********
146@end example
147
148@end table
149ETEXI
150
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300151 {
152 .name = "screendump",
153 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300154 .params = "filename",
155 .help = "save screen into PPM image 'filename'",
Luiz Capitulinof1dc58e2010-03-31 15:21:49 -0300156 .user_print = monitor_user_noop,
157 .mhandler.cmd_new = do_screen_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300158 },
159
Blue Swirl23130862009-06-06 08:22:04 +0000160STEXI
161@item screendump @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100162@findex screendump
Blue Swirl23130862009-06-06 08:22:04 +0000163Save screen into PPM image @var{filename}.
164ETEXI
165
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300166 {
167 .name = "logfile",
168 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300169 .params = "filename",
170 .help = "output logs to 'filename'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300171 .mhandler.cmd = do_logfile,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300172 },
173
Blue Swirl23130862009-06-06 08:22:04 +0000174STEXI
175@item logfile @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100176@findex logfile
Blue Swirl23130862009-06-06 08:22:04 +0000177Output logs to @var{filename}.
178ETEXI
179
Prerna Saxena22890ab2010-06-24 17:04:53 +0530180 {
181 .name = "trace-event",
182 .args_type = "name:s,option:b",
183 .params = "name on|off",
184 .help = "changes status of a specific trace event",
Lluísfc764102011-08-31 20:31:18 +0200185 .mhandler.cmd = do_trace_event_set_state,
Prerna Saxena22890ab2010-06-24 17:04:53 +0530186 },
187
188STEXI
189@item trace-event
190@findex trace-event
191changes status of a trace event
192ETEXI
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100193
Michael Rothc45a8162011-10-02 08:44:37 -0500194#if defined(CONFIG_TRACE_SIMPLE)
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100195 {
196 .name = "trace-file",
197 .args_type = "op:s?,arg:F?",
198 .params = "on|off|flush|set [arg]",
199 .help = "open, close, or flush trace file, or set a new file name",
200 .mhandler.cmd = do_trace_file,
201 },
202
203STEXI
204@item trace-file on|off|flush
205@findex trace-file
206Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed.
207ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +0530208#endif
209
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300210 {
211 .name = "log",
212 .args_type = "items:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300213 .params = "item1[,...]",
214 .help = "activate logging of the specified items to '/tmp/qemu.log'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300215 .mhandler.cmd = do_log,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300216 },
217
Blue Swirl23130862009-06-06 08:22:04 +0000218STEXI
219@item log @var{item1}[,...]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100220@findex log
Blue Swirl23130862009-06-06 08:22:04 +0000221Activate logging of the specified items to @file{/tmp/qemu.log}.
222ETEXI
223
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300224 {
225 .name = "savevm",
226 .args_type = "name:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300227 .params = "[tag|id]",
228 .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300229 .mhandler.cmd = do_savevm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300230 },
231
Blue Swirl23130862009-06-06 08:22:04 +0000232STEXI
233@item savevm [@var{tag}|@var{id}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100234@findex savevm
Blue Swirl23130862009-06-06 08:22:04 +0000235Create a snapshot of the whole virtual machine. If @var{tag} is
236provided, it is used as human readable identifier. If there is already
237a snapshot with the same tag or ID, it is replaced. More info at
238@ref{vm_snapshots}.
239ETEXI
240
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300241 {
242 .name = "loadvm",
243 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300244 .params = "tag|id",
245 .help = "restore a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300246 .mhandler.cmd = do_loadvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300247 },
248
Blue Swirl23130862009-06-06 08:22:04 +0000249STEXI
250@item loadvm @var{tag}|@var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100251@findex loadvm
Blue Swirl23130862009-06-06 08:22:04 +0000252Set the whole virtual machine to the snapshot identified by the tag
253@var{tag} or the unique snapshot ID @var{id}.
254ETEXI
255
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300256 {
257 .name = "delvm",
258 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300259 .params = "tag|id",
260 .help = "delete a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300261 .mhandler.cmd = do_delvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300262 },
263
Blue Swirl23130862009-06-06 08:22:04 +0000264STEXI
265@item delvm @var{tag}|@var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100266@findex delvm
Blue Swirl23130862009-06-06 08:22:04 +0000267Delete the snapshot identified by @var{tag} or @var{id}.
268ETEXI
269
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300270 {
271 .name = "singlestep",
272 .args_type = "option:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300273 .params = "[on|off]",
274 .help = "run emulation in singlestep mode or switch to normal mode",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300275 .mhandler.cmd = do_singlestep,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300276 },
277
Blue Swirl23130862009-06-06 08:22:04 +0000278STEXI
279@item singlestep [off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100280@findex singlestep
Blue Swirl23130862009-06-06 08:22:04 +0000281Run 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 Capitulino5f158f22011-09-15 14:34:39 -0300290 .mhandler.cmd = hmp_stop,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300291 },
292
Blue Swirl23130862009-06-06 08:22:04 +0000293STEXI
294@item stop
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100295@findex stop
Blue Swirl23130862009-06-06 08:22:04 +0000296Stop 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 Capitulinoe42e8182011-11-22 17:58:31 -0200304 .mhandler.cmd = hmp_cont,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300305 },
306
Blue Swirl23130862009-06-06 08:22:04 +0000307STEXI
308@item c or cont
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100309@findex cont
Blue Swirl23130862009-06-06 08:22:04 +0000310Resume 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}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100323@findex gdbserver
Blue Swirl23130862009-06-06 08:22:04 +0000324Start gdbserver session (default @var{port}=1234)
325ETEXI
326
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300327 {
328 .name = "x",
329 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300330 .params = "/fmt addr",
331 .help = "virtual memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300332 .mhandler.cmd = do_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300333 },
334
Blue Swirl23130862009-06-06 08:22:04 +0000335STEXI
336@item x/fmt @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100337@findex x
Blue Swirl23130862009-06-06 08:22:04 +0000338Virtual memory dump starting at @var{addr}.
339ETEXI
340
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300341 {
342 .name = "xp",
343 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300344 .params = "/fmt addr",
345 .help = "physical memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300346 .mhandler.cmd = do_physical_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300347 },
348
Blue Swirl23130862009-06-06 08:22:04 +0000349STEXI
350@item xp /@var{fmt} @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100351@findex xp
Blue Swirl23130862009-06-06 08:22:04 +0000352Physical memory dump starting at @var{addr}.
353
354@var{fmt} is a format which tells the command how to format the
355data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
356
357@table @var
358@item count
359is the number of items to be dumped.
360
361@item format
362can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
363c (char) or i (asm instruction).
364
365@item size
366can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
367@code{h} or @code{w} can be specified with the @code{i} format to
368respectively select 16 or 32 bit code instruction size.
369
370@end table
371
372Examples:
373@itemize
374@item
375Dump 10 instructions at the current instruction pointer:
376@example
377(qemu) x/10i $eip
3780x90107063: ret
3790x90107064: sti
3800x90107065: lea 0x0(%esi,1),%esi
3810x90107069: lea 0x0(%edi,1),%edi
3820x90107070: ret
3830x90107071: jmp 0x90107080
3840x90107073: nop
3850x90107074: nop
3860x90107075: nop
3870x90107076: nop
388@end example
389
390@item
391Dump 80 16 bit values at the start of the video memory.
392@smallexample
393(qemu) xp/80hx 0xb8000
3940x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
3950x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
3960x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
3970x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
3980x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
3990x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
4000x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4010x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4020x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4030x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
404@end smallexample
405@end itemize
406ETEXI
407
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300408 {
409 .name = "p|print",
410 .args_type = "fmt:/,val:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300411 .params = "/fmt expr",
412 .help = "print expression value (use $reg for CPU register access)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300413 .mhandler.cmd = do_print,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300414 },
415
Blue Swirl23130862009-06-06 08:22:04 +0000416STEXI
417@item p or print/@var{fmt} @var{expr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100418@findex print
Blue Swirl23130862009-06-06 08:22:04 +0000419
420Print expression value. Only the @var{format} part of @var{fmt} is
421used.
422ETEXI
423
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300424 {
425 .name = "i",
426 .args_type = "fmt:/,addr:i,index:i.",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300427 .params = "/fmt addr",
428 .help = "I/O port read",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300429 .mhandler.cmd = do_ioport_read,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300430 },
431
Blue Swirl23130862009-06-06 08:22:04 +0000432STEXI
433Read I/O port.
434ETEXI
435
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300436 {
437 .name = "o",
438 .args_type = "fmt:/,addr:i,val:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300439 .params = "/fmt addr value",
440 .help = "I/O port write",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300441 .mhandler.cmd = do_ioport_write,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300442 },
443
Jan Kiszkaf1147842009-07-14 10:20:11 +0200444STEXI
445Write to I/O port.
446ETEXI
Blue Swirl23130862009-06-06 08:22:04 +0000447
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300448 {
449 .name = "sendkey",
450 .args_type = "string:s,hold_time:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300451 .params = "keys [hold_ms]",
452 .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300453 .mhandler.cmd = do_sendkey,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300454 },
455
Blue Swirl23130862009-06-06 08:22:04 +0000456STEXI
457@item sendkey @var{keys}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100458@findex sendkey
Blue Swirl23130862009-06-06 08:22:04 +0000459
460Send @var{keys} to the emulator. @var{keys} could be the name of the
461key or @code{#} followed by the raw value in either decimal or hexadecimal
462format. Use @code{-} to press several keys simultaneously. Example:
463@example
464sendkey ctrl-alt-f1
465@end example
466
467This command is useful to send keys that your graphical user interface
468intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
469ETEXI
470
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300471 {
472 .name = "system_reset",
473 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300474 .params = "",
475 .help = "reset the system",
Luiz Capitulino38d22652011-09-15 14:41:46 -0300476 .mhandler.cmd = hmp_system_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300477 },
478
Blue Swirl23130862009-06-06 08:22:04 +0000479STEXI
480@item system_reset
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100481@findex system_reset
Blue Swirl23130862009-06-06 08:22:04 +0000482
483Reset the system.
484ETEXI
485
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300486 {
487 .name = "system_powerdown",
488 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300489 .params = "",
490 .help = "send system power down event",
Luiz Capitulino5bc465e2011-09-28 11:06:15 -0300491 .mhandler.cmd = hmp_system_powerdown,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300492 },
493
Blue Swirl23130862009-06-06 08:22:04 +0000494STEXI
495@item system_powerdown
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100496@findex system_powerdown
Blue Swirl23130862009-06-06 08:22:04 +0000497
498Power down the system (if supported).
499ETEXI
500
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300501 {
502 .name = "sum",
503 .args_type = "start:i,size:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300504 .params = "addr size",
505 .help = "compute the checksum of a memory region",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300506 .mhandler.cmd = do_sum,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300507 },
508
Blue Swirl23130862009-06-06 08:22:04 +0000509STEXI
510@item sum @var{addr} @var{size}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100511@findex sum
Blue Swirl23130862009-06-06 08:22:04 +0000512
513Compute the checksum of a memory region.
514ETEXI
515
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300516 {
517 .name = "usb_add",
518 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300519 .params = "device",
520 .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300521 .mhandler.cmd = do_usb_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300522 },
523
Blue Swirl23130862009-06-06 08:22:04 +0000524STEXI
525@item usb_add @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100526@findex usb_add
Blue Swirl23130862009-06-06 08:22:04 +0000527
528Add the USB device @var{devname}. For details of available devices see
529@ref{usb_devices}
530ETEXI
531
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300532 {
533 .name = "usb_del",
534 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300535 .params = "device",
536 .help = "remove USB device 'bus.addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300537 .mhandler.cmd = do_usb_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300538 },
539
Blue Swirl23130862009-06-06 08:22:04 +0000540STEXI
541@item usb_del @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100542@findex usb_del
Blue Swirl23130862009-06-06 08:22:04 +0000543
544Remove the USB device @var{devname} from the QEMU virtual USB
545hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
546command @code{info usb} to see the devices you can remove.
547ETEXI
548
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300549 {
550 .name = "device_add",
Markus Armbrusterc7e4e8c2010-02-10 20:47:28 +0100551 .args_type = "device:O",
552 .params = "driver[,prop=value][,...]",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300553 .help = "add device, like -device on the command line",
Markus Armbruster8bc27242010-02-10 20:52:01 +0100554 .user_print = monitor_user_noop,
555 .mhandler.cmd_new = do_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300556 },
557
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200558STEXI
559@item device_add @var{config}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100560@findex device_add
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200561
562Add device.
563ETEXI
564
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300565 {
566 .name = "device_del",
567 .args_type = "id:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300568 .params = "device",
569 .help = "remove device",
Markus Armbruster17a38ea2010-03-22 11:38:14 +0100570 .user_print = monitor_user_noop,
571 .mhandler.cmd_new = do_device_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300572 },
573
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200574STEXI
575@item device_del @var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100576@findex device_del
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200577
578Remove device @var{id}.
579ETEXI
580
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300581 {
582 .name = "cpu",
583 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300584 .params = "index",
585 .help = "set the default CPU",
Luiz Capitulino755f1962011-10-06 14:31:39 -0300586 .mhandler.cmd = hmp_cpu,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300587 },
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200588
Blue Swirl23130862009-06-06 08:22:04 +0000589STEXI
Markus Armbrusterc427ea92010-05-04 13:20:32 +0200590@item cpu @var{index}
591@findex cpu
Blue Swirl23130862009-06-06 08:22:04 +0000592Set the default CPU.
593ETEXI
594
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300595 {
596 .name = "mouse_move",
597 .args_type = "dx_str:s,dy_str:s,dz_str:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300598 .params = "dx dy [dz]",
599 .help = "send mouse move events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300600 .mhandler.cmd = do_mouse_move,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300601 },
602
Blue Swirl23130862009-06-06 08:22:04 +0000603STEXI
604@item mouse_move @var{dx} @var{dy} [@var{dz}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100605@findex mouse_move
Blue Swirl23130862009-06-06 08:22:04 +0000606Move the active mouse to the specified coordinates @var{dx} @var{dy}
607with optional scroll axis @var{dz}.
608ETEXI
609
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300610 {
611 .name = "mouse_button",
612 .args_type = "button_state:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300613 .params = "state",
614 .help = "change mouse button state (1=L, 2=M, 4=R)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300615 .mhandler.cmd = do_mouse_button,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300616 },
617
Blue Swirl23130862009-06-06 08:22:04 +0000618STEXI
619@item mouse_button @var{val}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100620@findex mouse_button
Blue Swirl23130862009-06-06 08:22:04 +0000621Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
622ETEXI
623
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300624 {
625 .name = "mouse_set",
626 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300627 .params = "index",
628 .help = "set which mouse device receives events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300629 .mhandler.cmd = do_mouse_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300630 },
631
Blue Swirl23130862009-06-06 08:22:04 +0000632STEXI
633@item mouse_set @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100634@findex mouse_set
Blue Swirl23130862009-06-06 08:22:04 +0000635Set which mouse device receives events at given @var{index}, index
636can be obtained with
637@example
638info mice
639@end example
640ETEXI
641
642#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300643 {
644 .name = "wavcapture",
645 .args_type = "path:F,freq:i?,bits:i?,nchannels:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300646 .params = "path [frequency [bits [channels]]]",
647 .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300648 .mhandler.cmd = do_wav_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300649 },
Blue Swirl23130862009-06-06 08:22:04 +0000650#endif
651STEXI
652@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100653@findex wavcapture
Blue Swirl23130862009-06-06 08:22:04 +0000654Capture audio into @var{filename}. Using sample rate @var{frequency}
655bits per sample @var{bits} and number of channels @var{channels}.
656
657Defaults:
658@itemize @minus
659@item Sample rate = 44100 Hz - CD quality
660@item Bits = 16
661@item Number of channels = 2 - Stereo
662@end itemize
663ETEXI
664
665#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300666 {
667 .name = "stopcapture",
668 .args_type = "n:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300669 .params = "capture index",
670 .help = "stop capture",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300671 .mhandler.cmd = do_stop_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300672 },
Blue Swirl23130862009-06-06 08:22:04 +0000673#endif
674STEXI
675@item stopcapture @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100676@findex stopcapture
Blue Swirl23130862009-06-06 08:22:04 +0000677Stop capture with a given @var{index}, index can be obtained with
678@example
679info capture
680@end example
681ETEXI
682
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300683 {
684 .name = "memsave",
685 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300686 .params = "addr size file",
687 .help = "save to disk virtual memory dump starting at 'addr' of size 'size'",
Luiz Capitulino0cfd6a92011-11-22 16:32:37 -0200688 .mhandler.cmd = hmp_memsave,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300689 },
690
Blue Swirl23130862009-06-06 08:22:04 +0000691STEXI
692@item memsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100693@findex memsave
Blue Swirl23130862009-06-06 08:22:04 +0000694save to disk virtual memory dump starting at @var{addr} of size @var{size}.
695ETEXI
696
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300697 {
698 .name = "pmemsave",
699 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300700 .params = "addr size file",
701 .help = "save to disk physical memory dump starting at 'addr' of size 'size'",
Luiz Capitulino6d3962b2011-11-22 17:26:46 -0200702 .mhandler.cmd = hmp_pmemsave,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300703 },
704
Blue Swirl23130862009-06-06 08:22:04 +0000705STEXI
706@item pmemsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100707@findex pmemsave
Blue Swirl23130862009-06-06 08:22:04 +0000708save to disk physical memory dump starting at @var{addr} of size @var{size}.
709ETEXI
710
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300711 {
712 .name = "boot_set",
713 .args_type = "bootdevice:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300714 .params = "bootdevice",
715 .help = "define new values for the boot device list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300716 .mhandler.cmd = do_boot_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300717 },
718
Blue Swirl23130862009-06-06 08:22:04 +0000719STEXI
720@item boot_set @var{bootdevicelist}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100721@findex boot_set
Blue Swirl23130862009-06-06 08:22:04 +0000722
723Define new values for the boot device list. Those values will override
724the values specified on the command line through the @code{-boot} option.
725
726The values that can be specified here depend on the machine type, but are
727the same that can be specified in the @code{-boot} command line option.
728ETEXI
729
730#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300731 {
732 .name = "nmi",
Luiz Capitulinoe9b4b432011-04-29 12:11:50 -0300733 .args_type = "",
734 .params = "",
735 .help = "inject an NMI on all guest's CPUs",
Luiz Capitulinoab49ab52011-11-23 12:55:53 -0200736 .mhandler.cmd = hmp_inject_nmi,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300737 },
Blue Swirl23130862009-06-06 08:22:04 +0000738#endif
739STEXI
740@item nmi @var{cpu}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100741@findex nmi
Blue Swirl23130862009-06-06 08:22:04 +0000742Inject an NMI on the given CPU (x86 only).
743ETEXI
744
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300745 {
746 .name = "migrate",
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200747 .args_type = "detach:-d,blk:-b,inc:-i,uri:s",
748 .params = "[-d] [-b] [-i] uri",
749 .help = "migrate to URI (using -d to not wait for completion)"
750 "\n\t\t\t -b for migration without shared storage with"
751 " full copy of disk\n\t\t\t -i for migration without "
752 "shared storage with incremental copy of disk "
753 "(base image shared between src and destination)",
754 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200755 .mhandler.cmd_new = do_migrate,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300756 },
757
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200758
Blue Swirl23130862009-06-06 08:22:04 +0000759STEXI
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200760@item migrate [-d] [-b] [-i] @var{uri}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100761@findex migrate
Blue Swirl23130862009-06-06 08:22:04 +0000762Migrate to @var{uri} (using -d to not wait for completion).
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200763 -b for migration with full copy of disk
764 -i for migration with incremental copy of disk (base image is shared)
Blue Swirl23130862009-06-06 08:22:04 +0000765ETEXI
766
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300767 {
768 .name = "migrate_cancel",
769 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300770 .params = "",
771 .help = "cancel the current VM migration",
Luiz Capitulino6cdedb02011-11-27 22:54:09 -0200772 .mhandler.cmd = hmp_migrate_cancel,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300773 },
774
Blue Swirl23130862009-06-06 08:22:04 +0000775STEXI
776@item migrate_cancel
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100777@findex migrate_cancel
Blue Swirl23130862009-06-06 08:22:04 +0000778Cancel the current VM migration.
779ETEXI
780
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300781 {
782 .name = "migrate_set_speed",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200783 .args_type = "value:o",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300784 .params = "value",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200785 .help = "set maximum speed (in bytes) for migrations. "
786 "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
Luiz Capitulino3dc85382011-11-28 11:59:37 -0200787 .mhandler.cmd = hmp_migrate_set_speed,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300788 },
789
Blue Swirl23130862009-06-06 08:22:04 +0000790STEXI
791@item migrate_set_speed @var{value}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100792@findex migrate_set_speed
Blue Swirl23130862009-06-06 08:22:04 +0000793Set maximum speed to @var{value} (in bytes) for migrations.
794ETEXI
795
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300796 {
797 .name = "migrate_set_downtime",
Markus Armbrusterb0fbf7d2010-01-25 14:23:07 +0100798 .args_type = "value:T",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300799 .params = "value",
800 .help = "set maximum tolerated downtime (in seconds) for migrations",
Luiz Capitulino4f0a9932011-11-27 23:18:01 -0200801 .mhandler.cmd = hmp_migrate_set_downtime,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300802 },
Glauber Costa2ea42952009-05-28 15:22:58 -0400803
804STEXI
805@item migrate_set_downtime @var{second}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100806@findex migrate_set_downtime
Glauber Costa2ea42952009-05-28 15:22:58 -0400807Set maximum tolerated downtime (in seconds) for migration.
808ETEXI
809
Jes Sorensenf8882562010-12-16 13:52:16 +0100810 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100811 .name = "client_migrate_info",
812 .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
813 .params = "protocol hostname port tls-port cert-subject",
814 .help = "send migration info to spice/vnc client",
815 .user_print = monitor_user_noop,
Yonit Halperinedc5cb12011-10-17 10:03:18 +0200816 .mhandler.cmd_async = client_migrate_info,
817 .flags = MONITOR_CMD_ASYNC,
Jes Sorensenf8882562010-12-16 13:52:16 +0100818 },
819
820STEXI
Gerd Hoffmanne866e232010-04-23 13:28:21 +0200821@item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject}
822@findex client_migrate_info
823Set the spice/vnc connection info for the migration target. The spice/vnc
824server will ask the spice/vnc client to automatically reconnect using the
825new parameters (if specified) once the vm migration finished successfully.
826ETEXI
827
828 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100829 .name = "snapshot_blkdev",
Jes Sorensend967b2f2011-07-11 20:01:09 +0200830 .args_type = "device:B,snapshot-file:s?,format:s?",
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100831 .params = "device [new-image-file] [format]",
832 .help = "initiates a live snapshot\n\t\t\t"
833 "of device. If a new image file is specified, the\n\t\t\t"
834 "new image file will become the new root image.\n\t\t\t"
835 "If format is specified, the snapshot file will\n\t\t\t"
836 "be created in that format. Otherwise the\n\t\t\t"
837 "snapshot will be internal! (currently unsupported)",
Luiz Capitulino6106e242011-11-25 16:15:19 -0200838 .mhandler.cmd = hmp_snapshot_blkdev,
Gerd Hoffmanne866e232010-04-23 13:28:21 +0200839 },
840
841STEXI
Jes Sorensenf8882562010-12-16 13:52:16 +0100842@item snapshot_blkdev
843@findex snapshot_blkdev
844Snapshot device, using snapshot file as target if provided
845ETEXI
846
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300847 {
848 .name = "drive_add",
849 .args_type = "pci_addr:s,opts:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300850 .params = "[[<domain>:]<bus>:]<slot>\n"
851 "[file=file][,if=type][,bus=n]\n"
Stefan Hajnoczifb0490f2011-11-17 13:40:32 +0000852 "[,unit=m][,media=d][,index=i]\n"
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300853 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
Stefan Hajnoczifb0490f2011-11-17 13:40:32 +0000854 "[,snapshot=on|off][,cache=on|off]\n"
855 "[,readonly=on|off][,copy-on-read=on|off]",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300856 .help = "add drive to PCI storage controller",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300857 .mhandler.cmd = drive_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300858 },
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300859
Blue Swirl23130862009-06-06 08:22:04 +0000860STEXI
861@item drive_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100862@findex drive_add
Blue Swirl23130862009-06-06 08:22:04 +0000863Add drive to PCI storage controller.
864ETEXI
865
866#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300867 {
868 .name = "pci_add",
869 .args_type = "pci_addr:s,type:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300870 .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
871 .help = "hot-add PCI device",
Markus Armbruster6c6a58a2010-05-12 10:53:00 +0200872 .mhandler.cmd = pci_device_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300873 },
Blue Swirl23130862009-06-06 08:22:04 +0000874#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300875
Blue Swirl23130862009-06-06 08:22:04 +0000876STEXI
877@item pci_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100878@findex pci_add
Blue Swirl23130862009-06-06 08:22:04 +0000879Hot-add PCI device.
880ETEXI
881
882#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300883 {
884 .name = "pci_del",
885 .args_type = "pci_addr:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300886 .params = "[[<domain>:]<bus>:]<slot>",
887 .help = "hot remove PCI device",
Markus Armbrusterb752daf2010-05-12 10:53:01 +0200888 .mhandler.cmd = do_pci_device_hot_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300889 },
Blue Swirl23130862009-06-06 08:22:04 +0000890#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300891
Blue Swirl23130862009-06-06 08:22:04 +0000892STEXI
893@item pci_del
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100894@findex pci_del
Blue Swirl23130862009-06-06 08:22:04 +0000895Hot remove PCI device.
896ETEXI
897
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300898 {
Isaku Yamahata2ae63bd2010-12-24 12:14:14 +0900899 .name = "pcie_aer_inject_error",
900 .args_type = "advisory_non_fatal:-a,correctable:-c,"
901 "id:s,error_status:s,"
902 "header0:i?,header1:i?,header2:i?,header3:i?,"
903 "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?",
904 .params = "[-a] [-c] id "
905 "<error_status> [<tlp header> [<tlp header prefix>]]",
906 .help = "inject pcie aer error\n\t\t\t"
907 " -a for advisory non fatal error\n\t\t\t"
908 " -c for correctable error\n\t\t\t"
909 "<id> = qdev device id\n\t\t\t"
910 "<error_status> = error string or 32bit\n\t\t\t"
911 "<tlb header> = 32bit x 4\n\t\t\t"
912 "<tlb header prefix> = 32bit x 4",
913 .user_print = pcie_aer_inject_error_print,
Zhi Yong Wu1f3392b2011-11-30 12:39:47 +0800914 .mhandler.cmd_new = do_pcie_aer_inject_error,
Isaku Yamahata2ae63bd2010-12-24 12:14:14 +0900915 },
916
917STEXI
918@item pcie_aer_inject_error
919@findex pcie_aer_inject_error
920Inject PCIe AER error
921ETEXI
922
923 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300924 .name = "host_net_add",
925 .args_type = "device:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300926 .params = "tap|user|socket|vde|dump [options]",
927 .help = "add host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300928 .mhandler.cmd = net_host_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300929 },
930
Blue Swirl23130862009-06-06 08:22:04 +0000931STEXI
932@item host_net_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100933@findex host_net_add
Blue Swirl23130862009-06-06 08:22:04 +0000934Add host VLAN client.
935ETEXI
936
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300937 {
938 .name = "host_net_remove",
939 .args_type = "vlan_id:i,device:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300940 .params = "vlan_id name",
941 .help = "remove host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300942 .mhandler.cmd = net_host_device_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300943 },
944
Blue Swirl23130862009-06-06 08:22:04 +0000945STEXI
946@item host_net_remove
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100947@findex host_net_remove
Blue Swirl23130862009-06-06 08:22:04 +0000948Remove host VLAN client.
949ETEXI
950
Markus Armbrusterae82d322010-03-25 17:22:40 +0100951 {
952 .name = "netdev_add",
953 .args_type = "netdev:O",
954 .params = "[user|tap|socket],id=str[,prop=value][,...]",
955 .help = "add host network device",
956 .user_print = monitor_user_noop,
957 .mhandler.cmd_new = do_netdev_add,
958 },
959
960STEXI
961@item netdev_add
962@findex netdev_add
963Add host network device.
964ETEXI
965
966 {
967 .name = "netdev_del",
968 .args_type = "id:s",
969 .params = "id",
970 .help = "remove host network device",
971 .user_print = monitor_user_noop,
972 .mhandler.cmd_new = do_netdev_del,
973 },
974
975STEXI
976@item netdev_del
977@findex netdev_del
978Remove host network device.
979ETEXI
980
Blue Swirl23130862009-06-06 08:22:04 +0000981#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300982 {
983 .name = "hostfwd_add",
984 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300985 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
986 .help = "redirect TCP or UDP connections from host to guest (requires -net user)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300987 .mhandler.cmd = net_slirp_hostfwd_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300988 },
Markus Armbruster21413d62010-05-04 13:20:30 +0200989#endif
990STEXI
991@item hostfwd_add
992@findex hostfwd_add
993Redirect TCP or UDP connections from host to guest (requires -net user).
994ETEXI
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300995
Markus Armbruster21413d62010-05-04 13:20:30 +0200996#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300997 {
998 .name = "hostfwd_remove",
999 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001000 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
1001 .help = "remove host-to-guest TCP or UDP redirection",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001002 .mhandler.cmd = net_slirp_hostfwd_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001003 },
1004
Blue Swirl23130862009-06-06 08:22:04 +00001005#endif
1006STEXI
Markus Armbruster21413d62010-05-04 13:20:30 +02001007@item hostfwd_remove
1008@findex hostfwd_remove
1009Remove host-to-guest TCP or UDP redirection.
Blue Swirl23130862009-06-06 08:22:04 +00001010ETEXI
1011
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001012 {
1013 .name = "balloon",
Luiz Capitulino3b0bd6e2009-12-18 13:25:05 -02001014 .args_type = "value:M",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001015 .params = "target",
Riccardo Magliocchetti3c056132010-05-19 18:49:28 +02001016 .help = "request VM to change its memory allocation (in MB)",
Luiz Capitulinod72f3262011-11-25 14:38:09 -02001017 .mhandler.cmd = hmp_balloon,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001018 },
1019
Blue Swirl23130862009-06-06 08:22:04 +00001020STEXI
1021@item balloon @var{value}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001022@findex balloon
Blue Swirl23130862009-06-06 08:22:04 +00001023Request VM to change its memory allocation to @var{value} (in MB).
1024ETEXI
1025
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001026 {
1027 .name = "set_link",
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001028 .args_type = "name:s,up:b",
1029 .params = "name on|off",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001030 .help = "change the link status of a network adapter",
Luiz Capitulino4b371562011-11-23 13:11:55 -02001031 .mhandler.cmd = hmp_set_link,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001032 },
1033
Blue Swirl23130862009-06-06 08:22:04 +00001034STEXI
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001035@item set_link @var{name} [on|off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001036@findex set_link
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001037Switch link @var{name} on (i.e. up) or off (i.e. down).
Blue Swirl23130862009-06-06 08:22:04 +00001038ETEXI
1039
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001040 {
1041 .name = "watchdog_action",
1042 .args_type = "action:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001043 .params = "[reset|shutdown|poweroff|pause|debug|none]",
1044 .help = "change watchdog action",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001045 .mhandler.cmd = do_watchdog_action,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001046 },
1047
Blue Swirl23130862009-06-06 08:22:04 +00001048STEXI
1049@item watchdog_action
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001050@findex watchdog_action
Blue Swirl23130862009-06-06 08:22:04 +00001051Change watchdog action.
1052ETEXI
1053
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001054 {
1055 .name = "acl_show",
1056 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001057 .params = "aclname",
1058 .help = "list rules in the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001059 .mhandler.cmd = do_acl_show,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001060 },
1061
Blue Swirl23130862009-06-06 08:22:04 +00001062STEXI
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001063@item acl_show @var{aclname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001064@findex acl_show
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001065List all the matching rules in the access control list, and the default
1066policy. There are currently two named access control lists,
1067@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
1068certificate distinguished name, and SASL username respectively.
1069ETEXI
Blue Swirl23130862009-06-06 08:22:04 +00001070
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001071 {
1072 .name = "acl_policy",
1073 .args_type = "aclname:s,policy:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001074 .params = "aclname allow|deny",
1075 .help = "set default access control list policy",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001076 .mhandler.cmd = do_acl_policy,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001077 },
1078
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001079STEXI
Jan Kiszkacbbfacc2009-07-03 08:46:05 +02001080@item acl_policy @var{aclname} @code{allow|deny}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001081@findex acl_policy
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001082Set the default access control list policy, used in the event that
Blue Swirl23130862009-06-06 08:22:04 +00001083none of the explicit rules match. The default policy at startup is
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001084always @code{deny}.
1085ETEXI
1086
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001087 {
1088 .name = "acl_add",
1089 .args_type = "aclname:s,match:s,policy:s,index:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001090 .params = "aclname match allow|deny [index]",
1091 .help = "add a match rule to the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001092 .mhandler.cmd = do_acl_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001093 },
1094
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001095STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001096@item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}]
1097@findex acl_add
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001098Add a match rule to the access control list, allowing or denying access.
1099The match will normally be an exact username or x509 distinguished name,
1100but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
1101allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
Blue Swirl23130862009-06-06 08:22:04 +00001102normally be appended to the end of the ACL, but can be inserted
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001103earlier in the list if the optional @var{index} parameter is supplied.
1104ETEXI
1105
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001106 {
1107 .name = "acl_remove",
1108 .args_type = "aclname:s,match:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001109 .params = "aclname match",
1110 .help = "remove a match rule from the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001111 .mhandler.cmd = do_acl_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001112 },
1113
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001114STEXI
1115@item acl_remove @var{aclname} @var{match}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001116@findex acl_remove
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001117Remove the specified match rule from the access control list.
1118ETEXI
1119
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001120 {
1121 .name = "acl_reset",
1122 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001123 .params = "aclname",
1124 .help = "reset the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001125 .mhandler.cmd = do_acl_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001126 },
1127
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001128STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001129@item acl_reset @var{aclname}
1130@findex acl_reset
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001131Remove all matches from the access control list, and set the default
Blue Swirl23130862009-06-06 08:22:04 +00001132policy back to @code{deny}.
Blue Swirl23130862009-06-06 08:22:04 +00001133ETEXI
1134
Huang Ying79c4f6b2009-06-23 10:05:14 +08001135#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001136
1137 {
1138 .name = "mce",
Jin Dongming31ce5e02010-12-10 17:21:02 +09001139 .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1140 .params = "[-b] cpu bank status mcgstatus addr misc",
1141 .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001142 .mhandler.cmd = do_inject_mce,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001143 },
1144
Huang Ying79c4f6b2009-06-23 10:05:14 +08001145#endif
1146STEXI
1147@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001148@findex mce (x86)
Huang Ying79c4f6b2009-06-23 10:05:14 +08001149Inject an MCE on the given CPU (x86 only).
1150ETEXI
1151
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001152 {
1153 .name = "getfd",
1154 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001155 .params = "getfd name",
1156 .help = "receive a file descriptor via SCM rights and assign it a name",
Luiz Capitulinof0d60002009-10-16 12:23:50 -03001157 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -02001158 .mhandler.cmd_new = do_getfd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001159 },
1160
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001161STEXI
1162@item getfd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001163@findex getfd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001164If a file descriptor is passed alongside this command using the SCM_RIGHTS
1165mechanism on unix sockets, it is stored using the name @var{fdname} for
1166later use by other monitor commands.
1167ETEXI
1168
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001169 {
1170 .name = "closefd",
1171 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001172 .params = "closefd name",
1173 .help = "close a file descriptor previously passed via SCM rights",
Luiz Capitulino18f3a512009-10-16 12:23:51 -03001174 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -02001175 .mhandler.cmd_new = do_closefd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001176 },
1177
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001178STEXI
1179@item closefd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001180@findex closefd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001181Close the file descriptor previously assigned to @var{fdname} using the
1182@code{getfd} command. This is only needed if the file descriptor was never
1183used by another monitor command.
1184ETEXI
1185
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001186 {
1187 .name = "block_passwd",
1188 .args_type = "device:B,password:s",
1189 .params = "block_passwd device password",
1190 .help = "set the password of encrypted block devices",
Luiz Capitulinoa4dea8a2011-11-23 13:28:21 -02001191 .mhandler.cmd = hmp_block_passwd,
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001192 },
1193
1194STEXI
Zhi Yong Wu727f0052011-11-08 13:00:31 +08001195@item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1196@findex block_set_io_throttle
1197Change I/O throttle limits for a block drive to @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1198ETEXI
1199
1200 {
1201 .name = "block_set_io_throttle",
1202 .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
1203 .params = "device bps bps_rd bps_wr iops iops_rd iops_wr",
1204 .help = "change I/O throttle limits for a block drive",
1205 .user_print = monitor_user_noop,
1206 .mhandler.cmd_new = do_block_set_io_throttle,
1207 },
1208
1209STEXI
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001210@item block_passwd @var{device} @var{password}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001211@findex block_passwd
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001212Set the encrypted device @var{device} password to @var{password}
1213ETEXI
Jan Kiszkab40292e2010-05-31 14:43:31 -03001214
Jan Kiszka33572ec2010-05-31 14:43:30 -03001215 {
Gerd Hoffmann75721502010-10-07 12:22:54 +02001216 .name = "set_password",
1217 .args_type = "protocol:s,password:s,connected:s?",
1218 .params = "protocol password action-if-connected",
1219 .help = "set spice/vnc password",
Luiz Capitulinofbf796f2011-12-07 11:17:51 -02001220 .mhandler.cmd = hmp_set_password,
Gerd Hoffmann75721502010-10-07 12:22:54 +02001221 },
1222
1223STEXI
1224@item set_password [ vnc | spice ] password [ action-if-connected ]
1225@findex set_password
1226
1227Change spice/vnc password. Use zero to make the password stay valid
1228forever. @var{action-if-connected} specifies what should happen in
1229case a connection is established: @var{fail} makes the password change
1230fail. @var{disconnect} changes the password and disconnects the
1231client. @var{keep} changes the password and keeps the connection up.
1232@var{keep} is the default.
1233ETEXI
1234
1235 {
1236 .name = "expire_password",
1237 .args_type = "protocol:s,time:s",
1238 .params = "protocol time",
1239 .help = "set spice/vnc password expire-time",
Luiz Capitulino9ad53722011-12-07 11:47:57 -02001240 .mhandler.cmd = hmp_expire_password,
Gerd Hoffmann75721502010-10-07 12:22:54 +02001241 },
1242
1243STEXI
1244@item expire_password [ vnc | spice ] expire-time
1245@findex expire_password
1246
1247Specify when a password for spice/vnc becomes
1248invalid. @var{expire-time} accepts:
1249
1250@table @var
1251@item now
1252Invalidate password instantly.
1253
1254@item never
1255Password stays valid forever.
1256
1257@item +nsec
1258Password stays valid for @var{nsec} seconds starting now.
1259
1260@item nsec
1261Password is invalidated at the given time. @var{nsec} are the seconds
1262passed since 1970, i.e. unix epoch.
1263
1264@end table
1265ETEXI
1266
1267 {
Jan Kiszka33572ec2010-05-31 14:43:30 -03001268 .name = "info",
1269 .args_type = "item:s?",
1270 .params = "[subcommand]",
1271 .help = "show various information about the system state",
Luiz Capitulino1162daa2010-09-13 12:15:26 -03001272 .mhandler.cmd = do_info,
Jan Kiszka33572ec2010-05-31 14:43:30 -03001273 },
1274
1275STEXI
1276@item info @var{subcommand}
1277@findex info
1278Show various information about the system state.
1279
1280@table @option
1281@item info version
1282show the version of QEMU
Jan Kiszka33572ec2010-05-31 14:43:30 -03001283@item info network
1284show the various VLANs and the associated devices
1285@item info chardev
1286show the character devices
1287@item info block
1288show the block devices
1289@item info blockstats
1290show block device statistics
1291@item info registers
1292show the cpu registers
1293@item info cpus
1294show infos for each CPU
1295@item info history
1296show the command line history
1297@item info irq
1298show the interrupts statistics (if available)
1299@item info pic
1300show i8259 (PIC) state
1301@item info pci
1302show emulated PCI device info
1303@item info tlb
Scott Woodbebabbc2011-08-18 10:38:42 +00001304show virtual to physical memory mappings (i386, SH4, SPARC, and PPC only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001305@item info mem
1306show the active virtual memory mappings (i386 only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001307@item info jit
1308show dynamic compiler info
Jan Kiszka33572ec2010-05-31 14:43:30 -03001309@item info numa
1310show NUMA information
Jan Kiszkab40292e2010-05-31 14:43:31 -03001311@item info kvm
1312show KVM information
Jan Kiszka33572ec2010-05-31 14:43:30 -03001313@item info usb
1314show USB devices plugged on the virtual USB hub
1315@item info usbhost
1316show all USB host devices
1317@item info profile
1318show profiling information
1319@item info capture
1320show information about active capturing
1321@item info snapshots
1322show list of VM snapshots
1323@item info status
1324show the current VM status (running|paused)
1325@item info pcmcia
1326show guest PCMCIA status
1327@item info mice
1328show which guest mouse is receiving events
1329@item info vnc
1330show the vnc server status
1331@item info name
1332show the current VM name
1333@item info uuid
1334show the current VM UUID
1335@item info cpustats
1336show CPU statistics
1337@item info usernet
1338show user network stack connection states
1339@item info migrate
1340show migration status
1341@item info balloon
1342show balloon information
1343@item info qtree
1344show device tree
1345@item info qdm
1346show qdev device model list
1347@item info roms
1348show roms
1349@end table
1350ETEXI
1351
Lluís6d8a7642011-08-31 20:30:43 +02001352#ifdef CONFIG_TRACE_SIMPLE
Prerna Saxena22890ab2010-06-24 17:04:53 +05301353STEXI
1354@item info trace
1355show contents of trace buffer
Lluís31965ae2011-08-31 20:31:24 +02001356ETEXI
1357#endif
1358
1359STEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301360@item info trace-events
1361show available trace events and their state
1362ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301363
Blue Swirl23130862009-06-06 08:22:04 +00001364STEXI
1365@end table
1366ETEXI