blob: bdd48f3469e0cd3fb76d7b4e3ee732e22f005ecf [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",
Stefan Hajnoczic83c66c2012-04-25 16:51:03 +010074 .args_type = "device:B,speed:o?,base:s?",
75 .params = "device [speed [base]]",
Stefan Hajnoczi12bd4512012-01-18 14:40:46 +000076 .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 {
Stefan Hajnoczi2d47c6e2012-01-18 14:40:47 +000087 .name = "block_job_set_speed",
Stefan Hajnoczi882ec7c2012-04-25 16:51:02 +010088 .args_type = "device:B,speed:o",
89 .params = "device speed",
Stefan Hajnoczi2d47c6e2012-01-18 14:40:47 +000090 .help = "set maximum speed for a background block operation",
91 .mhandler.cmd = hmp_block_job_set_speed,
92 },
93
94STEXI
Paolo Bonzini4451b792012-04-13 12:03:46 +020095@item block_job_set_speed
96@findex block_job_set_speed
Stefan Hajnoczi2d47c6e2012-01-18 14:40:47 +000097Set maximum speed for a background block operation.
98ETEXI
99
100 {
Stefan Hajnoczi370521a2012-01-18 14:40:48 +0000101 .name = "block_job_cancel",
Paolo Bonzini6e37fb82012-09-28 17:22:51 +0200102 .args_type = "force:-f,device:B",
103 .params = "[-f] device",
104 .help = "stop an active background block operation (use -f"
105 "\n\t\t\t if the operation is currently paused)",
Stefan Hajnoczi370521a2012-01-18 14:40:48 +0000106 .mhandler.cmd = hmp_block_job_cancel,
107 },
108
109STEXI
110@item block_job_cancel
111@findex block_job_cancel
Paolo Bonziniaeae8832012-10-18 16:49:21 +0200112Stop an active background block operation (streaming, mirroring).
113ETEXI
114
115 {
116 .name = "block_job_complete",
117 .args_type = "device:B",
118 .params = "device",
119 .help = "stop an active background block operation",
120 .mhandler.cmd = hmp_block_job_complete,
121 },
122
123STEXI
124@item block_job_complete
125@findex block_job_complete
126Manually trigger completion of an active background block operation.
127For mirroring, this will switch the device to the destination path.
Stefan Hajnoczi370521a2012-01-18 14:40:48 +0000128ETEXI
129
130 {
Paolo Bonzini6e37fb82012-09-28 17:22:51 +0200131 .name = "block_job_pause",
132 .args_type = "device:B",
133 .params = "device",
134 .help = "pause an active background block operation",
135 .mhandler.cmd = hmp_block_job_pause,
136 },
137
138STEXI
139@item block_job_pause
140@findex block_job_pause
141Pause an active block streaming operation.
142ETEXI
143
144 {
145 .name = "block_job_resume",
146 .args_type = "device:B",
147 .params = "device",
148 .help = "resume a paused background block operation",
149 .mhandler.cmd = hmp_block_job_resume,
150 },
151
152STEXI
153@item block_job_resume
154@findex block_job_resume
155Resume a paused block streaming operation.
156ETEXI
157
158 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300159 .name = "eject",
Luiz Capitulino78d714e2009-12-14 18:53:21 -0200160 .args_type = "force:-f,device:B",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300161 .params = "[-f] device",
162 .help = "eject a removable medium (use -f to force it)",
Luiz Capitulinoc245b6a2011-12-07 16:02:36 -0200163 .mhandler.cmd = hmp_eject,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300164 },
165
Blue Swirl23130862009-06-06 08:22:04 +0000166STEXI
167@item eject [-f] @var{device}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100168@findex eject
Blue Swirl23130862009-06-06 08:22:04 +0000169Eject a removable medium (use -f to force it).
170ETEXI
171
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300172 {
Ryan Harper9063f812010-11-12 11:07:13 -0600173 .name = "drive_del",
174 .args_type = "id:s",
175 .params = "device",
176 .help = "remove host block device",
177 .user_print = monitor_user_noop,
178 .mhandler.cmd_new = do_drive_del,
179 },
180
181STEXI
182@item drive_del @var{device}
183@findex drive_del
184Remove host block device. The result is that guest generated IO is no longer
185submitted against the host device underlying the disk. Once a drive has
186been deleted, the QEMU Block layer returns -EIO which results in IO
187errors in the guest for applications that are reading/writing to the device.
188ETEXI
189
190 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300191 .name = "change",
192 .args_type = "device:B,target:F,arg:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300193 .params = "device filename [format]",
194 .help = "change a removable medium, optional format",
Luiz Capitulino333a96e2011-12-08 11:13:50 -0200195 .mhandler.cmd = hmp_change,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300196 },
197
Blue Swirl23130862009-06-06 08:22:04 +0000198STEXI
199@item change @var{device} @var{setting}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100200@findex change
Blue Swirl23130862009-06-06 08:22:04 +0000201
202Change the configuration of a device.
203
204@table @option
205@item change @var{diskdevice} @var{filename} [@var{format}]
206Change the medium for a removable disk device to point to @var{filename}. eg
207
208@example
209(qemu) change ide1-cd0 /path/to/some.iso
210@end example
211
212@var{format} is optional.
213
214@item change vnc @var{display},@var{options}
215Change the configuration of the VNC server. The valid syntax for @var{display}
216and @var{options} are described at @ref{sec_invocation}. eg
217
218@example
219(qemu) change vnc localhost:1
220@end example
221
222@item change vnc password [@var{password}]
223
224Change the password associated with the VNC server. If the new password is not
225supplied, the monitor will prompt for it to be entered. VNC passwords are only
226significant up to 8 letters. eg
227
228@example
229(qemu) change vnc password
230Password: ********
231@end example
232
233@end table
234ETEXI
235
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300236 {
237 .name = "screendump",
238 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300239 .params = "filename",
240 .help = "save screen into PPM image 'filename'",
Luiz Capitulinoad39cf62012-05-24 13:48:23 -0300241 .mhandler.cmd = hmp_screen_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300242 },
243
Blue Swirl23130862009-06-06 08:22:04 +0000244STEXI
245@item screendump @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100246@findex screendump
Blue Swirl23130862009-06-06 08:22:04 +0000247Save screen into PPM image @var{filename}.
248ETEXI
249
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300250 {
251 .name = "logfile",
252 .args_type = "filename:F",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300253 .params = "filename",
254 .help = "output logs to 'filename'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300255 .mhandler.cmd = do_logfile,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300256 },
257
Blue Swirl23130862009-06-06 08:22:04 +0000258STEXI
259@item logfile @var{filename}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100260@findex logfile
Blue Swirl23130862009-06-06 08:22:04 +0000261Output logs to @var{filename}.
262ETEXI
263
Prerna Saxena22890ab2010-06-24 17:04:53 +0530264 {
265 .name = "trace-event",
266 .args_type = "name:s,option:b",
267 .params = "name on|off",
268 .help = "changes status of a specific trace event",
LluĂ­sfc764102011-08-31 20:31:18 +0200269 .mhandler.cmd = do_trace_event_set_state,
Prerna Saxena22890ab2010-06-24 17:04:53 +0530270 },
271
272STEXI
273@item trace-event
274@findex trace-event
275changes status of a trace event
276ETEXI
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100277
Michael Rothc45a8162011-10-02 08:44:37 -0500278#if defined(CONFIG_TRACE_SIMPLE)
Stefan Hajnoczic5ceb522010-07-13 09:26:33 +0100279 {
280 .name = "trace-file",
281 .args_type = "op:s?,arg:F?",
282 .params = "on|off|flush|set [arg]",
283 .help = "open, close, or flush trace file, or set a new file name",
284 .mhandler.cmd = do_trace_file,
285 },
286
287STEXI
288@item trace-file on|off|flush
289@findex trace-file
290Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed.
291ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +0530292#endif
293
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300294 {
295 .name = "log",
296 .args_type = "items:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300297 .params = "item1[,...]",
298 .help = "activate logging of the specified items to '/tmp/qemu.log'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300299 .mhandler.cmd = do_log,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300300 },
301
Blue Swirl23130862009-06-06 08:22:04 +0000302STEXI
303@item log @var{item1}[,...]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100304@findex log
Blue Swirl23130862009-06-06 08:22:04 +0000305Activate logging of the specified items to @file{/tmp/qemu.log}.
306ETEXI
307
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300308 {
309 .name = "savevm",
310 .args_type = "name:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300311 .params = "[tag|id]",
312 .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300313 .mhandler.cmd = do_savevm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300314 },
315
Blue Swirl23130862009-06-06 08:22:04 +0000316STEXI
317@item savevm [@var{tag}|@var{id}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100318@findex savevm
Blue Swirl23130862009-06-06 08:22:04 +0000319Create a snapshot of the whole virtual machine. If @var{tag} is
320provided, it is used as human readable identifier. If there is already
321a snapshot with the same tag or ID, it is replaced. More info at
322@ref{vm_snapshots}.
323ETEXI
324
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300325 {
326 .name = "loadvm",
327 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300328 .params = "tag|id",
329 .help = "restore a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300330 .mhandler.cmd = do_loadvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300331 },
332
Blue Swirl23130862009-06-06 08:22:04 +0000333STEXI
334@item loadvm @var{tag}|@var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100335@findex loadvm
Blue Swirl23130862009-06-06 08:22:04 +0000336Set the whole virtual machine to the snapshot identified by the tag
337@var{tag} or the unique snapshot ID @var{id}.
338ETEXI
339
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300340 {
341 .name = "delvm",
342 .args_type = "name:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300343 .params = "tag|id",
344 .help = "delete a VM snapshot from its tag or id",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300345 .mhandler.cmd = do_delvm,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300346 },
347
Blue Swirl23130862009-06-06 08:22:04 +0000348STEXI
349@item delvm @var{tag}|@var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100350@findex delvm
Blue Swirl23130862009-06-06 08:22:04 +0000351Delete the snapshot identified by @var{tag} or @var{id}.
352ETEXI
353
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300354 {
355 .name = "singlestep",
356 .args_type = "option:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300357 .params = "[on|off]",
358 .help = "run emulation in singlestep mode or switch to normal mode",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300359 .mhandler.cmd = do_singlestep,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300360 },
361
Blue Swirl23130862009-06-06 08:22:04 +0000362STEXI
363@item singlestep [off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100364@findex singlestep
Blue Swirl23130862009-06-06 08:22:04 +0000365Run the emulation in single step mode.
366If called with option off, the emulation returns to normal mode.
367ETEXI
368
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300369 {
370 .name = "stop",
371 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300372 .params = "",
373 .help = "stop emulation",
Luiz Capitulino5f158f22011-09-15 14:34:39 -0300374 .mhandler.cmd = hmp_stop,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300375 },
376
Blue Swirl23130862009-06-06 08:22:04 +0000377STEXI
378@item stop
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100379@findex stop
Blue Swirl23130862009-06-06 08:22:04 +0000380Stop emulation.
381ETEXI
382
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300383 {
384 .name = "c|cont",
385 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300386 .params = "",
387 .help = "resume emulation",
Luiz Capitulinoe42e8182011-11-22 17:58:31 -0200388 .mhandler.cmd = hmp_cont,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300389 },
390
Blue Swirl23130862009-06-06 08:22:04 +0000391STEXI
392@item c or cont
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100393@findex cont
Blue Swirl23130862009-06-06 08:22:04 +0000394Resume emulation.
395ETEXI
396
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300397 {
Gerd Hoffmann9b9df252012-02-23 13:45:21 +0100398 .name = "system_wakeup",
399 .args_type = "",
400 .params = "",
401 .help = "wakeup guest from suspend",
402 .mhandler.cmd = hmp_system_wakeup,
403 },
404
405STEXI
406@item system_wakeup
407@findex system_wakeup
408Wakeup guest from suspend.
409ETEXI
410
411 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300412 .name = "gdbserver",
413 .args_type = "device:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300414 .params = "[device]",
415 .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300416 .mhandler.cmd = do_gdbserver,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300417 },
418
Blue Swirl23130862009-06-06 08:22:04 +0000419STEXI
420@item gdbserver [@var{port}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100421@findex gdbserver
Blue Swirl23130862009-06-06 08:22:04 +0000422Start gdbserver session (default @var{port}=1234)
423ETEXI
424
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300425 {
426 .name = "x",
427 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300428 .params = "/fmt addr",
429 .help = "virtual memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300430 .mhandler.cmd = do_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300431 },
432
Blue Swirl23130862009-06-06 08:22:04 +0000433STEXI
434@item x/fmt @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100435@findex x
Blue Swirl23130862009-06-06 08:22:04 +0000436Virtual memory dump starting at @var{addr}.
437ETEXI
438
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300439 {
440 .name = "xp",
441 .args_type = "fmt:/,addr:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300442 .params = "/fmt addr",
443 .help = "physical memory dump starting at 'addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300444 .mhandler.cmd = do_physical_memory_dump,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300445 },
446
Blue Swirl23130862009-06-06 08:22:04 +0000447STEXI
448@item xp /@var{fmt} @var{addr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100449@findex xp
Blue Swirl23130862009-06-06 08:22:04 +0000450Physical memory dump starting at @var{addr}.
451
452@var{fmt} is a format which tells the command how to format the
453data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
454
455@table @var
456@item count
457is the number of items to be dumped.
458
459@item format
460can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
461c (char) or i (asm instruction).
462
463@item size
464can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
465@code{h} or @code{w} can be specified with the @code{i} format to
466respectively select 16 or 32 bit code instruction size.
467
468@end table
469
470Examples:
471@itemize
472@item
473Dump 10 instructions at the current instruction pointer:
474@example
475(qemu) x/10i $eip
4760x90107063: ret
4770x90107064: sti
4780x90107065: lea 0x0(%esi,1),%esi
4790x90107069: lea 0x0(%edi,1),%edi
4800x90107070: ret
4810x90107071: jmp 0x90107080
4820x90107073: nop
4830x90107074: nop
4840x90107075: nop
4850x90107076: nop
486@end example
487
488@item
489Dump 80 16 bit values at the start of the video memory.
490@smallexample
491(qemu) xp/80hx 0xb8000
4920x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
4930x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
4940x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
4950x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
4960x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
4970x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
4980x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
4990x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
5000x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
5010x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
502@end smallexample
503@end itemize
504ETEXI
505
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300506 {
507 .name = "p|print",
508 .args_type = "fmt:/,val:l",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300509 .params = "/fmt expr",
510 .help = "print expression value (use $reg for CPU register access)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300511 .mhandler.cmd = do_print,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300512 },
513
Blue Swirl23130862009-06-06 08:22:04 +0000514STEXI
515@item p or print/@var{fmt} @var{expr}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100516@findex print
Blue Swirl23130862009-06-06 08:22:04 +0000517
518Print expression value. Only the @var{format} part of @var{fmt} is
519used.
520ETEXI
521
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300522 {
523 .name = "i",
524 .args_type = "fmt:/,addr:i,index:i.",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300525 .params = "/fmt addr",
526 .help = "I/O port read",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300527 .mhandler.cmd = do_ioport_read,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300528 },
529
Blue Swirl23130862009-06-06 08:22:04 +0000530STEXI
531Read I/O port.
532ETEXI
533
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300534 {
535 .name = "o",
536 .args_type = "fmt:/,addr:i,val:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300537 .params = "/fmt addr value",
538 .help = "I/O port write",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300539 .mhandler.cmd = do_ioport_write,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300540 },
541
Jan Kiszkaf1147842009-07-14 10:20:11 +0200542STEXI
543Write to I/O port.
544ETEXI
Blue Swirl23130862009-06-06 08:22:04 +0000545
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300546 {
547 .name = "sendkey",
Amos Kong2ef20c12012-08-31 10:56:22 +0800548 .args_type = "keys:s,hold-time:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300549 .params = "keys [hold_ms]",
550 .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
Amos Konge4c8f002012-08-31 10:56:26 +0800551 .mhandler.cmd = hmp_send_key,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300552 },
553
Blue Swirl23130862009-06-06 08:22:04 +0000554STEXI
555@item sendkey @var{keys}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100556@findex sendkey
Blue Swirl23130862009-06-06 08:22:04 +0000557
Amos Kong886cc702012-08-31 10:56:20 +0800558Send @var{keys} to the guest. @var{keys} could be the name of the
559key or the raw value in hexadecimal format. Use @code{-} to press
560several keys simultaneously. Example:
Blue Swirl23130862009-06-06 08:22:04 +0000561@example
562sendkey ctrl-alt-f1
563@end example
564
565This command is useful to send keys that your graphical user interface
566intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
567ETEXI
568
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300569 {
570 .name = "system_reset",
571 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300572 .params = "",
573 .help = "reset the system",
Luiz Capitulino38d22652011-09-15 14:41:46 -0300574 .mhandler.cmd = hmp_system_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300575 },
576
Blue Swirl23130862009-06-06 08:22:04 +0000577STEXI
578@item system_reset
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100579@findex system_reset
Blue Swirl23130862009-06-06 08:22:04 +0000580
581Reset the system.
582ETEXI
583
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300584 {
585 .name = "system_powerdown",
586 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300587 .params = "",
588 .help = "send system power down event",
Luiz Capitulino5bc465e2011-09-28 11:06:15 -0300589 .mhandler.cmd = hmp_system_powerdown,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300590 },
591
Blue Swirl23130862009-06-06 08:22:04 +0000592STEXI
593@item system_powerdown
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100594@findex system_powerdown
Blue Swirl23130862009-06-06 08:22:04 +0000595
596Power down the system (if supported).
597ETEXI
598
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300599 {
600 .name = "sum",
601 .args_type = "start:i,size:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300602 .params = "addr size",
603 .help = "compute the checksum of a memory region",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300604 .mhandler.cmd = do_sum,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300605 },
606
Blue Swirl23130862009-06-06 08:22:04 +0000607STEXI
608@item sum @var{addr} @var{size}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100609@findex sum
Blue Swirl23130862009-06-06 08:22:04 +0000610
611Compute the checksum of a memory region.
612ETEXI
613
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300614 {
615 .name = "usb_add",
616 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300617 .params = "device",
618 .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300619 .mhandler.cmd = do_usb_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300620 },
621
Blue Swirl23130862009-06-06 08:22:04 +0000622STEXI
623@item usb_add @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100624@findex usb_add
Blue Swirl23130862009-06-06 08:22:04 +0000625
626Add the USB device @var{devname}. For details of available devices see
627@ref{usb_devices}
628ETEXI
629
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300630 {
631 .name = "usb_del",
632 .args_type = "devname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300633 .params = "device",
634 .help = "remove USB device 'bus.addr'",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300635 .mhandler.cmd = do_usb_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300636 },
637
Blue Swirl23130862009-06-06 08:22:04 +0000638STEXI
639@item usb_del @var{devname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100640@findex usb_del
Blue Swirl23130862009-06-06 08:22:04 +0000641
642Remove the USB device @var{devname} from the QEMU virtual USB
643hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
644command @code{info usb} to see the devices you can remove.
645ETEXI
646
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300647 {
648 .name = "device_add",
Markus Armbrusterc7e4e8c2010-02-10 20:47:28 +0100649 .args_type = "device:O",
650 .params = "driver[,prop=value][,...]",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300651 .help = "add device, like -device on the command line",
Markus Armbruster8bc27242010-02-10 20:52:01 +0100652 .user_print = monitor_user_noop,
653 .mhandler.cmd_new = do_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300654 },
655
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200656STEXI
657@item device_add @var{config}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100658@findex device_add
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200659
660Add device.
661ETEXI
662
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300663 {
664 .name = "device_del",
665 .args_type = "id:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300666 .params = "device",
667 .help = "remove device",
Luiz Capitulinoa15fef22012-03-29 12:38:50 -0300668 .mhandler.cmd = hmp_device_del,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300669 },
670
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200671STEXI
672@item device_del @var{id}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100673@findex device_del
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200674
675Remove device @var{id}.
676ETEXI
677
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300678 {
679 .name = "cpu",
680 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300681 .params = "index",
682 .help = "set the default CPU",
Luiz Capitulino755f1962011-10-06 14:31:39 -0300683 .mhandler.cmd = hmp_cpu,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300684 },
Gerd Hoffmann3418bd22009-09-25 21:42:41 +0200685
Blue Swirl23130862009-06-06 08:22:04 +0000686STEXI
Markus Armbrusterc427ea92010-05-04 13:20:32 +0200687@item cpu @var{index}
688@findex cpu
Blue Swirl23130862009-06-06 08:22:04 +0000689Set the default CPU.
690ETEXI
691
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300692 {
693 .name = "mouse_move",
694 .args_type = "dx_str:s,dy_str:s,dz_str:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300695 .params = "dx dy [dz]",
696 .help = "send mouse move events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300697 .mhandler.cmd = do_mouse_move,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300698 },
699
Blue Swirl23130862009-06-06 08:22:04 +0000700STEXI
701@item mouse_move @var{dx} @var{dy} [@var{dz}]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100702@findex mouse_move
Blue Swirl23130862009-06-06 08:22:04 +0000703Move the active mouse to the specified coordinates @var{dx} @var{dy}
704with optional scroll axis @var{dz}.
705ETEXI
706
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300707 {
708 .name = "mouse_button",
709 .args_type = "button_state:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300710 .params = "state",
711 .help = "change mouse button state (1=L, 2=M, 4=R)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300712 .mhandler.cmd = do_mouse_button,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300713 },
714
Blue Swirl23130862009-06-06 08:22:04 +0000715STEXI
716@item mouse_button @var{val}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100717@findex mouse_button
Blue Swirl23130862009-06-06 08:22:04 +0000718Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
719ETEXI
720
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300721 {
722 .name = "mouse_set",
723 .args_type = "index:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300724 .params = "index",
725 .help = "set which mouse device receives events",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300726 .mhandler.cmd = do_mouse_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300727 },
728
Blue Swirl23130862009-06-06 08:22:04 +0000729STEXI
730@item mouse_set @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100731@findex mouse_set
Blue Swirl23130862009-06-06 08:22:04 +0000732Set which mouse device receives events at given @var{index}, index
733can be obtained with
734@example
735info mice
736@end example
737ETEXI
738
739#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300740 {
741 .name = "wavcapture",
742 .args_type = "path:F,freq:i?,bits:i?,nchannels:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300743 .params = "path [frequency [bits [channels]]]",
744 .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300745 .mhandler.cmd = do_wav_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300746 },
Blue Swirl23130862009-06-06 08:22:04 +0000747#endif
748STEXI
749@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100750@findex wavcapture
Blue Swirl23130862009-06-06 08:22:04 +0000751Capture audio into @var{filename}. Using sample rate @var{frequency}
752bits per sample @var{bits} and number of channels @var{channels}.
753
754Defaults:
755@itemize @minus
756@item Sample rate = 44100 Hz - CD quality
757@item Bits = 16
758@item Number of channels = 2 - Stereo
759@end itemize
760ETEXI
761
762#ifdef HAS_AUDIO
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300763 {
764 .name = "stopcapture",
765 .args_type = "n:i",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300766 .params = "capture index",
767 .help = "stop capture",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300768 .mhandler.cmd = do_stop_capture,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300769 },
Blue Swirl23130862009-06-06 08:22:04 +0000770#endif
771STEXI
772@item stopcapture @var{index}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100773@findex stopcapture
Blue Swirl23130862009-06-06 08:22:04 +0000774Stop capture with a given @var{index}, index can be obtained with
775@example
776info capture
777@end example
778ETEXI
779
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300780 {
781 .name = "memsave",
782 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300783 .params = "addr size file",
784 .help = "save to disk virtual memory dump starting at 'addr' of size 'size'",
Luiz Capitulino0cfd6a92011-11-22 16:32:37 -0200785 .mhandler.cmd = hmp_memsave,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300786 },
787
Blue Swirl23130862009-06-06 08:22:04 +0000788STEXI
789@item memsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100790@findex memsave
Blue Swirl23130862009-06-06 08:22:04 +0000791save to disk virtual memory dump starting at @var{addr} of size @var{size}.
792ETEXI
793
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300794 {
795 .name = "pmemsave",
796 .args_type = "val:l,size:i,filename:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300797 .params = "addr size file",
798 .help = "save to disk physical memory dump starting at 'addr' of size 'size'",
Luiz Capitulino6d3962b2011-11-22 17:26:46 -0200799 .mhandler.cmd = hmp_pmemsave,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300800 },
801
Blue Swirl23130862009-06-06 08:22:04 +0000802STEXI
803@item pmemsave @var{addr} @var{size} @var{file}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100804@findex pmemsave
Blue Swirl23130862009-06-06 08:22:04 +0000805save to disk physical memory dump starting at @var{addr} of size @var{size}.
806ETEXI
807
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300808 {
809 .name = "boot_set",
810 .args_type = "bootdevice:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300811 .params = "bootdevice",
812 .help = "define new values for the boot device list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -0300813 .mhandler.cmd = do_boot_set,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300814 },
815
Blue Swirl23130862009-06-06 08:22:04 +0000816STEXI
817@item boot_set @var{bootdevicelist}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100818@findex boot_set
Blue Swirl23130862009-06-06 08:22:04 +0000819
820Define new values for the boot device list. Those values will override
821the values specified on the command line through the @code{-boot} option.
822
823The values that can be specified here depend on the machine type, but are
824the same that can be specified in the @code{-boot} command line option.
825ETEXI
826
827#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300828 {
829 .name = "nmi",
Luiz Capitulinoe9b4b432011-04-29 12:11:50 -0300830 .args_type = "",
831 .params = "",
832 .help = "inject an NMI on all guest's CPUs",
Luiz Capitulinoab49ab52011-11-23 12:55:53 -0200833 .mhandler.cmd = hmp_inject_nmi,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300834 },
Blue Swirl23130862009-06-06 08:22:04 +0000835#endif
836STEXI
837@item nmi @var{cpu}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100838@findex nmi
Blue Swirl23130862009-06-06 08:22:04 +0000839Inject an NMI on the given CPU (x86 only).
Lei Li1f590cf2013-01-25 00:03:20 +0800840
841ETEXI
842
843 {
844 .name = "memchar_write",
845 .args_type = "device:s,data:s",
846 .params = "device data",
847 .help = "Provide writing interface for CirMemCharDriver. Write"
848 "'data' to it.",
849 .mhandler.cmd = hmp_memchar_write,
850 },
851
852STEXI
853@item memchar_write @var{device} @var{data}
854@findex memchar_write
855Provide writing interface for CirMemCharDriver. Write @var{data}
856to char device 'memory'.
857
Blue Swirl23130862009-06-06 08:22:04 +0000858ETEXI
859
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300860 {
Lei Li49b6d722013-01-25 00:03:21 +0800861 .name = "memchar_read",
862 .args_type = "device:s,size:i",
863 .params = "device size",
864 .help = "Provide read interface for CirMemCharDriver. Read from"
865 "it and return the data with size.",
866 .mhandler.cmd = hmp_memchar_read,
867 },
868
869STEXI
870@item memchar_read @var{device}
871@findex memchar_read
872Provide read interface for CirMemCharDriver. Read from char device
873'memory' and return the data.
874
875@var{size} is the size of data want to read from. Refer to unencoded
876size of the raw data, would adjust to the init size of the memchar
877if the requested size is larger than it.
878
879ETEXI
880
881 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300882 .name = "migrate",
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200883 .args_type = "detach:-d,blk:-b,inc:-i,uri:s",
884 .params = "[-d] [-b] [-i] uri",
885 .help = "migrate to URI (using -d to not wait for completion)"
886 "\n\t\t\t -b for migration without shared storage with"
887 " full copy of disk\n\t\t\t -i for migration without "
888 "shared storage with incremental copy of disk "
889 "(base image shared between src and destination)",
Luiz Capitulinoe1c37d02011-12-05 14:48:01 -0200890 .mhandler.cmd = hmp_migrate,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300891 },
892
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200893
Blue Swirl23130862009-06-06 08:22:04 +0000894STEXI
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200895@item migrate [-d] [-b] [-i] @var{uri}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100896@findex migrate
Blue Swirl23130862009-06-06 08:22:04 +0000897Migrate to @var{uri} (using -d to not wait for completion).
lirans@il.ibm.comfbc3d962009-11-02 15:41:13 +0200898 -b for migration with full copy of disk
899 -i for migration with incremental copy of disk (base image is shared)
Blue Swirl23130862009-06-06 08:22:04 +0000900ETEXI
901
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300902 {
903 .name = "migrate_cancel",
904 .args_type = "",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300905 .params = "",
906 .help = "cancel the current VM migration",
Luiz Capitulino6cdedb02011-11-27 22:54:09 -0200907 .mhandler.cmd = hmp_migrate_cancel,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300908 },
909
Blue Swirl23130862009-06-06 08:22:04 +0000910STEXI
911@item migrate_cancel
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100912@findex migrate_cancel
Blue Swirl23130862009-06-06 08:22:04 +0000913Cancel the current VM migration.
Orit Wasserman9e1ba4c2012-08-06 21:42:54 +0300914
915ETEXI
916
917 {
918 .name = "migrate_set_cache_size",
919 .args_type = "value:o",
920 .params = "value",
921 .help = "set cache size (in bytes) for XBZRLE migrations,"
922 "the cache size will be rounded down to the nearest "
923 "power of 2.\n"
924 "The cache size affects the number of cache misses."
925 "In case of a high cache miss ratio you need to increase"
926 " the cache size",
927 .mhandler.cmd = hmp_migrate_set_cache_size,
928 },
929
930STEXI
931@item migrate_set_cache_size @var{value}
932@findex migrate_set_cache_size
933Set cache size to @var{value} (in bytes) for xbzrle migrations.
Blue Swirl23130862009-06-06 08:22:04 +0000934ETEXI
935
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300936 {
937 .name = "migrate_set_speed",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200938 .args_type = "value:o",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300939 .params = "value",
Jes Sorensened3d4a82010-10-21 17:15:48 +0200940 .help = "set maximum speed (in bytes) for migrations. "
941 "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
Luiz Capitulino3dc85382011-11-28 11:59:37 -0200942 .mhandler.cmd = hmp_migrate_set_speed,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300943 },
944
Blue Swirl23130862009-06-06 08:22:04 +0000945STEXI
946@item migrate_set_speed @var{value}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100947@findex migrate_set_speed
Blue Swirl23130862009-06-06 08:22:04 +0000948Set maximum speed to @var{value} (in bytes) for migrations.
949ETEXI
950
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300951 {
952 .name = "migrate_set_downtime",
Markus Armbrusterb0fbf7d2010-01-25 14:23:07 +0100953 .args_type = "value:T",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300954 .params = "value",
955 .help = "set maximum tolerated downtime (in seconds) for migrations",
Luiz Capitulino4f0a9932011-11-27 23:18:01 -0200956 .mhandler.cmd = hmp_migrate_set_downtime,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -0300957 },
Glauber Costa2ea42952009-05-28 15:22:58 -0400958
959STEXI
960@item migrate_set_downtime @var{second}
Stefan Weil70fcbbe2010-02-05 23:52:04 +0100961@findex migrate_set_downtime
Glauber Costa2ea42952009-05-28 15:22:58 -0400962Set maximum tolerated downtime (in seconds) for migration.
963ETEXI
964
Jes Sorensenf8882562010-12-16 13:52:16 +0100965 {
Orit Wasserman00458432012-08-06 21:42:48 +0300966 .name = "migrate_set_capability",
967 .args_type = "capability:s,state:b",
968 .params = "capability state",
969 .help = "Enable/Disable the usage of a capability for migration",
970 .mhandler.cmd = hmp_migrate_set_capability,
971 },
972
973STEXI
974@item migrate_set_capability @var{capability} @var{state}
975@findex migrate_set_capability
976Enable/Disable the usage of a capability @var{capability} for migration.
977ETEXI
978
979 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +0100980 .name = "client_migrate_info",
981 .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
982 .params = "protocol hostname port tls-port cert-subject",
983 .help = "send migration info to spice/vnc client",
984 .user_print = monitor_user_noop,
Yonit Halperinedc5cb12011-10-17 10:03:18 +0200985 .mhandler.cmd_async = client_migrate_info,
986 .flags = MONITOR_CMD_ASYNC,
Jes Sorensenf8882562010-12-16 13:52:16 +0100987 },
988
989STEXI
Gerd Hoffmanne866e232010-04-23 13:28:21 +0200990@item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject}
991@findex client_migrate_info
992Set the spice/vnc connection info for the migration target. The spice/vnc
993server will ask the spice/vnc client to automatically reconnect using the
994new parameters (if specified) once the vm migration finished successfully.
995ETEXI
996
Wen Congyang783e9b42012-05-07 12:10:47 +0800997#if defined(CONFIG_HAVE_CORE_DUMP)
998 {
999 .name = "dump-guest-memory",
Luiz Capitulino75363762012-09-21 13:53:00 -03001000 .args_type = "paging:-p,filename:F,begin:i?,length:i?",
1001 .params = "[-p] filename [begin] [length]",
Wen Congyang783e9b42012-05-07 12:10:47 +08001002 .help = "dump guest memory to file"
1003 "\n\t\t\t begin(optional): the starting physical address"
1004 "\n\t\t\t length(optional): the memory size, in bytes",
Wen Congyang783e9b42012-05-07 12:10:47 +08001005 .mhandler.cmd = hmp_dump_guest_memory,
1006 },
1007
1008
1009STEXI
1010@item dump-guest-memory [-p] @var{protocol} @var{begin} @var{length}
1011@findex dump-guest-memory
1012Dump guest memory to @var{protocol}. The file can be processed with crash or
1013gdb.
Luiz Capitulino75363762012-09-21 13:53:00 -03001014 filename: dump file name
Wen Congyang783e9b42012-05-07 12:10:47 +08001015 paging: do paging to get guest's memory mapping
1016 begin: the starting physical address. It's optional, and should be
1017 specified with length together.
1018 length: the memory size, in bytes. It's optional, and should be specified
1019 with begin together.
1020ETEXI
1021#endif
1022
Gerd Hoffmanne866e232010-04-23 13:28:21 +02001023 {
Jes Sorensen2ea720d2011-03-09 16:54:34 +01001024 .name = "snapshot_blkdev",
Paolo Bonzini6cc2a412012-03-06 18:55:59 +01001025 .args_type = "reuse:-n,device:B,snapshot-file:s?,format:s?",
1026 .params = "[-n] device [new-image-file] [format]",
Jes Sorensen2ea720d2011-03-09 16:54:34 +01001027 .help = "initiates a live snapshot\n\t\t\t"
1028 "of device. If a new image file is specified, the\n\t\t\t"
1029 "new image file will become the new root image.\n\t\t\t"
1030 "If format is specified, the snapshot file will\n\t\t\t"
1031 "be created in that format. Otherwise the\n\t\t\t"
Paolo Bonzini6cc2a412012-03-06 18:55:59 +01001032 "snapshot will be internal! (currently unsupported).\n\t\t\t"
1033 "The default format is qcow2. The -n flag requests QEMU\n\t\t\t"
1034 "to reuse the image found in new-image-file, instead of\n\t\t\t"
1035 "recreating it from scratch.",
Luiz Capitulino6106e242011-11-25 16:15:19 -02001036 .mhandler.cmd = hmp_snapshot_blkdev,
Gerd Hoffmanne866e232010-04-23 13:28:21 +02001037 },
1038
1039STEXI
Jes Sorensenf8882562010-12-16 13:52:16 +01001040@item snapshot_blkdev
1041@findex snapshot_blkdev
1042Snapshot device, using snapshot file as target if provided
1043ETEXI
1044
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001045 {
Paolo Bonzinid9b902d2012-10-18 16:49:24 +02001046 .name = "drive_mirror",
1047 .args_type = "reuse:-n,full:-f,device:B,target:s,format:s?",
1048 .params = "[-n] [-f] device target [format]",
1049 .help = "initiates live storage\n\t\t\t"
1050 "migration for a device. The device's contents are\n\t\t\t"
1051 "copied to the new image file, including data that\n\t\t\t"
1052 "is written after the command is started.\n\t\t\t"
1053 "The -n flag requests QEMU to reuse the image found\n\t\t\t"
1054 "in new-image-file, instead of recreating it from scratch.\n\t\t\t"
1055 "The -f flag requests QEMU to copy the whole disk,\n\t\t\t"
1056 "so that the result does not need a backing file.\n\t\t\t",
1057 .mhandler.cmd = hmp_drive_mirror,
1058 },
1059STEXI
1060@item drive_mirror
1061@findex drive_mirror
1062Start mirroring a block device's writes to a new destination,
1063using the specified target.
1064ETEXI
1065
1066 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001067 .name = "drive_add",
1068 .args_type = "pci_addr:s,opts:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001069 .params = "[[<domain>:]<bus>:]<slot>\n"
1070 "[file=file][,if=type][,bus=n]\n"
Stefan Hajnoczifb0490f2011-11-17 13:40:32 +00001071 "[,unit=m][,media=d][,index=i]\n"
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001072 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
Stefan Hajnoczifb0490f2011-11-17 13:40:32 +00001073 "[,snapshot=on|off][,cache=on|off]\n"
1074 "[,readonly=on|off][,copy-on-read=on|off]",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001075 .help = "add drive to PCI storage controller",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001076 .mhandler.cmd = drive_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001077 },
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001078
Blue Swirl23130862009-06-06 08:22:04 +00001079STEXI
1080@item drive_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001081@findex drive_add
Blue Swirl23130862009-06-06 08:22:04 +00001082Add drive to PCI storage controller.
1083ETEXI
1084
1085#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001086 {
1087 .name = "pci_add",
1088 .args_type = "pci_addr:s,type:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001089 .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
1090 .help = "hot-add PCI device",
Markus Armbruster6c6a58a2010-05-12 10:53:00 +02001091 .mhandler.cmd = pci_device_hot_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001092 },
Blue Swirl23130862009-06-06 08:22:04 +00001093#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001094
Blue Swirl23130862009-06-06 08:22:04 +00001095STEXI
1096@item pci_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001097@findex pci_add
Blue Swirl23130862009-06-06 08:22:04 +00001098Hot-add PCI device.
1099ETEXI
1100
1101#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001102 {
1103 .name = "pci_del",
1104 .args_type = "pci_addr:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001105 .params = "[[<domain>:]<bus>:]<slot>",
1106 .help = "hot remove PCI device",
Markus Armbrusterb752daf2010-05-12 10:53:01 +02001107 .mhandler.cmd = do_pci_device_hot_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001108 },
Blue Swirl23130862009-06-06 08:22:04 +00001109#endif
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001110
Blue Swirl23130862009-06-06 08:22:04 +00001111STEXI
1112@item pci_del
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001113@findex pci_del
Blue Swirl23130862009-06-06 08:22:04 +00001114Hot remove PCI device.
1115ETEXI
1116
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001117 {
Isaku Yamahata2ae63bd2010-12-24 12:14:14 +09001118 .name = "pcie_aer_inject_error",
1119 .args_type = "advisory_non_fatal:-a,correctable:-c,"
1120 "id:s,error_status:s,"
1121 "header0:i?,header1:i?,header2:i?,header3:i?,"
1122 "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?",
1123 .params = "[-a] [-c] id "
1124 "<error_status> [<tlp header> [<tlp header prefix>]]",
1125 .help = "inject pcie aer error\n\t\t\t"
1126 " -a for advisory non fatal error\n\t\t\t"
1127 " -c for correctable error\n\t\t\t"
1128 "<id> = qdev device id\n\t\t\t"
1129 "<error_status> = error string or 32bit\n\t\t\t"
1130 "<tlb header> = 32bit x 4\n\t\t\t"
1131 "<tlb header prefix> = 32bit x 4",
1132 .user_print = pcie_aer_inject_error_print,
Zhi Yong Wu1f3392b2011-11-30 12:39:47 +08001133 .mhandler.cmd_new = do_pcie_aer_inject_error,
Isaku Yamahata2ae63bd2010-12-24 12:14:14 +09001134 },
1135
1136STEXI
1137@item pcie_aer_inject_error
1138@findex pcie_aer_inject_error
1139Inject PCIe AER error
1140ETEXI
1141
1142 {
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001143 .name = "host_net_add",
1144 .args_type = "device:s,opts:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001145 .params = "tap|user|socket|vde|dump [options]",
1146 .help = "add host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001147 .mhandler.cmd = net_host_device_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001148 },
1149
Blue Swirl23130862009-06-06 08:22:04 +00001150STEXI
1151@item host_net_add
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001152@findex host_net_add
Blue Swirl23130862009-06-06 08:22:04 +00001153Add host VLAN client.
1154ETEXI
1155
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001156 {
1157 .name = "host_net_remove",
1158 .args_type = "vlan_id:i,device:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001159 .params = "vlan_id name",
1160 .help = "remove host VLAN client",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001161 .mhandler.cmd = net_host_device_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001162 },
1163
Blue Swirl23130862009-06-06 08:22:04 +00001164STEXI
1165@item host_net_remove
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001166@findex host_net_remove
Blue Swirl23130862009-06-06 08:22:04 +00001167Remove host VLAN client.
1168ETEXI
1169
Markus Armbrusterae82d322010-03-25 17:22:40 +01001170 {
1171 .name = "netdev_add",
1172 .args_type = "netdev:O",
1173 .params = "[user|tap|socket],id=str[,prop=value][,...]",
1174 .help = "add host network device",
Luiz Capitulino928059a2012-04-18 17:34:15 -03001175 .mhandler.cmd = hmp_netdev_add,
Markus Armbrusterae82d322010-03-25 17:22:40 +01001176 },
1177
1178STEXI
1179@item netdev_add
1180@findex netdev_add
1181Add host network device.
1182ETEXI
1183
1184 {
1185 .name = "netdev_del",
1186 .args_type = "id:s",
1187 .params = "id",
1188 .help = "remove host network device",
Luiz Capitulino5f964152012-04-16 14:36:32 -03001189 .mhandler.cmd = hmp_netdev_del,
Markus Armbrusterae82d322010-03-25 17:22:40 +01001190 },
1191
1192STEXI
1193@item netdev_del
1194@findex netdev_del
1195Remove host network device.
1196ETEXI
1197
Blue Swirl23130862009-06-06 08:22:04 +00001198#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001199 {
1200 .name = "hostfwd_add",
1201 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001202 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
1203 .help = "redirect TCP or UDP connections from host to guest (requires -net user)",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001204 .mhandler.cmd = net_slirp_hostfwd_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001205 },
Markus Armbruster21413d62010-05-04 13:20:30 +02001206#endif
1207STEXI
1208@item hostfwd_add
1209@findex hostfwd_add
1210Redirect TCP or UDP connections from host to guest (requires -net user).
1211ETEXI
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001212
Markus Armbruster21413d62010-05-04 13:20:30 +02001213#ifdef CONFIG_SLIRP
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001214 {
1215 .name = "hostfwd_remove",
1216 .args_type = "arg1:s,arg2:s?,arg3:s?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001217 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
1218 .help = "remove host-to-guest TCP or UDP redirection",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001219 .mhandler.cmd = net_slirp_hostfwd_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001220 },
1221
Blue Swirl23130862009-06-06 08:22:04 +00001222#endif
1223STEXI
Markus Armbruster21413d62010-05-04 13:20:30 +02001224@item hostfwd_remove
1225@findex hostfwd_remove
1226Remove host-to-guest TCP or UDP redirection.
Blue Swirl23130862009-06-06 08:22:04 +00001227ETEXI
1228
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001229 {
1230 .name = "balloon",
Luiz Capitulino3b0bd6e2009-12-18 13:25:05 -02001231 .args_type = "value:M",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001232 .params = "target",
Riccardo Magliocchetti3c056132010-05-19 18:49:28 +02001233 .help = "request VM to change its memory allocation (in MB)",
Luiz Capitulinod72f3262011-11-25 14:38:09 -02001234 .mhandler.cmd = hmp_balloon,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001235 },
1236
Blue Swirl23130862009-06-06 08:22:04 +00001237STEXI
1238@item balloon @var{value}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001239@findex balloon
Blue Swirl23130862009-06-06 08:22:04 +00001240Request VM to change its memory allocation to @var{value} (in MB).
1241ETEXI
1242
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001243 {
1244 .name = "set_link",
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001245 .args_type = "name:s,up:b",
1246 .params = "name on|off",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001247 .help = "change the link status of a network adapter",
Luiz Capitulino4b371562011-11-23 13:11:55 -02001248 .mhandler.cmd = hmp_set_link,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001249 },
1250
Blue Swirl23130862009-06-06 08:22:04 +00001251STEXI
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001252@item set_link @var{name} [on|off]
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001253@findex set_link
Markus Armbrusterc9b26a42010-03-26 09:07:10 +01001254Switch link @var{name} on (i.e. up) or off (i.e. down).
Blue Swirl23130862009-06-06 08:22:04 +00001255ETEXI
1256
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001257 {
1258 .name = "watchdog_action",
1259 .args_type = "action:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001260 .params = "[reset|shutdown|poweroff|pause|debug|none]",
1261 .help = "change watchdog action",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001262 .mhandler.cmd = do_watchdog_action,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001263 },
1264
Blue Swirl23130862009-06-06 08:22:04 +00001265STEXI
1266@item watchdog_action
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001267@findex watchdog_action
Blue Swirl23130862009-06-06 08:22:04 +00001268Change watchdog action.
1269ETEXI
1270
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001271 {
1272 .name = "acl_show",
1273 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001274 .params = "aclname",
1275 .help = "list rules in the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001276 .mhandler.cmd = do_acl_show,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001277 },
1278
Blue Swirl23130862009-06-06 08:22:04 +00001279STEXI
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001280@item acl_show @var{aclname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001281@findex acl_show
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001282List all the matching rules in the access control list, and the default
1283policy. There are currently two named access control lists,
1284@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
1285certificate distinguished name, and SASL username respectively.
1286ETEXI
Blue Swirl23130862009-06-06 08:22:04 +00001287
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001288 {
1289 .name = "acl_policy",
1290 .args_type = "aclname:s,policy:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001291 .params = "aclname allow|deny",
1292 .help = "set default access control list policy",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001293 .mhandler.cmd = do_acl_policy,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001294 },
1295
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001296STEXI
Jan Kiszkacbbfacc2009-07-03 08:46:05 +02001297@item acl_policy @var{aclname} @code{allow|deny}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001298@findex acl_policy
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001299Set the default access control list policy, used in the event that
Blue Swirl23130862009-06-06 08:22:04 +00001300none of the explicit rules match. The default policy at startup is
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001301always @code{deny}.
1302ETEXI
1303
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001304 {
1305 .name = "acl_add",
1306 .args_type = "aclname:s,match:s,policy:s,index:i?",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001307 .params = "aclname match allow|deny [index]",
1308 .help = "add a match rule to the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001309 .mhandler.cmd = do_acl_add,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001310 },
1311
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001312STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001313@item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}]
1314@findex acl_add
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001315Add a match rule to the access control list, allowing or denying access.
1316The match will normally be an exact username or x509 distinguished name,
1317but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
1318allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
Blue Swirl23130862009-06-06 08:22:04 +00001319normally be appended to the end of the ACL, but can be inserted
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001320earlier in the list if the optional @var{index} parameter is supplied.
1321ETEXI
1322
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001323 {
1324 .name = "acl_remove",
1325 .args_type = "aclname:s,match:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001326 .params = "aclname match",
1327 .help = "remove a match rule from the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001328 .mhandler.cmd = do_acl_remove,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001329 },
1330
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001331STEXI
1332@item acl_remove @var{aclname} @var{match}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001333@findex acl_remove
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001334Remove the specified match rule from the access control list.
1335ETEXI
1336
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001337 {
1338 .name = "acl_reset",
1339 .args_type = "aclname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001340 .params = "aclname",
1341 .help = "reset the access control list",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001342 .mhandler.cmd = do_acl_reset,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001343 },
1344
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001345STEXI
Markus Armbruster0e4aec92010-05-04 13:20:31 +02001346@item acl_reset @var{aclname}
1347@findex acl_reset
Jan Kiszka15dfcd42009-06-25 08:22:08 +02001348Remove all matches from the access control list, and set the default
Blue Swirl23130862009-06-06 08:22:04 +00001349policy back to @code{deny}.
Blue Swirl23130862009-06-06 08:22:04 +00001350ETEXI
1351
Paolo Bonzini40577252012-08-23 11:53:04 +02001352 {
1353 .name = "nbd_server_start",
1354 .args_type = "all:-a,writable:-w,uri:s",
1355 .params = "nbd_server_start [-a] [-w] host:port",
1356 .help = "serve block devices on the given host and port",
1357 .mhandler.cmd = hmp_nbd_server_start,
1358 },
1359STEXI
1360@item nbd_server_start @var{host}:@var{port}
1361@findex nbd_server_start
1362Start an NBD server on the given host and/or port. If the @option{-a}
1363option is included, all of the virtual machine's block devices that
1364have an inserted media on them are automatically exported; in this case,
1365the @option{-w} option makes the devices writable too.
1366ETEXI
1367
1368 {
1369 .name = "nbd_server_add",
1370 .args_type = "writable:-w,device:B",
1371 .params = "nbd_server_add [-w] device",
1372 .help = "export a block device via NBD",
1373 .mhandler.cmd = hmp_nbd_server_add,
1374 },
1375STEXI
1376@item nbd_server_add @var{device}
1377@findex nbd_server_add
1378Export a block device through QEMU's NBD server, which must be started
1379beforehand with @command{nbd_server_start}. The @option{-w} option makes the
1380exported device writable too.
1381ETEXI
1382
1383 {
1384 .name = "nbd_server_stop",
1385 .args_type = "",
1386 .params = "nbd_server_stop",
1387 .help = "stop serving block devices using the NBD protocol",
1388 .mhandler.cmd = hmp_nbd_server_stop,
1389 },
1390STEXI
1391@item nbd_server_stop
1392@findex nbd_server_stop
1393Stop the QEMU embedded NBD server.
1394ETEXI
1395
1396
Huang Ying79c4f6b2009-06-23 10:05:14 +08001397#if defined(TARGET_I386)
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001398
1399 {
1400 .name = "mce",
Jin Dongming31ce5e02010-12-10 17:21:02 +09001401 .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1402 .params = "[-b] cpu bank status mcgstatus addr misc",
1403 .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
Luiz Capitulinoaf4ce882009-10-07 13:41:52 -03001404 .mhandler.cmd = do_inject_mce,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001405 },
1406
Huang Ying79c4f6b2009-06-23 10:05:14 +08001407#endif
1408STEXI
1409@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001410@findex mce (x86)
Huang Ying79c4f6b2009-06-23 10:05:14 +08001411Inject an MCE on the given CPU (x86 only).
1412ETEXI
1413
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001414 {
1415 .name = "getfd",
1416 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001417 .params = "getfd name",
1418 .help = "receive a file descriptor via SCM rights and assign it a name",
Corey Bryant208c9d12012-06-22 14:36:09 -04001419 .mhandler.cmd = hmp_getfd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001420 },
1421
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001422STEXI
1423@item getfd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001424@findex getfd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001425If a file descriptor is passed alongside this command using the SCM_RIGHTS
1426mechanism on unix sockets, it is stored using the name @var{fdname} for
1427later use by other monitor commands.
1428ETEXI
1429
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001430 {
1431 .name = "closefd",
1432 .args_type = "fdname:s",
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001433 .params = "closefd name",
1434 .help = "close a file descriptor previously passed via SCM rights",
Corey Bryant208c9d12012-06-22 14:36:09 -04001435 .mhandler.cmd = hmp_closefd,
Luiz Capitulinod7f9b682009-10-07 13:41:50 -03001436 },
1437
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001438STEXI
1439@item closefd @var{fdname}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001440@findex closefd
Mark McLoughlinf07918f2009-07-22 09:11:40 +01001441Close the file descriptor previously assigned to @var{fdname} using the
1442@code{getfd} command. This is only needed if the file descriptor was never
1443used by another monitor command.
1444ETEXI
1445
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001446 {
1447 .name = "block_passwd",
1448 .args_type = "device:B,password:s",
1449 .params = "block_passwd device password",
1450 .help = "set the password of encrypted block devices",
Luiz Capitulinoa4dea8a2011-11-23 13:28:21 -02001451 .mhandler.cmd = hmp_block_passwd,
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001452 },
1453
1454STEXI
Zhi Yong Wu727f0052011-11-08 13:00:31 +08001455@item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1456@findex block_set_io_throttle
1457Change 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}
1458ETEXI
1459
1460 {
1461 .name = "block_set_io_throttle",
1462 .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
1463 .params = "device bps bps_rd bps_wr iops iops_rd iops_wr",
1464 .help = "change I/O throttle limits for a block drive",
Luiz Capitulino80047da2011-12-14 16:49:14 -02001465 .mhandler.cmd = hmp_block_set_io_throttle,
Zhi Yong Wu727f0052011-11-08 13:00:31 +08001466 },
1467
1468STEXI
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001469@item block_passwd @var{device} @var{password}
Stefan Weil70fcbbe2010-02-05 23:52:04 +01001470@findex block_passwd
Luiz Capitulinoa3a55a22009-12-04 15:24:09 -02001471Set the encrypted device @var{device} password to @var{password}
1472ETEXI
Jan Kiszkab40292e2010-05-31 14:43:31 -03001473
Jan Kiszka33572ec2010-05-31 14:43:30 -03001474 {
Gerd Hoffmann75721502010-10-07 12:22:54 +02001475 .name = "set_password",
1476 .args_type = "protocol:s,password:s,connected:s?",
1477 .params = "protocol password action-if-connected",
1478 .help = "set spice/vnc password",
Luiz Capitulinofbf796f2011-12-07 11:17:51 -02001479 .mhandler.cmd = hmp_set_password,
Gerd Hoffmann75721502010-10-07 12:22:54 +02001480 },
1481
1482STEXI
1483@item set_password [ vnc | spice ] password [ action-if-connected ]
1484@findex set_password
1485
1486Change spice/vnc password. Use zero to make the password stay valid
1487forever. @var{action-if-connected} specifies what should happen in
1488case a connection is established: @var{fail} makes the password change
1489fail. @var{disconnect} changes the password and disconnects the
1490client. @var{keep} changes the password and keeps the connection up.
1491@var{keep} is the default.
1492ETEXI
1493
1494 {
1495 .name = "expire_password",
1496 .args_type = "protocol:s,time:s",
1497 .params = "protocol time",
1498 .help = "set spice/vnc password expire-time",
Luiz Capitulino9ad53722011-12-07 11:47:57 -02001499 .mhandler.cmd = hmp_expire_password,
Gerd Hoffmann75721502010-10-07 12:22:54 +02001500 },
1501
1502STEXI
1503@item expire_password [ vnc | spice ] expire-time
1504@findex expire_password
1505
1506Specify when a password for spice/vnc becomes
1507invalid. @var{expire-time} accepts:
1508
1509@table @var
1510@item now
1511Invalidate password instantly.
1512
1513@item never
1514Password stays valid forever.
1515
1516@item +nsec
1517Password stays valid for @var{nsec} seconds starting now.
1518
1519@item nsec
1520Password is invalidated at the given time. @var{nsec} are the seconds
1521passed since 1970, i.e. unix epoch.
1522
1523@end table
1524ETEXI
1525
1526 {
Gerd Hoffmannf1088902012-12-19 10:33:40 +01001527 .name = "chardev-add",
1528 .args_type = "args:s",
1529 .params = "args",
1530 .help = "add chardev",
1531 .mhandler.cmd = hmp_chardev_add,
1532 },
1533
1534STEXI
1535@item chardev_add args
1536@findex chardev_add
1537
1538chardev_add accepts the same parameters as the -chardev command line switch.
1539
1540ETEXI
1541
1542 {
1543 .name = "chardev-remove",
1544 .args_type = "id:s",
1545 .params = "id",
1546 .help = "remove chardev",
1547 .mhandler.cmd = hmp_chardev_remove,
1548 },
1549
1550STEXI
1551@item chardev_remove id
1552@findex chardev_remove
1553
1554Removes the chardev @var{id}.
1555
1556ETEXI
1557
1558 {
Jan Kiszka33572ec2010-05-31 14:43:30 -03001559 .name = "info",
1560 .args_type = "item:s?",
1561 .params = "[subcommand]",
1562 .help = "show various information about the system state",
Wenchao Xia84c44612013-01-14 14:06:29 +08001563 .mhandler.cmd = do_info_help,
1564 .sub_table = info_cmds,
Jan Kiszka33572ec2010-05-31 14:43:30 -03001565 },
1566
1567STEXI
1568@item info @var{subcommand}
1569@findex info
1570Show various information about the system state.
1571
1572@table @option
1573@item info version
1574show the version of QEMU
Jan Kiszka33572ec2010-05-31 14:43:30 -03001575@item info network
1576show the various VLANs and the associated devices
1577@item info chardev
1578show the character devices
1579@item info block
1580show the block devices
1581@item info blockstats
1582show block device statistics
1583@item info registers
1584show the cpu registers
1585@item info cpus
1586show infos for each CPU
1587@item info history
1588show the command line history
1589@item info irq
1590show the interrupts statistics (if available)
1591@item info pic
1592show i8259 (PIC) state
1593@item info pci
1594show emulated PCI device info
1595@item info tlb
Max Filippov692f7372012-01-07 20:02:40 +04001596show virtual to physical memory mappings (i386, SH4, SPARC, PPC, and Xtensa only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001597@item info mem
1598show the active virtual memory mappings (i386 only)
Jan Kiszka33572ec2010-05-31 14:43:30 -03001599@item info jit
1600show dynamic compiler info
Jan Kiszka33572ec2010-05-31 14:43:30 -03001601@item info numa
1602show NUMA information
Jan Kiszkab40292e2010-05-31 14:43:31 -03001603@item info kvm
1604show KVM information
Jan Kiszka33572ec2010-05-31 14:43:30 -03001605@item info usb
1606show USB devices plugged on the virtual USB hub
1607@item info usbhost
1608show all USB host devices
1609@item info profile
1610show profiling information
1611@item info capture
1612show information about active capturing
1613@item info snapshots
1614show list of VM snapshots
1615@item info status
1616show the current VM status (running|paused)
1617@item info pcmcia
1618show guest PCMCIA status
1619@item info mice
1620show which guest mouse is receiving events
1621@item info vnc
1622show the vnc server status
1623@item info name
1624show the current VM name
1625@item info uuid
1626show the current VM UUID
1627@item info cpustats
1628show CPU statistics
1629@item info usernet
1630show user network stack connection states
1631@item info migrate
1632show migration status
Orit Wassermanbbf6da32012-08-06 21:42:47 +03001633@item info migrate_capabilities
1634show current migration capabilities
Orit Wasserman9e1ba4c2012-08-06 21:42:54 +03001635@item info migrate_cache_size
1636show current migration XBZRLE cache size
Jan Kiszka33572ec2010-05-31 14:43:30 -03001637@item info balloon
1638show balloon information
1639@item info qtree
1640show device tree
1641@item info qdm
1642show qdev device model list
1643@item info roms
1644show roms
1645@end table
1646ETEXI
1647
LluĂ­s31965ae2011-08-31 20:31:24 +02001648STEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301649@item info trace-events
1650show available trace events and their state
1651ETEXI
Prerna Saxena22890ab2010-06-24 17:04:53 +05301652
Blue Swirl23130862009-06-06 08:22:04 +00001653STEXI
1654@end table
1655ETEXI