blob: f8d855e3be61e4a2c057f74488321587a863daf5 [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",
60 .user_print = monitor_user_noop,
61 .mhandler.cmd_new = do_block_resize,
62 },
63
64STEXI
65@item block_resize
66@findex block_resize
67Resize a block image while a guest is running. Usually requires guest
68action to see the updated size. Resize to a lower size is supported,
69but should be used with extreme caution. Note that this command only
70resizes image files, it can not resize block devices like LVM volumes.
71ETEXI
72
73
74 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030075 .name = "eject",
Luiz Capitulino78d714e2009-12-14 18:53:21 -020076 .args_type = "force:-f,device:B",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030077 .params = "[-f] device",
78 .help = "eject a removable medium (use -f to force it)",
Luiz Capitulinoe1c923a2009-10-16 12:23:49 -030079 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -020080 .mhandler.cmd_new = do_eject,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030081 },
82
Blue Swirl23130862009-06-06 08:22:04 +000083STEXI
84@item eject [-f] @var{device}
Stefan Weil70fcbbe2010-02-05 23:52:04 +010085@findex eject
Blue Swirl23130862009-06-06 08:22:04 +000086Eject a removable medium (use -f to force it).
87ETEXI
88
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030089 {
Ryan Harper9063f812010-11-12 11:07:13 -060090 .name = "drive_del",
91 .args_type = "id:s",
92 .params = "device",
93 .help = "remove host block device",
94 .user_print = monitor_user_noop,
95 .mhandler.cmd_new = do_drive_del,
96 },
97
98STEXI
99@item drive_del @var{device}
100@findex drive_del
101Remove host block device. The result is that guest generated IO is no longer
102submitted against the host device underlying the disk. Once a drive has
103been deleted, the QEMU Block layer returns -EIO which results in IO
104errors in the guest for applications that are reading/writing to the device.
105ETEXI
106
107 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300108 .name = "change",
109 .args_type = "device:B,target:F,arg:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300110 .params = "device filename [format]",
111 .help = "change a removable medium, optional format",
Markus Armbrusterec3b82a2009-12-07 21:37:09 +0100112 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200113 .mhandler.cmd_new = do_change,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300114 },
115
Blue Swirl23130862009-06-06 08:22:04 +0000116STEXI
117@item change @var{device} @var{setting}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100118@findex change
Blue Swirl23130862009-06-06 08:22:04 +0000119
120Change the configuration of a device.
121
122@table @option
123@item change @var{diskdevice} @var{filename} [@var{format}]
124Change the medium for a removable disk device to point to @var{filename}. eg
125
126@example
127(qemu) change ide1-cd0 /path/to/some.iso
128@end example
129
130@var{format} is optional.
131
132@item change vnc @var{display},@var{options}
133Change the configuration of the VNC server. The valid syntax for @var{display}
134and @var{options} are described at @ref{sec_invocation}. eg
135
136@example
137(qemu) change vnc localhost:1
138@end example
139
140@item change vnc password [@var{password}]
141
142Change the password associated with the VNC server. If the new password is not
143supplied, the monitor will prompt for it to be entered. VNC passwords are only
144significant up to 8 letters. eg
145
146@example
147(qemu) change vnc password
148Password: ********
149@end example
150
151@end table
152ETEXI
153
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300154 {
155 .name = "screendump",
156 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300157 .params = "filename",
158 .help = "save screen into PPM image 'filename'",
Luiz Capitulinof1dc58e2010-03-31 15:21:49 -0300159 .user_print = monitor_user_noop,
160 .mhandler.cmd_new = do_screen_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300161 },
162
Blue Swirl23130862009-06-06 08:22:04 +0000163STEXI
164@item screendump @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100165@findex screendump
Blue Swirl23130862009-06-06 08:22:04 +0000166Save screen into PPM image @var{filename}.
167ETEXI
168
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300169 {
170 .name = "logfile",
171 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300172 .params = "filename",
173 .help = "output logs to 'filename'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300174 .mhandler.cmd = do_logfile,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300175 },
176
Blue Swirl23130862009-06-06 08:22:04 +0000177STEXI
178@item logfile @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100179@findex logfile
Blue Swirl23130862009-06-06 08:22:04 +0000180Output logs to @var{filename}.
181ETEXI
182
Prerna Saxena22890ab2010-06-24 17:04:53 +0530183 {
184 .name = "trace-event",
185 .args_type = "name:s,option:b",
186 .params = "name on|off",
187 .help = "changes status of a specific trace event",
Lluísfc764102011-08-31 20:31:18 +0200188 .mhandler.cmd = do_trace_event_set_state,
Prerna Saxena22890ab2010-06-24 17:04:53 +0530189 },
190
191STEXI
192@item trace-event
193@findex trace-event
194changes status of a trace event
195ETEXI
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100196
Michael Rothc45a8162011-10-02 08:44:37 -0500197#if defined(CONFIG_TRACE_SIMPLE)
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100198 {
199 .name = "trace-file",
200 .args_type = "op:s?,arg:F?",
201 .params = "on|off|flush|set [arg]",
202 .help = "open, close, or flush trace file, or set a new file name",
203 .mhandler.cmd = do_trace_file,
204 },
205
206STEXI
207@item trace-file on|off|flush
208@findex trace-file
209Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed.
210ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +0530211#endif
212
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300213 {
214 .name = "log",
215 .args_type = "items:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300216 .params = "item1[,...]",
217 .help = "activate logging of the specified items to '/tmp/qemu.log'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300218 .mhandler.cmd = do_log,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300219 },
220
Blue Swirl23130862009-06-06 08:22:04 +0000221STEXI
222@item log @var{item1}[,...]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100223@findex log
Blue Swirl23130862009-06-06 08:22:04 +0000224Activate logging of the specified items to @file{/tmp/qemu.log}.
225ETEXI
226
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300227 {
228 .name = "savevm",
229 .args_type = "name:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300230 .params = "[tag|id]",
231 .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300232 .mhandler.cmd = do_savevm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300233 },
234
Blue Swirl23130862009-06-06 08:22:04 +0000235STEXI
236@item savevm [@var{tag}|@var{id}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100237@findex savevm
Blue Swirl23130862009-06-06 08:22:04 +0000238Create 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}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100254@findex loadvm
Blue Swirl23130862009-06-06 08:22:04 +0000255Set the whole virtual machine to the snapshot identified by the tag
256@var{tag} or the unique snapshot ID @var{id}.
257ETEXI
258
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300259 {
260 .name = "delvm",
261 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300262 .params = "tag|id",
263 .help = "delete a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300264 .mhandler.cmd = do_delvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300265 },
266
Blue Swirl23130862009-06-06 08:22:04 +0000267STEXI
268@item delvm @var{tag}|@var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100269@findex delvm
Blue Swirl23130862009-06-06 08:22:04 +0000270Delete the snapshot identified by @var{tag} or @var{id}.
271ETEXI
272
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300273 {
274 .name = "singlestep",
275 .args_type = "option:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300276 .params = "[on|off]",
277 .help = "run emulation in singlestep mode or switch to normal mode",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300278 .mhandler.cmd = do_singlestep,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300279 },
280
Blue Swirl23130862009-06-06 08:22:04 +0000281STEXI
282@item singlestep [off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100283@findex singlestep
Blue Swirl23130862009-06-06 08:22:04 +0000284Run the emulation in single step mode.
285If called with option off, the emulation returns to normal mode.
286ETEXI
287
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300288 {
289 .name = "stop",
290 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300291 .params = "",
292 .help = "stop emulation",
Luiz Capitulino5f158f22011-09-15 14:34:39 -0300293 .mhandler.cmd = hmp_stop,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300294 },
295
Blue Swirl23130862009-06-06 08:22:04 +0000296STEXI
297@item stop
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100298@findex stop
Blue Swirl23130862009-06-06 08:22:04 +0000299Stop emulation.
300ETEXI
301
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300302 {
303 .name = "c|cont",
304 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300305 .params = "",
306 .help = "resume emulation",
Luiz Capitulinoa1f896a2009-10-07 13:42:00 -0300307 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200308 .mhandler.cmd_new = do_cont,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300309 },
310
Blue Swirl23130862009-06-06 08:22:04 +0000311STEXI
312@item c or cont
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100313@findex cont
Blue Swirl23130862009-06-06 08:22:04 +0000314Resume emulation.
315ETEXI
316
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300317 {
318 .name = "gdbserver",
319 .args_type = "device:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300320 .params = "[device]",
321 .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300322 .mhandler.cmd = do_gdbserver,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300323 },
324
Blue Swirl23130862009-06-06 08:22:04 +0000325STEXI
326@item gdbserver [@var{port}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100327@findex gdbserver
Blue Swirl23130862009-06-06 08:22:04 +0000328Start gdbserver session (default @var{port}=1234)
329ETEXI
330
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300331 {
332 .name = "x",
333 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300334 .params = "/fmt addr",
335 .help = "virtual memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300336 .mhandler.cmd = do_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300337 },
338
Blue Swirl23130862009-06-06 08:22:04 +0000339STEXI
340@item x/fmt @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100341@findex x
Blue Swirl23130862009-06-06 08:22:04 +0000342Virtual memory dump starting at @var{addr}.
343ETEXI
344
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300345 {
346 .name = "xp",
347 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300348 .params = "/fmt addr",
349 .help = "physical memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300350 .mhandler.cmd = do_physical_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300351 },
352
Blue Swirl23130862009-06-06 08:22:04 +0000353STEXI
354@item xp /@var{fmt} @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100355@findex xp
Blue Swirl23130862009-06-06 08:22:04 +0000356Physical memory dump starting at @var{addr}.
357
358@var{fmt} is a format which tells the command how to format the
359data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
360
361@table @var
362@item count
363is the number of items to be dumped.
364
365@item format
366can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
367c (char) or i (asm instruction).
368
369@item size
370can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
371@code{h} or @code{w} can be specified with the @code{i} format to
372respectively select 16 or 32 bit code instruction size.
373
374@end table
375
376Examples:
377@itemize
378@item
379Dump 10 instructions at the current instruction pointer:
380@example
381(qemu) x/10i $eip
3820x90107063: ret
3830x90107064: sti
3840x90107065: lea 0x0(%esi,1),%esi
3850x90107069: lea 0x0(%edi,1),%edi
3860x90107070: ret
3870x90107071: jmp 0x90107080
3880x90107073: nop
3890x90107074: nop
3900x90107075: nop
3910x90107076: nop
392@end example
393
394@item
395Dump 80 16 bit values at the start of the video memory.
396@smallexample
397(qemu) xp/80hx 0xb8000
3980x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
3990x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
4000x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
4010x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
4020x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
4030x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
4040x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4050x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4060x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4070x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
408@end smallexample
409@end itemize
410ETEXI
411
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300412 {
413 .name = "p|print",
414 .args_type = "fmt:/,val:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300415 .params = "/fmt expr",
416 .help = "print expression value (use $reg for CPU register access)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300417 .mhandler.cmd = do_print,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300418 },
419
Blue Swirl23130862009-06-06 08:22:04 +0000420STEXI
421@item p or print/@var{fmt} @var{expr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100422@findex print
Blue Swirl23130862009-06-06 08:22:04 +0000423
424Print expression value. Only the @var{format} part of @var{fmt} is
425used.
426ETEXI
427
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300428 {
429 .name = "i",
430 .args_type = "fmt:/,addr:i,index:i.",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300431 .params = "/fmt addr",
432 .help = "I/O port read",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300433 .mhandler.cmd = do_ioport_read,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300434 },
435
Blue Swirl23130862009-06-06 08:22:04 +0000436STEXI
437Read I/O port.
438ETEXI
439
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300440 {
441 .name = "o",
442 .args_type = "fmt:/,addr:i,val:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300443 .params = "/fmt addr value",
444 .help = "I/O port write",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300445 .mhandler.cmd = do_ioport_write,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300446 },
447
Jan Kiszkaf1147842009-07-14 10:20:11 +0200448STEXI
449Write to I/O port.
450ETEXI
Blue Swirl23130862009-06-06 08:22:04 +0000451
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300452 {
453 .name = "sendkey",
454 .args_type = "string:s,hold_time:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300455 .params = "keys [hold_ms]",
456 .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300457 .mhandler.cmd = do_sendkey,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300458 },
459
Blue Swirl23130862009-06-06 08:22:04 +0000460STEXI
461@item sendkey @var{keys}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100462@findex sendkey
Blue Swirl23130862009-06-06 08:22:04 +0000463
464Send @var{keys} to the emulator. @var{keys} could be the name of the
465key or @code{#} followed by the raw value in either decimal or hexadecimal
466format. Use @code{-} to press several keys simultaneously. Example:
467@example
468sendkey ctrl-alt-f1
469@end example
470
471This command is useful to send keys that your graphical user interface
472intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
473ETEXI
474
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300475 {
476 .name = "system_reset",
477 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300478 .params = "",
479 .help = "reset the system",
Luiz Capitulino38d22652011-09-15 14:41:46 -0300480 .mhandler.cmd = hmp_system_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300481 },
482
Blue Swirl23130862009-06-06 08:22:04 +0000483STEXI
484@item system_reset
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100485@findex system_reset
Blue Swirl23130862009-06-06 08:22:04 +0000486
487Reset the system.
488ETEXI
489
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300490 {
491 .name = "system_powerdown",
492 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300493 .params = "",
494 .help = "send system power down event",
Luiz Capitulino5bc465e2011-09-28 11:06:15 -0300495 .mhandler.cmd = hmp_system_powerdown,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300496 },
497
Blue Swirl23130862009-06-06 08:22:04 +0000498STEXI
499@item system_powerdown
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100500@findex system_powerdown
Blue Swirl23130862009-06-06 08:22:04 +0000501
502Power down the system (if supported).
503ETEXI
504
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300505 {
506 .name = "sum",
507 .args_type = "start:i,size:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300508 .params = "addr size",
509 .help = "compute the checksum of a memory region",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300510 .mhandler.cmd = do_sum,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300511 },
512
Blue Swirl23130862009-06-06 08:22:04 +0000513STEXI
514@item sum @var{addr} @var{size}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100515@findex sum
Blue Swirl23130862009-06-06 08:22:04 +0000516
517Compute the checksum of a memory region.
518ETEXI
519
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300520 {
521 .name = "usb_add",
522 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300523 .params = "device",
524 .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300525 .mhandler.cmd = do_usb_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300526 },
527
Blue Swirl23130862009-06-06 08:22:04 +0000528STEXI
529@item usb_add @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100530@findex usb_add
Blue Swirl23130862009-06-06 08:22:04 +0000531
532Add the USB device @var{devname}. For details of available devices see
533@ref{usb_devices}
534ETEXI
535
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300536 {
537 .name = "usb_del",
538 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300539 .params = "device",
540 .help = "remove USB device 'bus.addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300541 .mhandler.cmd = do_usb_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300542 },
543
Blue Swirl23130862009-06-06 08:22:04 +0000544STEXI
545@item usb_del @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100546@findex usb_del
Blue Swirl23130862009-06-06 08:22:04 +0000547
548Remove the USB device @var{devname} from the QEMU virtual USB
549hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
550command @code{info usb} to see the devices you can remove.
551ETEXI
552
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300553 {
554 .name = "device_add",
Markus Armbrusterc7e4e8c2010-02-10 20:47:28 +0100555 .args_type = "device:O",
556 .params = "driver[,prop=value][,...]",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300557 .help = "add device, like -device on the command line",
Markus Armbruster8bc27242010-02-10 20:52:01 +0100558 .user_print = monitor_user_noop,
559 .mhandler.cmd_new = do_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300560 },
561
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200562STEXI
563@item device_add @var{config}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100564@findex device_add
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200565
566Add device.
567ETEXI
568
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300569 {
570 .name = "device_del",
571 .args_type = "id:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300572 .params = "device",
573 .help = "remove device",
Markus Armbruster17a38ea2010-03-22 11:38:14 +0100574 .user_print = monitor_user_noop,
575 .mhandler.cmd_new = do_device_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300576 },
577
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200578STEXI
579@item device_del @var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100580@findex device_del
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200581
582Remove device @var{id}.
583ETEXI
584
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300585 {
586 .name = "cpu",
587 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300588 .params = "index",
589 .help = "set the default CPU",
Luiz Capitulino755f1962011-10-06 14:31:39 -0300590 .mhandler.cmd = hmp_cpu,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300591 },
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200592
Blue Swirl23130862009-06-06 08:22:04 +0000593STEXI
Markus Armbrusterc427ea92010-05-04 13:20:32 +0200594@item cpu @var{index}
595@findex cpu
Blue Swirl23130862009-06-06 08:22:04 +0000596Set the default CPU.
597ETEXI
598
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300599 {
600 .name = "mouse_move",
601 .args_type = "dx_str:s,dy_str:s,dz_str:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300602 .params = "dx dy [dz]",
603 .help = "send mouse move events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300604 .mhandler.cmd = do_mouse_move,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300605 },
606
Blue Swirl23130862009-06-06 08:22:04 +0000607STEXI
608@item mouse_move @var{dx} @var{dy} [@var{dz}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100609@findex mouse_move
Blue Swirl23130862009-06-06 08:22:04 +0000610Move the active mouse to the specified coordinates @var{dx} @var{dy}
611with optional scroll axis @var{dz}.
612ETEXI
613
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300614 {
615 .name = "mouse_button",
616 .args_type = "button_state:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300617 .params = "state",
618 .help = "change mouse button state (1=L, 2=M, 4=R)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300619 .mhandler.cmd = do_mouse_button,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300620 },
621
Blue Swirl23130862009-06-06 08:22:04 +0000622STEXI
623@item mouse_button @var{val}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100624@findex mouse_button
Blue Swirl23130862009-06-06 08:22:04 +0000625Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
626ETEXI
627
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300628 {
629 .name = "mouse_set",
630 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300631 .params = "index",
632 .help = "set which mouse device receives events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300633 .mhandler.cmd = do_mouse_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300634 },
635
Blue Swirl23130862009-06-06 08:22:04 +0000636STEXI
637@item mouse_set @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100638@findex mouse_set
Blue Swirl23130862009-06-06 08:22:04 +0000639Set which mouse device receives events at given @var{index}, index
640can be obtained with
641@example
642info mice
643@end example
644ETEXI
645
646#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300647 {
648 .name = "wavcapture",
649 .args_type = "path:F,freq:i?,bits:i?,nchannels:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300650 .params = "path [frequency [bits [channels]]]",
651 .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300652 .mhandler.cmd = do_wav_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300653 },
Blue Swirl23130862009-06-06 08:22:04 +0000654#endif
655STEXI
656@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100657@findex wavcapture
Blue Swirl23130862009-06-06 08:22:04 +0000658Capture audio into @var{filename}. Using sample rate @var{frequency}
659bits per sample @var{bits} and number of channels @var{channels}.
660
661Defaults:
662@itemize @minus
663@item Sample rate = 44100 Hz - CD quality
664@item Bits = 16
665@item Number of channels = 2 - Stereo
666@end itemize
667ETEXI
668
669#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300670 {
671 .name = "stopcapture",
672 .args_type = "n:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300673 .params = "capture index",
674 .help = "stop capture",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300675 .mhandler.cmd = do_stop_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300676 },
Blue Swirl23130862009-06-06 08:22:04 +0000677#endif
678STEXI
679@item stopcapture @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100680@findex stopcapture
Blue Swirl23130862009-06-06 08:22:04 +0000681Stop capture with a given @var{index}, index can be obtained with
682@example
683info capture
684@end example
685ETEXI
686
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300687 {
688 .name = "memsave",
689 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300690 .params = "addr size file",
691 .help = "save to disk virtual memory dump starting at 'addr' of size 'size'",
Luiz Capitulino57e09452009-10-16 12:23:43 -0300692 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200693 .mhandler.cmd_new = do_memory_save,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300694 },
695
Blue Swirl23130862009-06-06 08:22:04 +0000696STEXI
697@item memsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100698@findex memsave
Blue Swirl23130862009-06-06 08:22:04 +0000699save to disk virtual memory dump starting at @var{addr} of size @var{size}.
700ETEXI
701
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300702 {
703 .name = "pmemsave",
704 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300705 .params = "addr size file",
706 .help = "save to disk physical memory dump starting at 'addr' of size 'size'",
Luiz Capitulino18f5a8b2009-10-16 12:23:44 -0300707 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200708 .mhandler.cmd_new = do_physical_memory_save,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300709 },
710
Blue Swirl23130862009-06-06 08:22:04 +0000711STEXI
712@item pmemsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100713@findex pmemsave
Blue Swirl23130862009-06-06 08:22:04 +0000714save to disk physical memory dump starting at @var{addr} of size @var{size}.
715ETEXI
716
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300717 {
718 .name = "boot_set",
719 .args_type = "bootdevice:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300720 .params = "bootdevice",
721 .help = "define new values for the boot device list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300722 .mhandler.cmd = do_boot_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300723 },
724
Blue Swirl23130862009-06-06 08:22:04 +0000725STEXI
726@item boot_set @var{bootdevicelist}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100727@findex boot_set
Blue Swirl23130862009-06-06 08:22:04 +0000728
729Define new values for the boot device list. Those values will override
730the values specified on the command line through the @code{-boot} option.
731
732The values that can be specified here depend on the machine type, but are
733the same that can be specified in the @code{-boot} command line option.
734ETEXI
735
736#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300737 {
738 .name = "nmi",
Luiz Capitulinoe9b4b432011-04-29 12:11:50 -0300739 .args_type = "",
740 .params = "",
741 .help = "inject an NMI on all guest's CPUs",
742 .user_print = monitor_user_noop,
743 .mhandler.cmd_new = do_inject_nmi,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300744 },
Blue Swirl23130862009-06-06 08:22:04 +0000745#endif
746STEXI
747@item nmi @var{cpu}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100748@findex nmi
Blue Swirl23130862009-06-06 08:22:04 +0000749Inject an NMI on the given CPU (x86 only).
750ETEXI
751
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300752 {
753 .name = "migrate",
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200754 .args_type = "detach:-d,blk:-b,inc:-i,uri:s",
755 .params = "[-d] [-b] [-i] uri",
756 .help = "migrate to URI (using -d to not wait for completion)"
757 "\n\t\t\t -b for migration without shared storage with"
758 " full copy of disk\n\t\t\t -i for migration without "
759 "shared storage with incremental copy of disk "
760 "(base image shared between src and destination)",
761 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200762 .mhandler.cmd_new = do_migrate,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300763 },
764
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200765
Blue Swirl23130862009-06-06 08:22:04 +0000766STEXI
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200767@item migrate [-d] [-b] [-i] @var{uri}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100768@findex migrate
Blue Swirl23130862009-06-06 08:22:04 +0000769Migrate to @var{uri} (using -d to not wait for completion).
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200770 -b for migration with full copy of disk
771 -i for migration with incremental copy of disk (base image is shared)
Blue Swirl23130862009-06-06 08:22:04 +0000772ETEXI
773
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300774 {
775 .name = "migrate_cancel",
776 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300777 .params = "",
778 .help = "cancel the current VM migration",
Luiz Capitulino911d2962009-10-16 12:23:47 -0300779 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200780 .mhandler.cmd_new = do_migrate_cancel,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300781 },
782
Blue Swirl23130862009-06-06 08:22:04 +0000783STEXI
784@item migrate_cancel
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100785@findex migrate_cancel
Blue Swirl23130862009-06-06 08:22:04 +0000786Cancel the current VM migration.
787ETEXI
788
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300789 {
790 .name = "migrate_set_speed",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200791 .args_type = "value:o",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300792 .params = "value",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200793 .help = "set maximum speed (in bytes) for migrations. "
794 "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
Markus Armbruster5fd90832010-01-25 14:23:05 +0100795 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200796 .mhandler.cmd_new = do_migrate_set_speed,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300797 },
798
Blue Swirl23130862009-06-06 08:22:04 +0000799STEXI
800@item migrate_set_speed @var{value}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100801@findex migrate_set_speed
Blue Swirl23130862009-06-06 08:22:04 +0000802Set maximum speed to @var{value} (in bytes) for migrations.
803ETEXI
804
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300805 {
806 .name = "migrate_set_downtime",
Markus Armbrusterb0fbf7d2010-01-25 14:23:07 +0100807 .args_type = "value:T",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300808 .params = "value",
809 .help = "set maximum tolerated downtime (in seconds) for migrations",
Markus Armbrusterc6027f52010-01-25 14:23:08 +0100810 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200811 .mhandler.cmd_new = do_migrate_set_downtime,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300812 },
Glauber Costa2ea42952009-05-28 15:22:58 -0400813
814STEXI
815@item migrate_set_downtime @var{second}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100816@findex migrate_set_downtime
Glauber Costa2ea42952009-05-28 15:22:58 -0400817Set maximum tolerated downtime (in seconds) for migration.
818ETEXI
819
Jes Sorensenf8882562010-12-16 13:52:16 +0100820 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100821 .name = "client_migrate_info",
822 .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
823 .params = "protocol hostname port tls-port cert-subject",
824 .help = "send migration info to spice/vnc client",
825 .user_print = monitor_user_noop,
Yonit Halperinedc5cb12011-10-17 10:03:18 +0200826 .mhandler.cmd_async = client_migrate_info,
827 .flags = MONITOR_CMD_ASYNC,
Jes Sorensenf8882562010-12-16 13:52:16 +0100828 },
829
830STEXI
Gerd Hoffmanne866e232010-04-23 13:28:21 +0200831@item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject}
832@findex client_migrate_info
833Set the spice/vnc connection info for the migration target. The spice/vnc
834server will ask the spice/vnc client to automatically reconnect using the
835new parameters (if specified) once the vm migration finished successfully.
836ETEXI
837
838 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100839 .name = "snapshot_blkdev",
Jes Sorensend967b2f2011-07-11 20:01:09 +0200840 .args_type = "device:B,snapshot-file:s?,format:s?",
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100841 .params = "device [new-image-file] [format]",
842 .help = "initiates a live snapshot\n\t\t\t"
843 "of device. If a new image file is specified, the\n\t\t\t"
844 "new image file will become the new root image.\n\t\t\t"
845 "If format is specified, the snapshot file will\n\t\t\t"
846 "be created in that format. Otherwise the\n\t\t\t"
847 "snapshot will be internal! (currently unsupported)",
848 .mhandler.cmd_new = do_snapshot_blkdev,
Gerd Hoffmanne866e232010-04-23 13:28:21 +0200849 },
850
851STEXI
Jes Sorensenf8882562010-12-16 13:52:16 +0100852@item snapshot_blkdev
853@findex snapshot_blkdev
854Snapshot device, using snapshot file as target if provided
855ETEXI
856
Blue Swirl23130862009-06-06 08:22:04 +0000857#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300858 {
859 .name = "drive_add",
860 .args_type = "pci_addr:s,opts:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300861 .params = "[[<domain>:]<bus>:]<slot>\n"
862 "[file=file][,if=type][,bus=n]\n"
863 "[,unit=m][,media=d][index=i]\n"
864 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
865 "[snapshot=on|off][,cache=on|off]",
866 .help = "add drive to PCI storage controller",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300867 .mhandler.cmd = drive_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300868 },
Blue Swirl23130862009-06-06 08:22:04 +0000869#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300870
Blue Swirl23130862009-06-06 08:22:04 +0000871STEXI
872@item drive_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100873@findex drive_add
Blue Swirl23130862009-06-06 08:22:04 +0000874Add drive to PCI storage controller.
875ETEXI
876
877#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300878 {
879 .name = "pci_add",
880 .args_type = "pci_addr:s,type:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300881 .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
882 .help = "hot-add PCI device",
Markus Armbruster6c6a58a2010-05-12 10:53:00 +0200883 .mhandler.cmd = pci_device_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300884 },
Blue Swirl23130862009-06-06 08:22:04 +0000885#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300886
Blue Swirl23130862009-06-06 08:22:04 +0000887STEXI
888@item pci_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100889@findex pci_add
Blue Swirl23130862009-06-06 08:22:04 +0000890Hot-add PCI device.
891ETEXI
892
893#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300894 {
895 .name = "pci_del",
896 .args_type = "pci_addr:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300897 .params = "[[<domain>:]<bus>:]<slot>",
898 .help = "hot remove PCI device",
Markus Armbrusterb752daf2010-05-12 10:53:01 +0200899 .mhandler.cmd = do_pci_device_hot_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300900 },
Blue Swirl23130862009-06-06 08:22:04 +0000901#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300902
Blue Swirl23130862009-06-06 08:22:04 +0000903STEXI
904@item pci_del
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100905@findex pci_del
Blue Swirl23130862009-06-06 08:22:04 +0000906Hot remove PCI device.
907ETEXI
908
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300909 {
Isaku Yamahata2ae63bd2010-12-24 12:14:14 +0900910 .name = "pcie_aer_inject_error",
911 .args_type = "advisory_non_fatal:-a,correctable:-c,"
912 "id:s,error_status:s,"
913 "header0:i?,header1:i?,header2:i?,header3:i?,"
914 "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?",
915 .params = "[-a] [-c] id "
916 "<error_status> [<tlp header> [<tlp header prefix>]]",
917 .help = "inject pcie aer error\n\t\t\t"
918 " -a for advisory non fatal error\n\t\t\t"
919 " -c for correctable error\n\t\t\t"
920 "<id> = qdev device id\n\t\t\t"
921 "<error_status> = error string or 32bit\n\t\t\t"
922 "<tlb header> = 32bit x 4\n\t\t\t"
923 "<tlb header prefix> = 32bit x 4",
924 .user_print = pcie_aer_inject_error_print,
925 .mhandler.cmd_new = do_pcie_aer_inejct_error,
926 },
927
928STEXI
929@item pcie_aer_inject_error
930@findex pcie_aer_inject_error
931Inject PCIe AER error
932ETEXI
933
934 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300935 .name = "host_net_add",
936 .args_type = "device:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300937 .params = "tap|user|socket|vde|dump [options]",
938 .help = "add host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300939 .mhandler.cmd = net_host_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300940 },
941
Blue Swirl23130862009-06-06 08:22:04 +0000942STEXI
943@item host_net_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100944@findex host_net_add
Blue Swirl23130862009-06-06 08:22:04 +0000945Add host VLAN client.
946ETEXI
947
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300948 {
949 .name = "host_net_remove",
950 .args_type = "vlan_id:i,device:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300951 .params = "vlan_id name",
952 .help = "remove host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300953 .mhandler.cmd = net_host_device_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300954 },
955
Blue Swirl23130862009-06-06 08:22:04 +0000956STEXI
957@item host_net_remove
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100958@findex host_net_remove
Blue Swirl23130862009-06-06 08:22:04 +0000959Remove host VLAN client.
960ETEXI
961
Markus Armbrusterae82d322010-03-25 17:22:40 +0100962 {
963 .name = "netdev_add",
964 .args_type = "netdev:O",
965 .params = "[user|tap|socket],id=str[,prop=value][,...]",
966 .help = "add host network device",
967 .user_print = monitor_user_noop,
968 .mhandler.cmd_new = do_netdev_add,
969 },
970
971STEXI
972@item netdev_add
973@findex netdev_add
974Add host network device.
975ETEXI
976
977 {
978 .name = "netdev_del",
979 .args_type = "id:s",
980 .params = "id",
981 .help = "remove host network device",
982 .user_print = monitor_user_noop,
983 .mhandler.cmd_new = do_netdev_del,
984 },
985
986STEXI
987@item netdev_del
988@findex netdev_del
989Remove host network device.
990ETEXI
991
Blue Swirl23130862009-06-06 08:22:04 +0000992#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300993 {
994 .name = "hostfwd_add",
995 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300996 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
997 .help = "redirect TCP or UDP connections from host to guest (requires -net user)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300998 .mhandler.cmd = net_slirp_hostfwd_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300999 },
Markus Armbruster21413d62010-05-04 13:20:30 +02001000#endif
1001STEXI
1002@item hostfwd_add
1003@findex hostfwd_add
1004Redirect TCP or UDP connections from host to guest (requires -net user).
1005ETEXI
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001006
Markus Armbruster21413d62010-05-04 13:20:30 +02001007#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001008 {
1009 .name = "hostfwd_remove",
1010 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001011 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
1012 .help = "remove host-to-guest TCP or UDP redirection",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001013 .mhandler.cmd = net_slirp_hostfwd_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001014 },
1015
Blue Swirl23130862009-06-06 08:22:04 +00001016#endif
1017STEXI
Markus Armbruster21413d62010-05-04 13:20:30 +02001018@item hostfwd_remove
1019@findex hostfwd_remove
1020Remove host-to-guest TCP or UDP redirection.
Blue Swirl23130862009-06-06 08:22:04 +00001021ETEXI
1022
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001023 {
1024 .name = "balloon",
Luiz Capitulino3b0bd6e2009-12-18 13:25:05 -02001025 .args_type = "value:M",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001026 .params = "target",
Riccardo Magliocchetti3c056132010-05-19 18:49:28 +02001027 .help = "request VM to change its memory allocation (in MB)",
Luiz Capitulino83fb1de2009-10-07 13:42:01 -03001028 .user_print = monitor_user_noop,
Adam Litke625a5be2010-01-26 14:17:35 -06001029 .mhandler.cmd_async = do_balloon,
Jan Kiszka8ac470c2010-06-16 00:38:39 +02001030 .flags = MONITOR_CMD_ASYNC,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001031 },
1032
Blue Swirl23130862009-06-06 08:22:04 +00001033STEXI
1034@item balloon @var{value}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001035@findex balloon
Blue Swirl23130862009-06-06 08:22:04 +00001036Request VM to change its memory allocation to @var{value} (in MB).
1037ETEXI
1038
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001039 {
1040 .name = "set_link",
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001041 .args_type = "name:s,up:b",
1042 .params = "name on|off",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001043 .help = "change the link status of a network adapter",
Markus Armbruster5369e3c2010-03-26 09:07:11 +01001044 .user_print = monitor_user_noop,
1045 .mhandler.cmd_new = do_set_link,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001046 },
1047
Blue Swirl23130862009-06-06 08:22:04 +00001048STEXI
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001049@item set_link @var{name} [on|off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001050@findex set_link
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001051Switch link @var{name} on (i.e. up) or off (i.e. down).
Blue Swirl23130862009-06-06 08:22:04 +00001052ETEXI
1053
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001054 {
1055 .name = "watchdog_action",
1056 .args_type = "action:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001057 .params = "[reset|shutdown|poweroff|pause|debug|none]",
1058 .help = "change watchdog action",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001059 .mhandler.cmd = do_watchdog_action,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001060 },
1061
Blue Swirl23130862009-06-06 08:22:04 +00001062STEXI
1063@item watchdog_action
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001064@findex watchdog_action
Blue Swirl23130862009-06-06 08:22:04 +00001065Change watchdog action.
1066ETEXI
1067
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001068 {
1069 .name = "acl_show",
1070 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001071 .params = "aclname",
1072 .help = "list rules in the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001073 .mhandler.cmd = do_acl_show,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001074 },
1075
Blue Swirl23130862009-06-06 08:22:04 +00001076STEXI
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001077@item acl_show @var{aclname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001078@findex acl_show
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001079List all the matching rules in the access control list, and the default
1080policy. There are currently two named access control lists,
1081@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
1082certificate distinguished name, and SASL username respectively.
1083ETEXI
Blue Swirl23130862009-06-06 08:22:04 +00001084
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001085 {
1086 .name = "acl_policy",
1087 .args_type = "aclname:s,policy:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001088 .params = "aclname allow|deny",
1089 .help = "set default access control list policy",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001090 .mhandler.cmd = do_acl_policy,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001091 },
1092
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001093STEXI
Jan Kiszkacbbfacc2009-07-03 08:46:05 +02001094@item acl_policy @var{aclname} @code{allow|deny}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001095@findex acl_policy
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001096Set the default access control list policy, used in the event that
Blue Swirl23130862009-06-06 08:22:04 +00001097none of the explicit rules match. The default policy at startup is
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001098always @code{deny}.
1099ETEXI
1100
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001101 {
1102 .name = "acl_add",
1103 .args_type = "aclname:s,match:s,policy:s,index:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001104 .params = "aclname match allow|deny [index]",
1105 .help = "add a match rule to the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001106 .mhandler.cmd = do_acl_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001107 },
1108
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001109STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001110@item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}]
1111@findex acl_add
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001112Add a match rule to the access control list, allowing or denying access.
1113The match will normally be an exact username or x509 distinguished name,
1114but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
1115allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
Blue Swirl23130862009-06-06 08:22:04 +00001116normally be appended to the end of the ACL, but can be inserted
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001117earlier in the list if the optional @var{index} parameter is supplied.
1118ETEXI
1119
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001120 {
1121 .name = "acl_remove",
1122 .args_type = "aclname:s,match:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001123 .params = "aclname match",
1124 .help = "remove a match rule from the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001125 .mhandler.cmd = do_acl_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001126 },
1127
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001128STEXI
1129@item acl_remove @var{aclname} @var{match}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001130@findex acl_remove
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001131Remove the specified match rule from the access control list.
1132ETEXI
1133
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001134 {
1135 .name = "acl_reset",
1136 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001137 .params = "aclname",
1138 .help = "reset the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001139 .mhandler.cmd = do_acl_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001140 },
1141
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001142STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001143@item acl_reset @var{aclname}
1144@findex acl_reset
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001145Remove all matches from the access control list, and set the default
Blue Swirl23130862009-06-06 08:22:04 +00001146policy back to @code{deny}.
Blue Swirl23130862009-06-06 08:22:04 +00001147ETEXI
1148
Huang Ying79c4f6b2009-06-23 10:05:14 +08001149#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001150
1151 {
1152 .name = "mce",
Jin Dongming31ce5e02010-12-10 17:21:02 +09001153 .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1154 .params = "[-b] cpu bank status mcgstatus addr misc",
1155 .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001156 .mhandler.cmd = do_inject_mce,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001157 },
1158
Huang Ying79c4f6b2009-06-23 10:05:14 +08001159#endif
1160STEXI
1161@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001162@findex mce (x86)
Huang Ying79c4f6b2009-06-23 10:05:14 +08001163Inject an MCE on the given CPU (x86 only).
1164ETEXI
1165
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001166 {
1167 .name = "getfd",
1168 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001169 .params = "getfd name",
1170 .help = "receive a file descriptor via SCM rights and assign it a name",
Luiz Capitulinof0d60002009-10-16 12:23:50 -03001171 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -02001172 .mhandler.cmd_new = do_getfd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001173 },
1174
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001175STEXI
1176@item getfd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001177@findex getfd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001178If a file descriptor is passed alongside this command using the SCM_RIGHTS
1179mechanism on unix sockets, it is stored using the name @var{fdname} for
1180later use by other monitor commands.
1181ETEXI
1182
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001183 {
1184 .name = "closefd",
1185 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001186 .params = "closefd name",
1187 .help = "close a file descriptor previously passed via SCM rights",
Luiz Capitulino18f3a512009-10-16 12:23:51 -03001188 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -02001189 .mhandler.cmd_new = do_closefd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001190 },
1191
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001192STEXI
1193@item closefd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001194@findex closefd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001195Close the file descriptor previously assigned to @var{fdname} using the
1196@code{getfd} command. This is only needed if the file descriptor was never
1197used by another monitor command.
1198ETEXI
1199
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001200 {
1201 .name = "block_passwd",
1202 .args_type = "device:B,password:s",
1203 .params = "block_passwd device password",
1204 .help = "set the password of encrypted block devices",
1205 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -02001206 .mhandler.cmd_new = do_block_set_passwd,
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001207 },
1208
1209STEXI
Zhi Yong Wu727f0052011-11-08 13:00:31 +08001210@item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1211@findex block_set_io_throttle
1212Change 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}
1213ETEXI
1214
1215 {
1216 .name = "block_set_io_throttle",
1217 .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
1218 .params = "device bps bps_rd bps_wr iops iops_rd iops_wr",
1219 .help = "change I/O throttle limits for a block drive",
1220 .user_print = monitor_user_noop,
1221 .mhandler.cmd_new = do_block_set_io_throttle,
1222 },
1223
1224STEXI
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001225@item block_passwd @var{device} @var{password}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001226@findex block_passwd
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001227Set the encrypted device @var{device} password to @var{password}
1228ETEXI
Jan Kiszkab40292e2010-05-31 14:43:31 -03001229
Jan Kiszka33572ec2010-05-31 14:43:30 -03001230 {
Gerd Hoffmann75721502010-10-07 12:22:54 +02001231 .name = "set_password",
1232 .args_type = "protocol:s,password:s,connected:s?",
1233 .params = "protocol password action-if-connected",
1234 .help = "set spice/vnc password",
1235 .user_print = monitor_user_noop,
1236 .mhandler.cmd_new = set_password,
1237 },
1238
1239STEXI
1240@item set_password [ vnc | spice ] password [ action-if-connected ]
1241@findex set_password
1242
1243Change spice/vnc password. Use zero to make the password stay valid
1244forever. @var{action-if-connected} specifies what should happen in
1245case a connection is established: @var{fail} makes the password change
1246fail. @var{disconnect} changes the password and disconnects the
1247client. @var{keep} changes the password and keeps the connection up.
1248@var{keep} is the default.
1249ETEXI
1250
1251 {
1252 .name = "expire_password",
1253 .args_type = "protocol:s,time:s",
1254 .params = "protocol time",
1255 .help = "set spice/vnc password expire-time",
1256 .user_print = monitor_user_noop,
1257 .mhandler.cmd_new = expire_password,
1258 },
1259
1260STEXI
1261@item expire_password [ vnc | spice ] expire-time
1262@findex expire_password
1263
1264Specify when a password for spice/vnc becomes
1265invalid. @var{expire-time} accepts:
1266
1267@table @var
1268@item now
1269Invalidate password instantly.
1270
1271@item never
1272Password stays valid forever.
1273
1274@item +nsec
1275Password stays valid for @var{nsec} seconds starting now.
1276
1277@item nsec
1278Password is invalidated at the given time. @var{nsec} are the seconds
1279passed since 1970, i.e. unix epoch.
1280
1281@end table
1282ETEXI
1283
1284 {
Jan Kiszka33572ec2010-05-31 14:43:30 -03001285 .name = "info",
1286 .args_type = "item:s?",
1287 .params = "[subcommand]",
1288 .help = "show various information about the system state",
Luiz Capitulino1162daa2010-09-13 12:15:26 -03001289 .mhandler.cmd = do_info,
Jan Kiszka33572ec2010-05-31 14:43:30 -03001290 },
1291
1292STEXI
1293@item info @var{subcommand}
1294@findex info
1295Show various information about the system state.
1296
1297@table @option
1298@item info version
1299show the version of QEMU
Jan Kiszka33572ec2010-05-31 14:43:30 -03001300@item info network
1301show the various VLANs and the associated devices
1302@item info chardev
1303show the character devices
1304@item info block
1305show the block devices
1306@item info blockstats
1307show block device statistics
1308@item info registers
1309show the cpu registers
1310@item info cpus
1311show infos for each CPU
1312@item info history
1313show the command line history
1314@item info irq
1315show the interrupts statistics (if available)
1316@item info pic
1317show i8259 (PIC) state
1318@item info pci
1319show emulated PCI device info
1320@item info tlb
Scott Woodbebabbc2011-08-18 10:38:42 +00001321show virtual to physical memory mappings (i386, SH4, SPARC, and PPC only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001322@item info mem
1323show the active virtual memory mappings (i386 only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001324@item info jit
1325show dynamic compiler info
Jan Kiszka33572ec2010-05-31 14:43:30 -03001326@item info numa
1327show NUMA information
Jan Kiszkab40292e2010-05-31 14:43:31 -03001328@item info kvm
1329show KVM information
Jan Kiszka33572ec2010-05-31 14:43:30 -03001330@item info usb
1331show USB devices plugged on the virtual USB hub
1332@item info usbhost
1333show all USB host devices
1334@item info profile
1335show profiling information
1336@item info capture
1337show information about active capturing
1338@item info snapshots
1339show list of VM snapshots
1340@item info status
1341show the current VM status (running|paused)
1342@item info pcmcia
1343show guest PCMCIA status
1344@item info mice
1345show which guest mouse is receiving events
1346@item info vnc
1347show the vnc server status
1348@item info name
1349show the current VM name
1350@item info uuid
1351show the current VM UUID
1352@item info cpustats
1353show CPU statistics
1354@item info usernet
1355show user network stack connection states
1356@item info migrate
1357show migration status
1358@item info balloon
1359show balloon information
1360@item info qtree
1361show device tree
1362@item info qdm
1363show qdev device model list
1364@item info roms
1365show roms
1366@end table
1367ETEXI
1368
Lluís6d8a7642011-08-31 20:30:43 +02001369#ifdef CONFIG_TRACE_SIMPLE
Prerna Saxena22890ab2010-06-24 17:04:53 +05301370STEXI
1371@item info trace
1372show contents of trace buffer
Lluís31965ae2011-08-31 20:31:24 +02001373ETEXI
1374#endif
1375
1376STEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301377@item info trace-events
1378show available trace events and their state
1379ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301380
Blue Swirl23130862009-06-06 08:22:04 +00001381STEXI
1382@end table
1383ETEXI