blob: 5f09594756fdd244285cc602a360f5afc0be6446 [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
Stefan Hajnoczi12bd4512012-01-18 14:40:46 +000072 {
73 .name = "block_stream",
74 .args_type = "device:B,base:s?",
75 .params = "device [base]",
76 .help = "copy data from a backing file into a block device",
77 .mhandler.cmd = hmp_block_stream,
78 },
79
80STEXI
81@item block_stream
82@findex block_stream
83Copy data from a backing file into a block device.
84ETEXI
Christoph Hellwig6d4a2b32011-01-24 13:32:33 +010085
86 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030087 .name = "eject",
Luiz Capitulino78d714e2009-12-14 18:53:21 -020088 .args_type = "force:-f,device:B",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030089 .params = "[-f] device",
90 .help = "eject a removable medium (use -f to force it)",
Luiz Capitulinoc245b6a2011-12-07 16:02:36 -020091 .mhandler.cmd = hmp_eject,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -030092 },
93
Blue Swirl23130862009-06-06 08:22:04 +000094STEXI
95@item eject [-f] @var{device}
Stefan Weil70fcbbe2010-02-05 23:52:04 +010096@findex eject
Blue Swirl23130862009-06-06 08:22:04 +000097Eject a removable medium (use -f to force it).
98ETEXI
99
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300100 {
Ryan Harper9063f812010-11-12 11:07:13 -0600101 .name = "drive_del",
102 .args_type = "id:s",
103 .params = "device",
104 .help = "remove host block device",
105 .user_print = monitor_user_noop,
106 .mhandler.cmd_new = do_drive_del,
107 },
108
109STEXI
110@item drive_del @var{device}
111@findex drive_del
112Remove host block device. The result is that guest generated IO is no longer
113submitted against the host device underlying the disk. Once a drive has
114been deleted, the QEMU Block layer returns -EIO which results in IO
115errors in the guest for applications that are reading/writing to the device.
116ETEXI
117
118 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300119 .name = "change",
120 .args_type = "device:B,target:F,arg:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300121 .params = "device filename [format]",
122 .help = "change a removable medium, optional format",
Luiz Capitulino333a96e2011-12-08 11:13:50 -0200123 .mhandler.cmd = hmp_change,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300124 },
125
Blue Swirl23130862009-06-06 08:22:04 +0000126STEXI
127@item change @var{device} @var{setting}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100128@findex change
Blue Swirl23130862009-06-06 08:22:04 +0000129
130Change the configuration of a device.
131
132@table @option
133@item change @var{diskdevice} @var{filename} [@var{format}]
134Change the medium for a removable disk device to point to @var{filename}. eg
135
136@example
137(qemu) change ide1-cd0 /path/to/some.iso
138@end example
139
140@var{format} is optional.
141
142@item change vnc @var{display},@var{options}
143Change the configuration of the VNC server. The valid syntax for @var{display}
144and @var{options} are described at @ref{sec_invocation}. eg
145
146@example
147(qemu) change vnc localhost:1
148@end example
149
150@item change vnc password [@var{password}]
151
152Change the password associated with the VNC server. If the new password is not
153supplied, the monitor will prompt for it to be entered. VNC passwords are only
154significant up to 8 letters. eg
155
156@example
157(qemu) change vnc password
158Password: ********
159@end example
160
161@end table
162ETEXI
163
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300164 {
165 .name = "screendump",
166 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300167 .params = "filename",
168 .help = "save screen into PPM image 'filename'",
Luiz Capitulinof1dc58e2010-03-31 15:21:49 -0300169 .user_print = monitor_user_noop,
170 .mhandler.cmd_new = do_screen_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300171 },
172
Blue Swirl23130862009-06-06 08:22:04 +0000173STEXI
174@item screendump @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100175@findex screendump
Blue Swirl23130862009-06-06 08:22:04 +0000176Save screen into PPM image @var{filename}.
177ETEXI
178
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300179 {
180 .name = "logfile",
181 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300182 .params = "filename",
183 .help = "output logs to 'filename'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300184 .mhandler.cmd = do_logfile,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300185 },
186
Blue Swirl23130862009-06-06 08:22:04 +0000187STEXI
188@item logfile @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100189@findex logfile
Blue Swirl23130862009-06-06 08:22:04 +0000190Output logs to @var{filename}.
191ETEXI
192
Prerna Saxena22890ab2010-06-24 17:04:53 +0530193 {
194 .name = "trace-event",
195 .args_type = "name:s,option:b",
196 .params = "name on|off",
197 .help = "changes status of a specific trace event",
Lluísfc764102011-08-31 20:31:18 +0200198 .mhandler.cmd = do_trace_event_set_state,
Prerna Saxena22890ab2010-06-24 17:04:53 +0530199 },
200
201STEXI
202@item trace-event
203@findex trace-event
204changes status of a trace event
205ETEXI
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100206
Michael Rothc45a8162011-10-02 08:44:37 -0500207#if defined(CONFIG_TRACE_SIMPLE)
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100208 {
209 .name = "trace-file",
210 .args_type = "op:s?,arg:F?",
211 .params = "on|off|flush|set [arg]",
212 .help = "open, close, or flush trace file, or set a new file name",
213 .mhandler.cmd = do_trace_file,
214 },
215
216STEXI
217@item trace-file on|off|flush
218@findex trace-file
219Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed.
220ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +0530221#endif
222
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300223 {
224 .name = "log",
225 .args_type = "items:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300226 .params = "item1[,...]",
227 .help = "activate logging of the specified items to '/tmp/qemu.log'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300228 .mhandler.cmd = do_log,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300229 },
230
Blue Swirl23130862009-06-06 08:22:04 +0000231STEXI
232@item log @var{item1}[,...]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100233@findex log
Blue Swirl23130862009-06-06 08:22:04 +0000234Activate logging of the specified items to @file{/tmp/qemu.log}.
235ETEXI
236
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300237 {
238 .name = "savevm",
239 .args_type = "name:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300240 .params = "[tag|id]",
241 .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300242 .mhandler.cmd = do_savevm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300243 },
244
Blue Swirl23130862009-06-06 08:22:04 +0000245STEXI
246@item savevm [@var{tag}|@var{id}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100247@findex savevm
Blue Swirl23130862009-06-06 08:22:04 +0000248Create a snapshot of the whole virtual machine. If @var{tag} is
249provided, it is used as human readable identifier. If there is already
250a snapshot with the same tag or ID, it is replaced. More info at
251@ref{vm_snapshots}.
252ETEXI
253
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300254 {
255 .name = "loadvm",
256 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300257 .params = "tag|id",
258 .help = "restore a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300259 .mhandler.cmd = do_loadvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300260 },
261
Blue Swirl23130862009-06-06 08:22:04 +0000262STEXI
263@item loadvm @var{tag}|@var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100264@findex loadvm
Blue Swirl23130862009-06-06 08:22:04 +0000265Set the whole virtual machine to the snapshot identified by the tag
266@var{tag} or the unique snapshot ID @var{id}.
267ETEXI
268
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300269 {
270 .name = "delvm",
271 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300272 .params = "tag|id",
273 .help = "delete a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300274 .mhandler.cmd = do_delvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300275 },
276
Blue Swirl23130862009-06-06 08:22:04 +0000277STEXI
278@item delvm @var{tag}|@var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100279@findex delvm
Blue Swirl23130862009-06-06 08:22:04 +0000280Delete the snapshot identified by @var{tag} or @var{id}.
281ETEXI
282
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300283 {
284 .name = "singlestep",
285 .args_type = "option:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300286 .params = "[on|off]",
287 .help = "run emulation in singlestep mode or switch to normal mode",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300288 .mhandler.cmd = do_singlestep,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300289 },
290
Blue Swirl23130862009-06-06 08:22:04 +0000291STEXI
292@item singlestep [off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100293@findex singlestep
Blue Swirl23130862009-06-06 08:22:04 +0000294Run the emulation in single step mode.
295If called with option off, the emulation returns to normal mode.
296ETEXI
297
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300298 {
299 .name = "stop",
300 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300301 .params = "",
302 .help = "stop emulation",
Luiz Capitulino5f158f22011-09-15 14:34:39 -0300303 .mhandler.cmd = hmp_stop,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300304 },
305
Blue Swirl23130862009-06-06 08:22:04 +0000306STEXI
307@item stop
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100308@findex stop
Blue Swirl23130862009-06-06 08:22:04 +0000309Stop emulation.
310ETEXI
311
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300312 {
313 .name = "c|cont",
314 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300315 .params = "",
316 .help = "resume emulation",
Luiz Capitulinoe42e8182011-11-22 17:58:31 -0200317 .mhandler.cmd = hmp_cont,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300318 },
319
Blue Swirl23130862009-06-06 08:22:04 +0000320STEXI
321@item c or cont
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100322@findex cont
Blue Swirl23130862009-06-06 08:22:04 +0000323Resume emulation.
324ETEXI
325
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300326 {
327 .name = "gdbserver",
328 .args_type = "device:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300329 .params = "[device]",
330 .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300331 .mhandler.cmd = do_gdbserver,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300332 },
333
Blue Swirl23130862009-06-06 08:22:04 +0000334STEXI
335@item gdbserver [@var{port}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100336@findex gdbserver
Blue Swirl23130862009-06-06 08:22:04 +0000337Start gdbserver session (default @var{port}=1234)
338ETEXI
339
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300340 {
341 .name = "x",
342 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300343 .params = "/fmt addr",
344 .help = "virtual memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300345 .mhandler.cmd = do_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300346 },
347
Blue Swirl23130862009-06-06 08:22:04 +0000348STEXI
349@item x/fmt @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100350@findex x
Blue Swirl23130862009-06-06 08:22:04 +0000351Virtual memory dump starting at @var{addr}.
352ETEXI
353
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300354 {
355 .name = "xp",
356 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300357 .params = "/fmt addr",
358 .help = "physical memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300359 .mhandler.cmd = do_physical_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300360 },
361
Blue Swirl23130862009-06-06 08:22:04 +0000362STEXI
363@item xp /@var{fmt} @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100364@findex xp
Blue Swirl23130862009-06-06 08:22:04 +0000365Physical memory dump starting at @var{addr}.
366
367@var{fmt} is a format which tells the command how to format the
368data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
369
370@table @var
371@item count
372is the number of items to be dumped.
373
374@item format
375can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
376c (char) or i (asm instruction).
377
378@item size
379can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
380@code{h} or @code{w} can be specified with the @code{i} format to
381respectively select 16 or 32 bit code instruction size.
382
383@end table
384
385Examples:
386@itemize
387@item
388Dump 10 instructions at the current instruction pointer:
389@example
390(qemu) x/10i $eip
3910x90107063: ret
3920x90107064: sti
3930x90107065: lea 0x0(%esi,1),%esi
3940x90107069: lea 0x0(%edi,1),%edi
3950x90107070: ret
3960x90107071: jmp 0x90107080
3970x90107073: nop
3980x90107074: nop
3990x90107075: nop
4000x90107076: nop
401@end example
402
403@item
404Dump 80 16 bit values at the start of the video memory.
405@smallexample
406(qemu) xp/80hx 0xb8000
4070x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
4080x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
4090x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
4100x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
4110x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
4120x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
4130x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4140x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4150x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4160x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
417@end smallexample
418@end itemize
419ETEXI
420
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300421 {
422 .name = "p|print",
423 .args_type = "fmt:/,val:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300424 .params = "/fmt expr",
425 .help = "print expression value (use $reg for CPU register access)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300426 .mhandler.cmd = do_print,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300427 },
428
Blue Swirl23130862009-06-06 08:22:04 +0000429STEXI
430@item p or print/@var{fmt} @var{expr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100431@findex print
Blue Swirl23130862009-06-06 08:22:04 +0000432
433Print expression value. Only the @var{format} part of @var{fmt} is
434used.
435ETEXI
436
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300437 {
438 .name = "i",
439 .args_type = "fmt:/,addr:i,index:i.",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300440 .params = "/fmt addr",
441 .help = "I/O port read",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300442 .mhandler.cmd = do_ioport_read,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300443 },
444
Blue Swirl23130862009-06-06 08:22:04 +0000445STEXI
446Read I/O port.
447ETEXI
448
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300449 {
450 .name = "o",
451 .args_type = "fmt:/,addr:i,val:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300452 .params = "/fmt addr value",
453 .help = "I/O port write",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300454 .mhandler.cmd = do_ioport_write,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300455 },
456
Jan Kiszkaf1147842009-07-14 10:20:11 +0200457STEXI
458Write to I/O port.
459ETEXI
Blue Swirl23130862009-06-06 08:22:04 +0000460
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300461 {
462 .name = "sendkey",
463 .args_type = "string:s,hold_time:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300464 .params = "keys [hold_ms]",
465 .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300466 .mhandler.cmd = do_sendkey,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300467 },
468
Blue Swirl23130862009-06-06 08:22:04 +0000469STEXI
470@item sendkey @var{keys}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100471@findex sendkey
Blue Swirl23130862009-06-06 08:22:04 +0000472
473Send @var{keys} to the emulator. @var{keys} could be the name of the
474key or @code{#} followed by the raw value in either decimal or hexadecimal
475format. Use @code{-} to press several keys simultaneously. Example:
476@example
477sendkey ctrl-alt-f1
478@end example
479
480This command is useful to send keys that your graphical user interface
481intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
482ETEXI
483
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300484 {
485 .name = "system_reset",
486 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300487 .params = "",
488 .help = "reset the system",
Luiz Capitulino38d22652011-09-15 14:41:46 -0300489 .mhandler.cmd = hmp_system_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300490 },
491
Blue Swirl23130862009-06-06 08:22:04 +0000492STEXI
493@item system_reset
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100494@findex system_reset
Blue Swirl23130862009-06-06 08:22:04 +0000495
496Reset the system.
497ETEXI
498
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300499 {
500 .name = "system_powerdown",
501 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300502 .params = "",
503 .help = "send system power down event",
Luiz Capitulino5bc465e2011-09-28 11:06:15 -0300504 .mhandler.cmd = hmp_system_powerdown,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300505 },
506
Blue Swirl23130862009-06-06 08:22:04 +0000507STEXI
508@item system_powerdown
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100509@findex system_powerdown
Blue Swirl23130862009-06-06 08:22:04 +0000510
511Power down the system (if supported).
512ETEXI
513
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300514 {
515 .name = "sum",
516 .args_type = "start:i,size:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300517 .params = "addr size",
518 .help = "compute the checksum of a memory region",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300519 .mhandler.cmd = do_sum,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300520 },
521
Blue Swirl23130862009-06-06 08:22:04 +0000522STEXI
523@item sum @var{addr} @var{size}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100524@findex sum
Blue Swirl23130862009-06-06 08:22:04 +0000525
526Compute the checksum of a memory region.
527ETEXI
528
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300529 {
530 .name = "usb_add",
531 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300532 .params = "device",
533 .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300534 .mhandler.cmd = do_usb_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300535 },
536
Blue Swirl23130862009-06-06 08:22:04 +0000537STEXI
538@item usb_add @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100539@findex usb_add
Blue Swirl23130862009-06-06 08:22:04 +0000540
541Add the USB device @var{devname}. For details of available devices see
542@ref{usb_devices}
543ETEXI
544
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300545 {
546 .name = "usb_del",
547 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300548 .params = "device",
549 .help = "remove USB device 'bus.addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300550 .mhandler.cmd = do_usb_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300551 },
552
Blue Swirl23130862009-06-06 08:22:04 +0000553STEXI
554@item usb_del @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100555@findex usb_del
Blue Swirl23130862009-06-06 08:22:04 +0000556
557Remove the USB device @var{devname} from the QEMU virtual USB
558hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
559command @code{info usb} to see the devices you can remove.
560ETEXI
561
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300562 {
563 .name = "device_add",
Markus Armbrusterc7e4e8c2010-02-10 20:47:28 +0100564 .args_type = "device:O",
565 .params = "driver[,prop=value][,...]",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300566 .help = "add device, like -device on the command line",
Markus Armbruster8bc27242010-02-10 20:52:01 +0100567 .user_print = monitor_user_noop,
568 .mhandler.cmd_new = do_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300569 },
570
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200571STEXI
572@item device_add @var{config}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100573@findex device_add
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200574
575Add device.
576ETEXI
577
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300578 {
579 .name = "device_del",
580 .args_type = "id:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300581 .params = "device",
582 .help = "remove device",
Markus Armbruster17a38ea2010-03-22 11:38:14 +0100583 .user_print = monitor_user_noop,
584 .mhandler.cmd_new = do_device_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300585 },
586
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200587STEXI
588@item device_del @var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100589@findex device_del
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200590
591Remove device @var{id}.
592ETEXI
593
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300594 {
595 .name = "cpu",
596 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300597 .params = "index",
598 .help = "set the default CPU",
Luiz Capitulino755f1962011-10-06 14:31:39 -0300599 .mhandler.cmd = hmp_cpu,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300600 },
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200601
Blue Swirl23130862009-06-06 08:22:04 +0000602STEXI
Markus Armbrusterc427ea92010-05-04 13:20:32 +0200603@item cpu @var{index}
604@findex cpu
Blue Swirl23130862009-06-06 08:22:04 +0000605Set the default CPU.
606ETEXI
607
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300608 {
609 .name = "mouse_move",
610 .args_type = "dx_str:s,dy_str:s,dz_str:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300611 .params = "dx dy [dz]",
612 .help = "send mouse move events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300613 .mhandler.cmd = do_mouse_move,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300614 },
615
Blue Swirl23130862009-06-06 08:22:04 +0000616STEXI
617@item mouse_move @var{dx} @var{dy} [@var{dz}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100618@findex mouse_move
Blue Swirl23130862009-06-06 08:22:04 +0000619Move the active mouse to the specified coordinates @var{dx} @var{dy}
620with optional scroll axis @var{dz}.
621ETEXI
622
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300623 {
624 .name = "mouse_button",
625 .args_type = "button_state:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300626 .params = "state",
627 .help = "change mouse button state (1=L, 2=M, 4=R)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300628 .mhandler.cmd = do_mouse_button,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300629 },
630
Blue Swirl23130862009-06-06 08:22:04 +0000631STEXI
632@item mouse_button @var{val}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100633@findex mouse_button
Blue Swirl23130862009-06-06 08:22:04 +0000634Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
635ETEXI
636
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300637 {
638 .name = "mouse_set",
639 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300640 .params = "index",
641 .help = "set which mouse device receives events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300642 .mhandler.cmd = do_mouse_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300643 },
644
Blue Swirl23130862009-06-06 08:22:04 +0000645STEXI
646@item mouse_set @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100647@findex mouse_set
Blue Swirl23130862009-06-06 08:22:04 +0000648Set which mouse device receives events at given @var{index}, index
649can be obtained with
650@example
651info mice
652@end example
653ETEXI
654
655#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300656 {
657 .name = "wavcapture",
658 .args_type = "path:F,freq:i?,bits:i?,nchannels:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300659 .params = "path [frequency [bits [channels]]]",
660 .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300661 .mhandler.cmd = do_wav_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300662 },
Blue Swirl23130862009-06-06 08:22:04 +0000663#endif
664STEXI
665@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100666@findex wavcapture
Blue Swirl23130862009-06-06 08:22:04 +0000667Capture audio into @var{filename}. Using sample rate @var{frequency}
668bits per sample @var{bits} and number of channels @var{channels}.
669
670Defaults:
671@itemize @minus
672@item Sample rate = 44100 Hz - CD quality
673@item Bits = 16
674@item Number of channels = 2 - Stereo
675@end itemize
676ETEXI
677
678#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300679 {
680 .name = "stopcapture",
681 .args_type = "n:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300682 .params = "capture index",
683 .help = "stop capture",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300684 .mhandler.cmd = do_stop_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300685 },
Blue Swirl23130862009-06-06 08:22:04 +0000686#endif
687STEXI
688@item stopcapture @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100689@findex stopcapture
Blue Swirl23130862009-06-06 08:22:04 +0000690Stop capture with a given @var{index}, index can be obtained with
691@example
692info capture
693@end example
694ETEXI
695
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300696 {
697 .name = "memsave",
698 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300699 .params = "addr size file",
700 .help = "save to disk virtual memory dump starting at 'addr' of size 'size'",
Luiz Capitulino0cfd6a92011-11-22 16:32:37 -0200701 .mhandler.cmd = hmp_memsave,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300702 },
703
Blue Swirl23130862009-06-06 08:22:04 +0000704STEXI
705@item memsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100706@findex memsave
Blue Swirl23130862009-06-06 08:22:04 +0000707save to disk virtual memory dump starting at @var{addr} of size @var{size}.
708ETEXI
709
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300710 {
711 .name = "pmemsave",
712 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300713 .params = "addr size file",
714 .help = "save to disk physical memory dump starting at 'addr' of size 'size'",
Luiz Capitulino6d3962b2011-11-22 17:26:46 -0200715 .mhandler.cmd = hmp_pmemsave,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300716 },
717
Blue Swirl23130862009-06-06 08:22:04 +0000718STEXI
719@item pmemsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100720@findex pmemsave
Blue Swirl23130862009-06-06 08:22:04 +0000721save to disk physical memory dump starting at @var{addr} of size @var{size}.
722ETEXI
723
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300724 {
725 .name = "boot_set",
726 .args_type = "bootdevice:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300727 .params = "bootdevice",
728 .help = "define new values for the boot device list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300729 .mhandler.cmd = do_boot_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300730 },
731
Blue Swirl23130862009-06-06 08:22:04 +0000732STEXI
733@item boot_set @var{bootdevicelist}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100734@findex boot_set
Blue Swirl23130862009-06-06 08:22:04 +0000735
736Define new values for the boot device list. Those values will override
737the values specified on the command line through the @code{-boot} option.
738
739The values that can be specified here depend on the machine type, but are
740the same that can be specified in the @code{-boot} command line option.
741ETEXI
742
743#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300744 {
745 .name = "nmi",
Luiz Capitulinoe9b4b432011-04-29 12:11:50 -0300746 .args_type = "",
747 .params = "",
748 .help = "inject an NMI on all guest's CPUs",
Luiz Capitulinoab49ab52011-11-23 12:55:53 -0200749 .mhandler.cmd = hmp_inject_nmi,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300750 },
Blue Swirl23130862009-06-06 08:22:04 +0000751#endif
752STEXI
753@item nmi @var{cpu}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100754@findex nmi
Blue Swirl23130862009-06-06 08:22:04 +0000755Inject an NMI on the given CPU (x86 only).
756ETEXI
757
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300758 {
759 .name = "migrate",
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200760 .args_type = "detach:-d,blk:-b,inc:-i,uri:s",
761 .params = "[-d] [-b] [-i] uri",
762 .help = "migrate to URI (using -d to not wait for completion)"
763 "\n\t\t\t -b for migration without shared storage with"
764 " full copy of disk\n\t\t\t -i for migration without "
765 "shared storage with incremental copy of disk "
766 "(base image shared between src and destination)",
767 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -0200768 .mhandler.cmd_new = do_migrate,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300769 },
770
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200771
Blue Swirl23130862009-06-06 08:22:04 +0000772STEXI
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200773@item migrate [-d] [-b] [-i] @var{uri}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100774@findex migrate
Blue Swirl23130862009-06-06 08:22:04 +0000775Migrate to @var{uri} (using -d to not wait for completion).
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200776 -b for migration with full copy of disk
777 -i for migration with incremental copy of disk (base image is shared)
Blue Swirl23130862009-06-06 08:22:04 +0000778ETEXI
779
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300780 {
781 .name = "migrate_cancel",
782 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300783 .params = "",
784 .help = "cancel the current VM migration",
Luiz Capitulino6cdedb02011-11-27 22:54:09 -0200785 .mhandler.cmd = hmp_migrate_cancel,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300786 },
787
Blue Swirl23130862009-06-06 08:22:04 +0000788STEXI
789@item migrate_cancel
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100790@findex migrate_cancel
Blue Swirl23130862009-06-06 08:22:04 +0000791Cancel the current VM migration.
792ETEXI
793
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300794 {
795 .name = "migrate_set_speed",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200796 .args_type = "value:o",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300797 .params = "value",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200798 .help = "set maximum speed (in bytes) for migrations. "
799 "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
Luiz Capitulino3dc85382011-11-28 11:59:37 -0200800 .mhandler.cmd = hmp_migrate_set_speed,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300801 },
802
Blue Swirl23130862009-06-06 08:22:04 +0000803STEXI
804@item migrate_set_speed @var{value}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100805@findex migrate_set_speed
Blue Swirl23130862009-06-06 08:22:04 +0000806Set maximum speed to @var{value} (in bytes) for migrations.
807ETEXI
808
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300809 {
810 .name = "migrate_set_downtime",
Markus Armbrusterb0fbf7d2010-01-25 14:23:07 +0100811 .args_type = "value:T",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300812 .params = "value",
813 .help = "set maximum tolerated downtime (in seconds) for migrations",
Luiz Capitulino4f0a9932011-11-27 23:18:01 -0200814 .mhandler.cmd = hmp_migrate_set_downtime,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300815 },
Glauber Costa2ea42952009-05-28 15:22:58 -0400816
817STEXI
818@item migrate_set_downtime @var{second}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100819@findex migrate_set_downtime
Glauber Costa2ea42952009-05-28 15:22:58 -0400820Set maximum tolerated downtime (in seconds) for migration.
821ETEXI
822
Jes Sorensenf8882562010-12-16 13:52:16 +0100823 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100824 .name = "client_migrate_info",
825 .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
826 .params = "protocol hostname port tls-port cert-subject",
827 .help = "send migration info to spice/vnc client",
828 .user_print = monitor_user_noop,
Yonit Halperinedc5cb12011-10-17 10:03:18 +0200829 .mhandler.cmd_async = client_migrate_info,
830 .flags = MONITOR_CMD_ASYNC,
Jes Sorensenf8882562010-12-16 13:52:16 +0100831 },
832
833STEXI
Gerd Hoffmanne866e232010-04-23 13:28:21 +0200834@item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject}
835@findex client_migrate_info
836Set the spice/vnc connection info for the migration target. The spice/vnc
837server will ask the spice/vnc client to automatically reconnect using the
838new parameters (if specified) once the vm migration finished successfully.
839ETEXI
840
841 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100842 .name = "snapshot_blkdev",
Jes Sorensend967b2f2011-07-11 20:01:09 +0200843 .args_type = "device:B,snapshot-file:s?,format:s?",
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100844 .params = "device [new-image-file] [format]",
845 .help = "initiates a live snapshot\n\t\t\t"
846 "of device. If a new image file is specified, the\n\t\t\t"
847 "new image file will become the new root image.\n\t\t\t"
848 "If format is specified, the snapshot file will\n\t\t\t"
849 "be created in that format. Otherwise the\n\t\t\t"
850 "snapshot will be internal! (currently unsupported)",
Luiz Capitulino6106e242011-11-25 16:15:19 -0200851 .mhandler.cmd = hmp_snapshot_blkdev,
Gerd Hoffmanne866e232010-04-23 13:28:21 +0200852 },
853
854STEXI
Jes Sorensenf8882562010-12-16 13:52:16 +0100855@item snapshot_blkdev
856@findex snapshot_blkdev
857Snapshot device, using snapshot file as target if provided
858ETEXI
859
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300860 {
861 .name = "drive_add",
862 .args_type = "pci_addr:s,opts:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300863 .params = "[[<domain>:]<bus>:]<slot>\n"
864 "[file=file][,if=type][,bus=n]\n"
Stefan Hajnoczifb0490f2011-11-17 13:40:32 +0000865 "[,unit=m][,media=d][,index=i]\n"
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300866 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
Stefan Hajnoczifb0490f2011-11-17 13:40:32 +0000867 "[,snapshot=on|off][,cache=on|off]\n"
868 "[,readonly=on|off][,copy-on-read=on|off]",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300869 .help = "add drive to PCI storage controller",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300870 .mhandler.cmd = drive_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300871 },
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300872
Blue Swirl23130862009-06-06 08:22:04 +0000873STEXI
874@item drive_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100875@findex drive_add
Blue Swirl23130862009-06-06 08:22:04 +0000876Add drive to PCI storage controller.
877ETEXI
878
879#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300880 {
881 .name = "pci_add",
882 .args_type = "pci_addr:s,type:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300883 .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
884 .help = "hot-add PCI device",
Markus Armbruster6c6a58a2010-05-12 10:53:00 +0200885 .mhandler.cmd = pci_device_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300886 },
Blue Swirl23130862009-06-06 08:22:04 +0000887#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300888
Blue Swirl23130862009-06-06 08:22:04 +0000889STEXI
890@item pci_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100891@findex pci_add
Blue Swirl23130862009-06-06 08:22:04 +0000892Hot-add PCI device.
893ETEXI
894
895#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300896 {
897 .name = "pci_del",
898 .args_type = "pci_addr:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300899 .params = "[[<domain>:]<bus>:]<slot>",
900 .help = "hot remove PCI device",
Markus Armbrusterb752daf2010-05-12 10:53:01 +0200901 .mhandler.cmd = do_pci_device_hot_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300902 },
Blue Swirl23130862009-06-06 08:22:04 +0000903#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300904
Blue Swirl23130862009-06-06 08:22:04 +0000905STEXI
906@item pci_del
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100907@findex pci_del
Blue Swirl23130862009-06-06 08:22:04 +0000908Hot remove PCI device.
909ETEXI
910
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300911 {
Isaku Yamahata2ae63bd2010-12-24 12:14:14 +0900912 .name = "pcie_aer_inject_error",
913 .args_type = "advisory_non_fatal:-a,correctable:-c,"
914 "id:s,error_status:s,"
915 "header0:i?,header1:i?,header2:i?,header3:i?,"
916 "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?",
917 .params = "[-a] [-c] id "
918 "<error_status> [<tlp header> [<tlp header prefix>]]",
919 .help = "inject pcie aer error\n\t\t\t"
920 " -a for advisory non fatal error\n\t\t\t"
921 " -c for correctable error\n\t\t\t"
922 "<id> = qdev device id\n\t\t\t"
923 "<error_status> = error string or 32bit\n\t\t\t"
924 "<tlb header> = 32bit x 4\n\t\t\t"
925 "<tlb header prefix> = 32bit x 4",
926 .user_print = pcie_aer_inject_error_print,
Zhi Yong Wu1f3392b2011-11-30 12:39:47 +0800927 .mhandler.cmd_new = do_pcie_aer_inject_error,
Isaku Yamahata2ae63bd2010-12-24 12:14:14 +0900928 },
929
930STEXI
931@item pcie_aer_inject_error
932@findex pcie_aer_inject_error
933Inject PCIe AER error
934ETEXI
935
936 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300937 .name = "host_net_add",
938 .args_type = "device:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300939 .params = "tap|user|socket|vde|dump [options]",
940 .help = "add host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300941 .mhandler.cmd = net_host_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300942 },
943
Blue Swirl23130862009-06-06 08:22:04 +0000944STEXI
945@item host_net_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100946@findex host_net_add
Blue Swirl23130862009-06-06 08:22:04 +0000947Add host VLAN client.
948ETEXI
949
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300950 {
951 .name = "host_net_remove",
952 .args_type = "vlan_id:i,device:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300953 .params = "vlan_id name",
954 .help = "remove host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300955 .mhandler.cmd = net_host_device_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300956 },
957
Blue Swirl23130862009-06-06 08:22:04 +0000958STEXI
959@item host_net_remove
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100960@findex host_net_remove
Blue Swirl23130862009-06-06 08:22:04 +0000961Remove host VLAN client.
962ETEXI
963
Markus Armbrusterae82d322010-03-25 17:22:40 +0100964 {
965 .name = "netdev_add",
966 .args_type = "netdev:O",
967 .params = "[user|tap|socket],id=str[,prop=value][,...]",
968 .help = "add host network device",
969 .user_print = monitor_user_noop,
970 .mhandler.cmd_new = do_netdev_add,
971 },
972
973STEXI
974@item netdev_add
975@findex netdev_add
976Add host network device.
977ETEXI
978
979 {
980 .name = "netdev_del",
981 .args_type = "id:s",
982 .params = "id",
983 .help = "remove host network device",
984 .user_print = monitor_user_noop,
985 .mhandler.cmd_new = do_netdev_del,
986 },
987
988STEXI
989@item netdev_del
990@findex netdev_del
991Remove host network device.
992ETEXI
993
Blue Swirl23130862009-06-06 08:22:04 +0000994#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300995 {
996 .name = "hostfwd_add",
997 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300998 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
999 .help = "redirect TCP or UDP connections from host to guest (requires -net user)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001000 .mhandler.cmd = net_slirp_hostfwd_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001001 },
Markus Armbruster21413d62010-05-04 13:20:30 +02001002#endif
1003STEXI
1004@item hostfwd_add
1005@findex hostfwd_add
1006Redirect TCP or UDP connections from host to guest (requires -net user).
1007ETEXI
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001008
Markus Armbruster21413d62010-05-04 13:20:30 +02001009#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001010 {
1011 .name = "hostfwd_remove",
1012 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001013 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
1014 .help = "remove host-to-guest TCP or UDP redirection",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001015 .mhandler.cmd = net_slirp_hostfwd_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001016 },
1017
Blue Swirl23130862009-06-06 08:22:04 +00001018#endif
1019STEXI
Markus Armbruster21413d62010-05-04 13:20:30 +02001020@item hostfwd_remove
1021@findex hostfwd_remove
1022Remove host-to-guest TCP or UDP redirection.
Blue Swirl23130862009-06-06 08:22:04 +00001023ETEXI
1024
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001025 {
1026 .name = "balloon",
Luiz Capitulino3b0bd6e2009-12-18 13:25:05 -02001027 .args_type = "value:M",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001028 .params = "target",
Riccardo Magliocchetti3c056132010-05-19 18:49:28 +02001029 .help = "request VM to change its memory allocation (in MB)",
Luiz Capitulinod72f3262011-11-25 14:38:09 -02001030 .mhandler.cmd = hmp_balloon,
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",
Luiz Capitulino4b371562011-11-23 13:11:55 -02001044 .mhandler.cmd = hmp_set_link,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001045 },
1046
Blue Swirl23130862009-06-06 08:22:04 +00001047STEXI
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001048@item set_link @var{name} [on|off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001049@findex set_link
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001050Switch link @var{name} on (i.e. up) or off (i.e. down).
Blue Swirl23130862009-06-06 08:22:04 +00001051ETEXI
1052
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001053 {
1054 .name = "watchdog_action",
1055 .args_type = "action:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001056 .params = "[reset|shutdown|poweroff|pause|debug|none]",
1057 .help = "change watchdog action",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001058 .mhandler.cmd = do_watchdog_action,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001059 },
1060
Blue Swirl23130862009-06-06 08:22:04 +00001061STEXI
1062@item watchdog_action
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001063@findex watchdog_action
Blue Swirl23130862009-06-06 08:22:04 +00001064Change watchdog action.
1065ETEXI
1066
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001067 {
1068 .name = "acl_show",
1069 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001070 .params = "aclname",
1071 .help = "list rules in the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001072 .mhandler.cmd = do_acl_show,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001073 },
1074
Blue Swirl23130862009-06-06 08:22:04 +00001075STEXI
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001076@item acl_show @var{aclname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001077@findex acl_show
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001078List all the matching rules in the access control list, and the default
1079policy. There are currently two named access control lists,
1080@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
1081certificate distinguished name, and SASL username respectively.
1082ETEXI
Blue Swirl23130862009-06-06 08:22:04 +00001083
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001084 {
1085 .name = "acl_policy",
1086 .args_type = "aclname:s,policy:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001087 .params = "aclname allow|deny",
1088 .help = "set default access control list policy",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001089 .mhandler.cmd = do_acl_policy,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001090 },
1091
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001092STEXI
Jan Kiszkacbbfacc2009-07-03 08:46:05 +02001093@item acl_policy @var{aclname} @code{allow|deny}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001094@findex acl_policy
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001095Set the default access control list policy, used in the event that
Blue Swirl23130862009-06-06 08:22:04 +00001096none of the explicit rules match. The default policy at startup is
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001097always @code{deny}.
1098ETEXI
1099
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001100 {
1101 .name = "acl_add",
1102 .args_type = "aclname:s,match:s,policy:s,index:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001103 .params = "aclname match allow|deny [index]",
1104 .help = "add a match rule to the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001105 .mhandler.cmd = do_acl_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001106 },
1107
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001108STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001109@item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}]
1110@findex acl_add
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001111Add a match rule to the access control list, allowing or denying access.
1112The match will normally be an exact username or x509 distinguished name,
1113but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
1114allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
Blue Swirl23130862009-06-06 08:22:04 +00001115normally be appended to the end of the ACL, but can be inserted
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001116earlier in the list if the optional @var{index} parameter is supplied.
1117ETEXI
1118
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001119 {
1120 .name = "acl_remove",
1121 .args_type = "aclname:s,match:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001122 .params = "aclname match",
1123 .help = "remove a match rule from the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001124 .mhandler.cmd = do_acl_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001125 },
1126
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001127STEXI
1128@item acl_remove @var{aclname} @var{match}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001129@findex acl_remove
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001130Remove the specified match rule from the access control list.
1131ETEXI
1132
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001133 {
1134 .name = "acl_reset",
1135 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001136 .params = "aclname",
1137 .help = "reset the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001138 .mhandler.cmd = do_acl_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001139 },
1140
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001141STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001142@item acl_reset @var{aclname}
1143@findex acl_reset
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001144Remove all matches from the access control list, and set the default
Blue Swirl23130862009-06-06 08:22:04 +00001145policy back to @code{deny}.
Blue Swirl23130862009-06-06 08:22:04 +00001146ETEXI
1147
Huang Ying79c4f6b2009-06-23 10:05:14 +08001148#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001149
1150 {
1151 .name = "mce",
Jin Dongming31ce5e02010-12-10 17:21:02 +09001152 .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1153 .params = "[-b] cpu bank status mcgstatus addr misc",
1154 .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001155 .mhandler.cmd = do_inject_mce,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001156 },
1157
Huang Ying79c4f6b2009-06-23 10:05:14 +08001158#endif
1159STEXI
1160@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001161@findex mce (x86)
Huang Ying79c4f6b2009-06-23 10:05:14 +08001162Inject an MCE on the given CPU (x86 only).
1163ETEXI
1164
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001165 {
1166 .name = "getfd",
1167 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001168 .params = "getfd name",
1169 .help = "receive a file descriptor via SCM rights and assign it a name",
Luiz Capitulinof0d60002009-10-16 12:23:50 -03001170 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -02001171 .mhandler.cmd_new = do_getfd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001172 },
1173
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001174STEXI
1175@item getfd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001176@findex getfd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001177If a file descriptor is passed alongside this command using the SCM_RIGHTS
1178mechanism on unix sockets, it is stored using the name @var{fdname} for
1179later use by other monitor commands.
1180ETEXI
1181
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001182 {
1183 .name = "closefd",
1184 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001185 .params = "closefd name",
1186 .help = "close a file descriptor previously passed via SCM rights",
Luiz Capitulino18f3a512009-10-16 12:23:51 -03001187 .user_print = monitor_user_noop,
Luiz Capitulino261394d2010-02-10 23:50:02 -02001188 .mhandler.cmd_new = do_closefd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001189 },
1190
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001191STEXI
1192@item closefd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001193@findex closefd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001194Close the file descriptor previously assigned to @var{fdname} using the
1195@code{getfd} command. This is only needed if the file descriptor was never
1196used by another monitor command.
1197ETEXI
1198
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001199 {
1200 .name = "block_passwd",
1201 .args_type = "device:B,password:s",
1202 .params = "block_passwd device password",
1203 .help = "set the password of encrypted block devices",
Luiz Capitulinoa4dea8a2011-11-23 13:28:21 -02001204 .mhandler.cmd = hmp_block_passwd,
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001205 },
1206
1207STEXI
Zhi Yong Wu727f0052011-11-08 13:00:31 +08001208@item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1209@findex block_set_io_throttle
1210Change 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}
1211ETEXI
1212
1213 {
1214 .name = "block_set_io_throttle",
1215 .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
1216 .params = "device bps bps_rd bps_wr iops iops_rd iops_wr",
1217 .help = "change I/O throttle limits for a block drive",
Luiz Capitulino80047da2011-12-14 16:49:14 -02001218 .mhandler.cmd = hmp_block_set_io_throttle,
Zhi Yong Wu727f0052011-11-08 13:00:31 +08001219 },
1220
1221STEXI
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001222@item block_passwd @var{device} @var{password}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001223@findex block_passwd
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001224Set the encrypted device @var{device} password to @var{password}
1225ETEXI
Jan Kiszkab40292e2010-05-31 14:43:31 -03001226
Jan Kiszka33572ec2010-05-31 14:43:30 -03001227 {
Gerd Hoffmann75721502010-10-07 12:22:54 +02001228 .name = "set_password",
1229 .args_type = "protocol:s,password:s,connected:s?",
1230 .params = "protocol password action-if-connected",
1231 .help = "set spice/vnc password",
Luiz Capitulinofbf796f2011-12-07 11:17:51 -02001232 .mhandler.cmd = hmp_set_password,
Gerd Hoffmann75721502010-10-07 12:22:54 +02001233 },
1234
1235STEXI
1236@item set_password [ vnc | spice ] password [ action-if-connected ]
1237@findex set_password
1238
1239Change spice/vnc password. Use zero to make the password stay valid
1240forever. @var{action-if-connected} specifies what should happen in
1241case a connection is established: @var{fail} makes the password change
1242fail. @var{disconnect} changes the password and disconnects the
1243client. @var{keep} changes the password and keeps the connection up.
1244@var{keep} is the default.
1245ETEXI
1246
1247 {
1248 .name = "expire_password",
1249 .args_type = "protocol:s,time:s",
1250 .params = "protocol time",
1251 .help = "set spice/vnc password expire-time",
Luiz Capitulino9ad53722011-12-07 11:47:57 -02001252 .mhandler.cmd = hmp_expire_password,
Gerd Hoffmann75721502010-10-07 12:22:54 +02001253 },
1254
1255STEXI
1256@item expire_password [ vnc | spice ] expire-time
1257@findex expire_password
1258
1259Specify when a password for spice/vnc becomes
1260invalid. @var{expire-time} accepts:
1261
1262@table @var
1263@item now
1264Invalidate password instantly.
1265
1266@item never
1267Password stays valid forever.
1268
1269@item +nsec
1270Password stays valid for @var{nsec} seconds starting now.
1271
1272@item nsec
1273Password is invalidated at the given time. @var{nsec} are the seconds
1274passed since 1970, i.e. unix epoch.
1275
1276@end table
1277ETEXI
1278
1279 {
Jan Kiszka33572ec2010-05-31 14:43:30 -03001280 .name = "info",
1281 .args_type = "item:s?",
1282 .params = "[subcommand]",
1283 .help = "show various information about the system state",
Luiz Capitulino1162daa2010-09-13 12:15:26 -03001284 .mhandler.cmd = do_info,
Jan Kiszka33572ec2010-05-31 14:43:30 -03001285 },
1286
1287STEXI
1288@item info @var{subcommand}
1289@findex info
1290Show various information about the system state.
1291
1292@table @option
1293@item info version
1294show the version of QEMU
Jan Kiszka33572ec2010-05-31 14:43:30 -03001295@item info network
1296show the various VLANs and the associated devices
1297@item info chardev
1298show the character devices
1299@item info block
1300show the block devices
1301@item info blockstats
1302show block device statistics
1303@item info registers
1304show the cpu registers
1305@item info cpus
1306show infos for each CPU
1307@item info history
1308show the command line history
1309@item info irq
1310show the interrupts statistics (if available)
1311@item info pic
1312show i8259 (PIC) state
1313@item info pci
1314show emulated PCI device info
1315@item info tlb
Scott Woodbebabbc2011-08-18 10:38:42 +00001316show virtual to physical memory mappings (i386, SH4, SPARC, and PPC only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001317@item info mem
1318show the active virtual memory mappings (i386 only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001319@item info jit
1320show dynamic compiler info
Jan Kiszka33572ec2010-05-31 14:43:30 -03001321@item info numa
1322show NUMA information
Jan Kiszkab40292e2010-05-31 14:43:31 -03001323@item info kvm
1324show KVM information
Jan Kiszka33572ec2010-05-31 14:43:30 -03001325@item info usb
1326show USB devices plugged on the virtual USB hub
1327@item info usbhost
1328show all USB host devices
1329@item info profile
1330show profiling information
1331@item info capture
1332show information about active capturing
1333@item info snapshots
1334show list of VM snapshots
1335@item info status
1336show the current VM status (running|paused)
1337@item info pcmcia
1338show guest PCMCIA status
1339@item info mice
1340show which guest mouse is receiving events
1341@item info vnc
1342show the vnc server status
1343@item info name
1344show the current VM name
1345@item info uuid
1346show the current VM UUID
1347@item info cpustats
1348show CPU statistics
1349@item info usernet
1350show user network stack connection states
1351@item info migrate
1352show migration status
1353@item info balloon
1354show balloon information
1355@item info qtree
1356show device tree
1357@item info qdm
1358show qdev device model list
1359@item info roms
1360show roms
1361@end table
1362ETEXI
1363
Lluís6d8a7642011-08-31 20:30:43 +02001364#ifdef CONFIG_TRACE_SIMPLE
Prerna Saxena22890ab2010-06-24 17:04:53 +05301365STEXI
1366@item info trace
1367show contents of trace buffer
Lluís31965ae2011-08-31 20:31:24 +02001368ETEXI
1369#endif
1370
1371STEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301372@item info trace-events
1373show available trace events and their state
1374ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301375
Blue Swirl23130862009-06-06 08:22:04 +00001376STEXI
1377@end table
1378ETEXI