Statistics
| Branch: | Revision:

root / hmp-commands.hx @ 13ef70f6

History | View | Annotate | Download (39.5 kB)

1 2313086a Blue Swirl
HXCOMM Use DEFHEADING() to define headings in both help text and texi
2 2313086a Blue Swirl
HXCOMM Text between STEXI and ETEXI are copied to texi version and
3 2313086a Blue Swirl
HXCOMM discarded from C version
4 2313086a Blue Swirl
HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
5 2313086a Blue Swirl
HXCOMM monitor commands
6 2313086a Blue Swirl
HXCOMM HXCOMM can be used for comments, discarded from both texi and C
7 2313086a Blue Swirl
8 2313086a Blue Swirl
STEXI
9 2313086a Blue Swirl
@table @option
10 2313086a Blue Swirl
ETEXI
11 2313086a Blue Swirl
12 d7f9b689 Luiz Capitulino
    {
13 d7f9b689 Luiz Capitulino
        .name       = "help|?",
14 d7f9b689 Luiz Capitulino
        .args_type  = "name:s?",
15 d7f9b689 Luiz Capitulino
        .params     = "[cmd]",
16 d7f9b689 Luiz Capitulino
        .help       = "show the help",
17 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_help_cmd,
18 d7f9b689 Luiz Capitulino
    },
19 d7f9b689 Luiz Capitulino
20 2313086a Blue Swirl
STEXI
21 2313086a Blue Swirl
@item help or ? [@var{cmd}]
22 70fcbbe7 Stefan Weil
@findex help
23 2313086a Blue Swirl
Show the help for all commands or just for command @var{cmd}.
24 2313086a Blue Swirl
ETEXI
25 2313086a Blue Swirl
26 d7f9b689 Luiz Capitulino
    {
27 d7f9b689 Luiz Capitulino
        .name       = "commit",
28 d7f9b689 Luiz Capitulino
        .args_type  = "device:B",
29 d7f9b689 Luiz Capitulino
        .params     = "device|all",
30 d7f9b689 Luiz Capitulino
        .help       = "commit changes to the disk images (if -snapshot is used) or backing files",
31 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_commit,
32 d7f9b689 Luiz Capitulino
    },
33 d7f9b689 Luiz Capitulino
34 2313086a Blue Swirl
STEXI
35 2313086a Blue Swirl
@item commit
36 70fcbbe7 Stefan Weil
@findex commit
37 2313086a Blue Swirl
Commit changes to the disk images (if -snapshot is used) or backing files.
38 2313086a Blue Swirl
ETEXI
39 2313086a Blue Swirl
40 d7f9b689 Luiz Capitulino
    {
41 d7f9b689 Luiz Capitulino
        .name       = "q|quit",
42 d7f9b689 Luiz Capitulino
        .args_type  = "",
43 d7f9b689 Luiz Capitulino
        .params     = "",
44 d7f9b689 Luiz Capitulino
        .help       = "quit the emulator",
45 b223f35f Luiz Capitulino
        .user_print = monitor_user_noop,
46 7a7f325e Luiz Capitulino
        .mhandler.cmd = hmp_quit,
47 d7f9b689 Luiz Capitulino
    },
48 d7f9b689 Luiz Capitulino
49 2313086a Blue Swirl
STEXI
50 2313086a Blue Swirl
@item q or quit
51 70fcbbe7 Stefan Weil
@findex quit
52 2313086a Blue Swirl
Quit the emulator.
53 2313086a Blue Swirl
ETEXI
54 2313086a Blue Swirl
55 d7f9b689 Luiz Capitulino
    {
56 6d4a2b3a Christoph Hellwig
        .name       = "block_resize",
57 6d4a2b3a Christoph Hellwig
        .args_type  = "device:B,size:o",
58 6d4a2b3a Christoph Hellwig
        .params     = "device size",
59 6d4a2b3a Christoph Hellwig
        .help       = "resize a block image",
60 5e7caacb Luiz Capitulino
        .mhandler.cmd = hmp_block_resize,
61 6d4a2b3a Christoph Hellwig
    },
62 6d4a2b3a Christoph Hellwig
63 6d4a2b3a Christoph Hellwig
STEXI
64 6d4a2b3a Christoph Hellwig
@item block_resize
65 6d4a2b3a Christoph Hellwig
@findex block_resize
66 6d4a2b3a Christoph Hellwig
Resize a block image while a guest is running.  Usually requires guest
67 6d4a2b3a Christoph Hellwig
action to see the updated size.  Resize to a lower size is supported,
68 6d4a2b3a Christoph Hellwig
but should be used with extreme caution.  Note that this command only
69 6d4a2b3a Christoph Hellwig
resizes image files, it can not resize block devices like LVM volumes.
70 6d4a2b3a Christoph Hellwig
ETEXI
71 6d4a2b3a Christoph Hellwig
72 12bd451f Stefan Hajnoczi
    {
73 12bd451f Stefan Hajnoczi
        .name       = "block_stream",
74 c83c66c3 Stefan Hajnoczi
        .args_type  = "device:B,speed:o?,base:s?",
75 c83c66c3 Stefan Hajnoczi
        .params     = "device [speed [base]]",
76 12bd451f Stefan Hajnoczi
        .help       = "copy data from a backing file into a block device",
77 12bd451f Stefan Hajnoczi
        .mhandler.cmd = hmp_block_stream,
78 12bd451f Stefan Hajnoczi
    },
79 12bd451f Stefan Hajnoczi
80 12bd451f Stefan Hajnoczi
STEXI
81 12bd451f Stefan Hajnoczi
@item block_stream
82 12bd451f Stefan Hajnoczi
@findex block_stream
83 12bd451f Stefan Hajnoczi
Copy data from a backing file into a block device.
84 12bd451f Stefan Hajnoczi
ETEXI
85 6d4a2b3a Christoph Hellwig
86 6d4a2b3a Christoph Hellwig
    {
87 2d47c6e9 Stefan Hajnoczi
        .name       = "block_job_set_speed",
88 882ec7ce Stefan Hajnoczi
        .args_type  = "device:B,speed:o",
89 882ec7ce Stefan Hajnoczi
        .params     = "device speed",
90 2d47c6e9 Stefan Hajnoczi
        .help       = "set maximum speed for a background block operation",
91 2d47c6e9 Stefan Hajnoczi
        .mhandler.cmd = hmp_block_job_set_speed,
92 2d47c6e9 Stefan Hajnoczi
    },
93 2d47c6e9 Stefan Hajnoczi
94 2d47c6e9 Stefan Hajnoczi
STEXI
95 4451b799 Paolo Bonzini
@item block_job_set_speed
96 4451b799 Paolo Bonzini
@findex block_job_set_speed
97 2d47c6e9 Stefan Hajnoczi
Set maximum speed for a background block operation.
98 2d47c6e9 Stefan Hajnoczi
ETEXI
99 2d47c6e9 Stefan Hajnoczi
100 2d47c6e9 Stefan Hajnoczi
    {
101 370521a1 Stefan Hajnoczi
        .name       = "block_job_cancel",
102 370521a1 Stefan Hajnoczi
        .args_type  = "device:B",
103 370521a1 Stefan Hajnoczi
        .params     = "device",
104 05290d80 Paolo Bonzini
        .help       = "stop an active background block operation",
105 370521a1 Stefan Hajnoczi
        .mhandler.cmd = hmp_block_job_cancel,
106 370521a1 Stefan Hajnoczi
    },
107 370521a1 Stefan Hajnoczi
108 370521a1 Stefan Hajnoczi
STEXI
109 370521a1 Stefan Hajnoczi
@item block_job_cancel
110 370521a1 Stefan Hajnoczi
@findex block_job_cancel
111 370521a1 Stefan Hajnoczi
Stop an active block streaming operation.
112 370521a1 Stefan Hajnoczi
ETEXI
113 370521a1 Stefan Hajnoczi
114 370521a1 Stefan Hajnoczi
    {
115 d7f9b689 Luiz Capitulino
        .name       = "eject",
116 78d714e0 Luiz Capitulino
        .args_type  = "force:-f,device:B",
117 d7f9b689 Luiz Capitulino
        .params     = "[-f] device",
118 d7f9b689 Luiz Capitulino
        .help       = "eject a removable medium (use -f to force it)",
119 c245b6a3 Luiz Capitulino
        .mhandler.cmd = hmp_eject,
120 d7f9b689 Luiz Capitulino
    },
121 d7f9b689 Luiz Capitulino
122 2313086a Blue Swirl
STEXI
123 2313086a Blue Swirl
@item eject [-f] @var{device}
124 70fcbbe7 Stefan Weil
@findex eject
125 2313086a Blue Swirl
Eject a removable medium (use -f to force it).
126 2313086a Blue Swirl
ETEXI
127 2313086a Blue Swirl
128 d7f9b689 Luiz Capitulino
    {
129 9063f814 Ryan Harper
        .name       = "drive_del",
130 9063f814 Ryan Harper
        .args_type  = "id:s",
131 9063f814 Ryan Harper
        .params     = "device",
132 9063f814 Ryan Harper
        .help       = "remove host block device",
133 9063f814 Ryan Harper
        .user_print = monitor_user_noop,
134 9063f814 Ryan Harper
        .mhandler.cmd_new = do_drive_del,
135 9063f814 Ryan Harper
    },
136 9063f814 Ryan Harper
137 9063f814 Ryan Harper
STEXI
138 9063f814 Ryan Harper
@item drive_del @var{device}
139 9063f814 Ryan Harper
@findex drive_del
140 9063f814 Ryan Harper
Remove host block device.  The result is that guest generated IO is no longer
141 9063f814 Ryan Harper
submitted against the host device underlying the disk.  Once a drive has
142 9063f814 Ryan Harper
been deleted, the QEMU Block layer returns -EIO which results in IO
143 9063f814 Ryan Harper
errors in the guest for applications that are reading/writing to the device.
144 9063f814 Ryan Harper
ETEXI
145 9063f814 Ryan Harper
146 9063f814 Ryan Harper
    {
147 d7f9b689 Luiz Capitulino
        .name       = "change",
148 d7f9b689 Luiz Capitulino
        .args_type  = "device:B,target:F,arg:s?",
149 d7f9b689 Luiz Capitulino
        .params     = "device filename [format]",
150 d7f9b689 Luiz Capitulino
        .help       = "change a removable medium, optional format",
151 333a96ec Luiz Capitulino
        .mhandler.cmd = hmp_change,
152 d7f9b689 Luiz Capitulino
    },
153 d7f9b689 Luiz Capitulino
154 2313086a Blue Swirl
STEXI
155 2313086a Blue Swirl
@item change @var{device} @var{setting}
156 70fcbbe7 Stefan Weil
@findex change
157 2313086a Blue Swirl
158 2313086a Blue Swirl
Change the configuration of a device.
159 2313086a Blue Swirl
160 2313086a Blue Swirl
@table @option
161 2313086a Blue Swirl
@item change @var{diskdevice} @var{filename} [@var{format}]
162 2313086a Blue Swirl
Change the medium for a removable disk device to point to @var{filename}. eg
163 2313086a Blue Swirl
164 2313086a Blue Swirl
@example
165 2313086a Blue Swirl
(qemu) change ide1-cd0 /path/to/some.iso
166 2313086a Blue Swirl
@end example
167 2313086a Blue Swirl
168 2313086a Blue Swirl
@var{format} is optional.
169 2313086a Blue Swirl
170 2313086a Blue Swirl
@item change vnc @var{display},@var{options}
171 2313086a Blue Swirl
Change the configuration of the VNC server. The valid syntax for @var{display}
172 2313086a Blue Swirl
and @var{options} are described at @ref{sec_invocation}. eg
173 2313086a Blue Swirl
174 2313086a Blue Swirl
@example
175 2313086a Blue Swirl
(qemu) change vnc localhost:1
176 2313086a Blue Swirl
@end example
177 2313086a Blue Swirl
178 2313086a Blue Swirl
@item change vnc password [@var{password}]
179 2313086a Blue Swirl
180 2313086a Blue Swirl
Change the password associated with the VNC server. If the new password is not
181 2313086a Blue Swirl
supplied, the monitor will prompt for it to be entered. VNC passwords are only
182 2313086a Blue Swirl
significant up to 8 letters. eg
183 2313086a Blue Swirl
184 2313086a Blue Swirl
@example
185 2313086a Blue Swirl
(qemu) change vnc password
186 2313086a Blue Swirl
Password: ********
187 2313086a Blue Swirl
@end example
188 2313086a Blue Swirl
189 2313086a Blue Swirl
@end table
190 2313086a Blue Swirl
ETEXI
191 2313086a Blue Swirl
192 d7f9b689 Luiz Capitulino
    {
193 d7f9b689 Luiz Capitulino
        .name       = "screendump",
194 d7f9b689 Luiz Capitulino
        .args_type  = "filename:F",
195 d7f9b689 Luiz Capitulino
        .params     = "filename",
196 d7f9b689 Luiz Capitulino
        .help       = "save screen into PPM image 'filename'",
197 f1dc58e0 Luiz Capitulino
        .user_print = monitor_user_noop,
198 f1dc58e0 Luiz Capitulino
        .mhandler.cmd_new = do_screen_dump,
199 d7f9b689 Luiz Capitulino
    },
200 d7f9b689 Luiz Capitulino
201 2313086a Blue Swirl
STEXI
202 2313086a Blue Swirl
@item screendump @var{filename}
203 70fcbbe7 Stefan Weil
@findex screendump
204 2313086a Blue Swirl
Save screen into PPM image @var{filename}.
205 2313086a Blue Swirl
ETEXI
206 2313086a Blue Swirl
207 d7f9b689 Luiz Capitulino
    {
208 d7f9b689 Luiz Capitulino
        .name       = "logfile",
209 d7f9b689 Luiz Capitulino
        .args_type  = "filename:F",
210 d7f9b689 Luiz Capitulino
        .params     = "filename",
211 d7f9b689 Luiz Capitulino
        .help       = "output logs to 'filename'",
212 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_logfile,
213 d7f9b689 Luiz Capitulino
    },
214 d7f9b689 Luiz Capitulino
215 2313086a Blue Swirl
STEXI
216 2313086a Blue Swirl
@item logfile @var{filename}
217 70fcbbe7 Stefan Weil
@findex logfile
218 2313086a Blue Swirl
Output logs to @var{filename}.
219 2313086a Blue Swirl
ETEXI
220 2313086a Blue Swirl
221 22890ab5 Prerna Saxena
    {
222 22890ab5 Prerna Saxena
        .name       = "trace-event",
223 22890ab5 Prerna Saxena
        .args_type  = "name:s,option:b",
224 22890ab5 Prerna Saxena
        .params     = "name on|off",
225 22890ab5 Prerna Saxena
        .help       = "changes status of a specific trace event",
226 fc764105 Lluís
        .mhandler.cmd = do_trace_event_set_state,
227 22890ab5 Prerna Saxena
    },
228 22890ab5 Prerna Saxena
229 22890ab5 Prerna Saxena
STEXI
230 22890ab5 Prerna Saxena
@item trace-event
231 22890ab5 Prerna Saxena
@findex trace-event
232 22890ab5 Prerna Saxena
changes status of a trace event
233 22890ab5 Prerna Saxena
ETEXI
234 c5ceb523 Stefan Hajnoczi
235 c45a8168 Michael Roth
#if defined(CONFIG_TRACE_SIMPLE)
236 c5ceb523 Stefan Hajnoczi
    {
237 c5ceb523 Stefan Hajnoczi
        .name       = "trace-file",
238 c5ceb523 Stefan Hajnoczi
        .args_type  = "op:s?,arg:F?",
239 c5ceb523 Stefan Hajnoczi
        .params     = "on|off|flush|set [arg]",
240 c5ceb523 Stefan Hajnoczi
        .help       = "open, close, or flush trace file, or set a new file name",
241 c5ceb523 Stefan Hajnoczi
        .mhandler.cmd = do_trace_file,
242 c5ceb523 Stefan Hajnoczi
    },
243 c5ceb523 Stefan Hajnoczi
244 c5ceb523 Stefan Hajnoczi
STEXI
245 c5ceb523 Stefan Hajnoczi
@item trace-file on|off|flush
246 c5ceb523 Stefan Hajnoczi
@findex trace-file
247 c5ceb523 Stefan Hajnoczi
Open, close, or flush the trace file.  If no argument is given, the status of the trace file is displayed.
248 c5ceb523 Stefan Hajnoczi
ETEXI
249 22890ab5 Prerna Saxena
#endif
250 22890ab5 Prerna Saxena
251 d7f9b689 Luiz Capitulino
    {
252 d7f9b689 Luiz Capitulino
        .name       = "log",
253 d7f9b689 Luiz Capitulino
        .args_type  = "items:s",
254 d7f9b689 Luiz Capitulino
        .params     = "item1[,...]",
255 d7f9b689 Luiz Capitulino
        .help       = "activate logging of the specified items to '/tmp/qemu.log'",
256 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_log,
257 d7f9b689 Luiz Capitulino
    },
258 d7f9b689 Luiz Capitulino
259 2313086a Blue Swirl
STEXI
260 2313086a Blue Swirl
@item log @var{item1}[,...]
261 70fcbbe7 Stefan Weil
@findex log
262 2313086a Blue Swirl
Activate logging of the specified items to @file{/tmp/qemu.log}.
263 2313086a Blue Swirl
ETEXI
264 2313086a Blue Swirl
265 d7f9b689 Luiz Capitulino
    {
266 d7f9b689 Luiz Capitulino
        .name       = "savevm",
267 d7f9b689 Luiz Capitulino
        .args_type  = "name:s?",
268 d7f9b689 Luiz Capitulino
        .params     = "[tag|id]",
269 d7f9b689 Luiz Capitulino
        .help       = "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
270 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_savevm,
271 d7f9b689 Luiz Capitulino
    },
272 d7f9b689 Luiz Capitulino
273 2313086a Blue Swirl
STEXI
274 2313086a Blue Swirl
@item savevm [@var{tag}|@var{id}]
275 70fcbbe7 Stefan Weil
@findex savevm
276 2313086a Blue Swirl
Create a snapshot of the whole virtual machine. If @var{tag} is
277 2313086a Blue Swirl
provided, it is used as human readable identifier. If there is already
278 2313086a Blue Swirl
a snapshot with the same tag or ID, it is replaced. More info at
279 2313086a Blue Swirl
@ref{vm_snapshots}.
280 2313086a Blue Swirl
ETEXI
281 2313086a Blue Swirl
282 d7f9b689 Luiz Capitulino
    {
283 d7f9b689 Luiz Capitulino
        .name       = "loadvm",
284 d7f9b689 Luiz Capitulino
        .args_type  = "name:s",
285 d7f9b689 Luiz Capitulino
        .params     = "tag|id",
286 d7f9b689 Luiz Capitulino
        .help       = "restore a VM snapshot from its tag or id",
287 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_loadvm,
288 d7f9b689 Luiz Capitulino
    },
289 d7f9b689 Luiz Capitulino
290 2313086a Blue Swirl
STEXI
291 2313086a Blue Swirl
@item loadvm @var{tag}|@var{id}
292 70fcbbe7 Stefan Weil
@findex loadvm
293 2313086a Blue Swirl
Set the whole virtual machine to the snapshot identified by the tag
294 2313086a Blue Swirl
@var{tag} or the unique snapshot ID @var{id}.
295 2313086a Blue Swirl
ETEXI
296 2313086a Blue Swirl
297 d7f9b689 Luiz Capitulino
    {
298 d7f9b689 Luiz Capitulino
        .name       = "delvm",
299 d7f9b689 Luiz Capitulino
        .args_type  = "name:s",
300 d7f9b689 Luiz Capitulino
        .params     = "tag|id",
301 d7f9b689 Luiz Capitulino
        .help       = "delete a VM snapshot from its tag or id",
302 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_delvm,
303 d7f9b689 Luiz Capitulino
    },
304 d7f9b689 Luiz Capitulino
305 2313086a Blue Swirl
STEXI
306 2313086a Blue Swirl
@item delvm @var{tag}|@var{id}
307 70fcbbe7 Stefan Weil
@findex delvm
308 2313086a Blue Swirl
Delete the snapshot identified by @var{tag} or @var{id}.
309 2313086a Blue Swirl
ETEXI
310 2313086a Blue Swirl
311 d7f9b689 Luiz Capitulino
    {
312 d7f9b689 Luiz Capitulino
        .name       = "singlestep",
313 d7f9b689 Luiz Capitulino
        .args_type  = "option:s?",
314 d7f9b689 Luiz Capitulino
        .params     = "[on|off]",
315 d7f9b689 Luiz Capitulino
        .help       = "run emulation in singlestep mode or switch to normal mode",
316 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_singlestep,
317 d7f9b689 Luiz Capitulino
    },
318 d7f9b689 Luiz Capitulino
319 2313086a Blue Swirl
STEXI
320 2313086a Blue Swirl
@item singlestep [off]
321 70fcbbe7 Stefan Weil
@findex singlestep
322 2313086a Blue Swirl
Run the emulation in single step mode.
323 2313086a Blue Swirl
If called with option off, the emulation returns to normal mode.
324 2313086a Blue Swirl
ETEXI
325 2313086a Blue Swirl
326 d7f9b689 Luiz Capitulino
    {
327 d7f9b689 Luiz Capitulino
        .name       = "stop",
328 d7f9b689 Luiz Capitulino
        .args_type  = "",
329 d7f9b689 Luiz Capitulino
        .params     = "",
330 d7f9b689 Luiz Capitulino
        .help       = "stop emulation",
331 5f158f21 Luiz Capitulino
        .mhandler.cmd = hmp_stop,
332 d7f9b689 Luiz Capitulino
    },
333 d7f9b689 Luiz Capitulino
334 2313086a Blue Swirl
STEXI
335 2313086a Blue Swirl
@item stop
336 70fcbbe7 Stefan Weil
@findex stop
337 2313086a Blue Swirl
Stop emulation.
338 2313086a Blue Swirl
ETEXI
339 2313086a Blue Swirl
340 d7f9b689 Luiz Capitulino
    {
341 d7f9b689 Luiz Capitulino
        .name       = "c|cont",
342 d7f9b689 Luiz Capitulino
        .args_type  = "",
343 d7f9b689 Luiz Capitulino
        .params     = "",
344 d7f9b689 Luiz Capitulino
        .help       = "resume emulation",
345 e42e818b Luiz Capitulino
        .mhandler.cmd = hmp_cont,
346 d7f9b689 Luiz Capitulino
    },
347 d7f9b689 Luiz Capitulino
348 2313086a Blue Swirl
STEXI
349 2313086a Blue Swirl
@item c or cont
350 70fcbbe7 Stefan Weil
@findex cont
351 2313086a Blue Swirl
Resume emulation.
352 2313086a Blue Swirl
ETEXI
353 2313086a Blue Swirl
354 d7f9b689 Luiz Capitulino
    {
355 9b9df25a Gerd Hoffmann
        .name       = "system_wakeup",
356 9b9df25a Gerd Hoffmann
        .args_type  = "",
357 9b9df25a Gerd Hoffmann
        .params     = "",
358 9b9df25a Gerd Hoffmann
        .help       = "wakeup guest from suspend",
359 9b9df25a Gerd Hoffmann
        .mhandler.cmd = hmp_system_wakeup,
360 9b9df25a Gerd Hoffmann
    },
361 9b9df25a Gerd Hoffmann
362 9b9df25a Gerd Hoffmann
STEXI
363 9b9df25a Gerd Hoffmann
@item system_wakeup
364 9b9df25a Gerd Hoffmann
@findex system_wakeup
365 9b9df25a Gerd Hoffmann
Wakeup guest from suspend.
366 9b9df25a Gerd Hoffmann
ETEXI
367 9b9df25a Gerd Hoffmann
368 9b9df25a Gerd Hoffmann
    {
369 d7f9b689 Luiz Capitulino
        .name       = "gdbserver",
370 d7f9b689 Luiz Capitulino
        .args_type  = "device:s?",
371 d7f9b689 Luiz Capitulino
        .params     = "[device]",
372 d7f9b689 Luiz Capitulino
        .help       = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
373 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_gdbserver,
374 d7f9b689 Luiz Capitulino
    },
375 d7f9b689 Luiz Capitulino
376 2313086a Blue Swirl
STEXI
377 2313086a Blue Swirl
@item gdbserver [@var{port}]
378 70fcbbe7 Stefan Weil
@findex gdbserver
379 2313086a Blue Swirl
Start gdbserver session (default @var{port}=1234)
380 2313086a Blue Swirl
ETEXI
381 2313086a Blue Swirl
382 d7f9b689 Luiz Capitulino
    {
383 d7f9b689 Luiz Capitulino
        .name       = "x",
384 d7f9b689 Luiz Capitulino
        .args_type  = "fmt:/,addr:l",
385 d7f9b689 Luiz Capitulino
        .params     = "/fmt addr",
386 d7f9b689 Luiz Capitulino
        .help       = "virtual memory dump starting at 'addr'",
387 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_memory_dump,
388 d7f9b689 Luiz Capitulino
    },
389 d7f9b689 Luiz Capitulino
390 2313086a Blue Swirl
STEXI
391 2313086a Blue Swirl
@item x/fmt @var{addr}
392 70fcbbe7 Stefan Weil
@findex x
393 2313086a Blue Swirl
Virtual memory dump starting at @var{addr}.
394 2313086a Blue Swirl
ETEXI
395 2313086a Blue Swirl
396 d7f9b689 Luiz Capitulino
    {
397 d7f9b689 Luiz Capitulino
        .name       = "xp",
398 d7f9b689 Luiz Capitulino
        .args_type  = "fmt:/,addr:l",
399 d7f9b689 Luiz Capitulino
        .params     = "/fmt addr",
400 d7f9b689 Luiz Capitulino
        .help       = "physical memory dump starting at 'addr'",
401 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_physical_memory_dump,
402 d7f9b689 Luiz Capitulino
    },
403 d7f9b689 Luiz Capitulino
404 2313086a Blue Swirl
STEXI
405 2313086a Blue Swirl
@item xp /@var{fmt} @var{addr}
406 70fcbbe7 Stefan Weil
@findex xp
407 2313086a Blue Swirl
Physical memory dump starting at @var{addr}.
408 2313086a Blue Swirl
409 2313086a Blue Swirl
@var{fmt} is a format which tells the command how to format the
410 2313086a Blue Swirl
data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
411 2313086a Blue Swirl
412 2313086a Blue Swirl
@table @var
413 2313086a Blue Swirl
@item count
414 2313086a Blue Swirl
is the number of items to be dumped.
415 2313086a Blue Swirl
416 2313086a Blue Swirl
@item format
417 2313086a Blue Swirl
can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
418 2313086a Blue Swirl
c (char) or i (asm instruction).
419 2313086a Blue Swirl
420 2313086a Blue Swirl
@item size
421 2313086a Blue Swirl
can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
422 2313086a Blue Swirl
@code{h} or @code{w} can be specified with the @code{i} format to
423 2313086a Blue Swirl
respectively select 16 or 32 bit code instruction size.
424 2313086a Blue Swirl
425 2313086a Blue Swirl
@end table
426 2313086a Blue Swirl
427 2313086a Blue Swirl
Examples:
428 2313086a Blue Swirl
@itemize
429 2313086a Blue Swirl
@item
430 2313086a Blue Swirl
Dump 10 instructions at the current instruction pointer:
431 2313086a Blue Swirl
@example
432 2313086a Blue Swirl
(qemu) x/10i $eip
433 2313086a Blue Swirl
0x90107063:  ret
434 2313086a Blue Swirl
0x90107064:  sti
435 2313086a Blue Swirl
0x90107065:  lea    0x0(%esi,1),%esi
436 2313086a Blue Swirl
0x90107069:  lea    0x0(%edi,1),%edi
437 2313086a Blue Swirl
0x90107070:  ret
438 2313086a Blue Swirl
0x90107071:  jmp    0x90107080
439 2313086a Blue Swirl
0x90107073:  nop
440 2313086a Blue Swirl
0x90107074:  nop
441 2313086a Blue Swirl
0x90107075:  nop
442 2313086a Blue Swirl
0x90107076:  nop
443 2313086a Blue Swirl
@end example
444 2313086a Blue Swirl
445 2313086a Blue Swirl
@item
446 2313086a Blue Swirl
Dump 80 16 bit values at the start of the video memory.
447 2313086a Blue Swirl
@smallexample
448 2313086a Blue Swirl
(qemu) xp/80hx 0xb8000
449 2313086a Blue Swirl
0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
450 2313086a Blue Swirl
0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
451 2313086a Blue Swirl
0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
452 2313086a Blue Swirl
0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
453 2313086a Blue Swirl
0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
454 2313086a Blue Swirl
0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
455 2313086a Blue Swirl
0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
456 2313086a Blue Swirl
0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
457 2313086a Blue Swirl
0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
458 2313086a Blue Swirl
0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
459 2313086a Blue Swirl
@end smallexample
460 2313086a Blue Swirl
@end itemize
461 2313086a Blue Swirl
ETEXI
462 2313086a Blue Swirl
463 d7f9b689 Luiz Capitulino
    {
464 d7f9b689 Luiz Capitulino
        .name       = "p|print",
465 d7f9b689 Luiz Capitulino
        .args_type  = "fmt:/,val:l",
466 d7f9b689 Luiz Capitulino
        .params     = "/fmt expr",
467 d7f9b689 Luiz Capitulino
        .help       = "print expression value (use $reg for CPU register access)",
468 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_print,
469 d7f9b689 Luiz Capitulino
    },
470 d7f9b689 Luiz Capitulino
471 2313086a Blue Swirl
STEXI
472 2313086a Blue Swirl
@item p or print/@var{fmt} @var{expr}
473 70fcbbe7 Stefan Weil
@findex print
474 2313086a Blue Swirl
475 2313086a Blue Swirl
Print expression value. Only the @var{format} part of @var{fmt} is
476 2313086a Blue Swirl
used.
477 2313086a Blue Swirl
ETEXI
478 2313086a Blue Swirl
479 d7f9b689 Luiz Capitulino
    {
480 d7f9b689 Luiz Capitulino
        .name       = "i",
481 d7f9b689 Luiz Capitulino
        .args_type  = "fmt:/,addr:i,index:i.",
482 d7f9b689 Luiz Capitulino
        .params     = "/fmt addr",
483 d7f9b689 Luiz Capitulino
        .help       = "I/O port read",
484 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_ioport_read,
485 d7f9b689 Luiz Capitulino
    },
486 d7f9b689 Luiz Capitulino
487 2313086a Blue Swirl
STEXI
488 2313086a Blue Swirl
Read I/O port.
489 2313086a Blue Swirl
ETEXI
490 2313086a Blue Swirl
491 d7f9b689 Luiz Capitulino
    {
492 d7f9b689 Luiz Capitulino
        .name       = "o",
493 d7f9b689 Luiz Capitulino
        .args_type  = "fmt:/,addr:i,val:i",
494 d7f9b689 Luiz Capitulino
        .params     = "/fmt addr value",
495 d7f9b689 Luiz Capitulino
        .help       = "I/O port write",
496 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_ioport_write,
497 d7f9b689 Luiz Capitulino
    },
498 d7f9b689 Luiz Capitulino
499 f114784f Jan Kiszka
STEXI
500 f114784f Jan Kiszka
Write to I/O port.
501 f114784f Jan Kiszka
ETEXI
502 2313086a Blue Swirl
503 d7f9b689 Luiz Capitulino
    {
504 d7f9b689 Luiz Capitulino
        .name       = "sendkey",
505 d7f9b689 Luiz Capitulino
        .args_type  = "string:s,hold_time:i?",
506 d7f9b689 Luiz Capitulino
        .params     = "keys [hold_ms]",
507 d7f9b689 Luiz Capitulino
        .help       = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
508 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_sendkey,
509 d7f9b689 Luiz Capitulino
    },
510 d7f9b689 Luiz Capitulino
511 2313086a Blue Swirl
STEXI
512 2313086a Blue Swirl
@item sendkey @var{keys}
513 70fcbbe7 Stefan Weil
@findex sendkey
514 2313086a Blue Swirl
515 2313086a Blue Swirl
Send @var{keys} to the emulator. @var{keys} could be the name of the
516 2313086a Blue Swirl
key or @code{#} followed by the raw value in either decimal or hexadecimal
517 2313086a Blue Swirl
format. Use @code{-} to press several keys simultaneously. Example:
518 2313086a Blue Swirl
@example
519 2313086a Blue Swirl
sendkey ctrl-alt-f1
520 2313086a Blue Swirl
@end example
521 2313086a Blue Swirl
522 2313086a Blue Swirl
This command is useful to send keys that your graphical user interface
523 2313086a Blue Swirl
intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
524 2313086a Blue Swirl
ETEXI
525 2313086a Blue Swirl
526 d7f9b689 Luiz Capitulino
    {
527 d7f9b689 Luiz Capitulino
        .name       = "system_reset",
528 d7f9b689 Luiz Capitulino
        .args_type  = "",
529 d7f9b689 Luiz Capitulino
        .params     = "",
530 d7f9b689 Luiz Capitulino
        .help       = "reset the system",
531 38d22653 Luiz Capitulino
        .mhandler.cmd = hmp_system_reset,
532 d7f9b689 Luiz Capitulino
    },
533 d7f9b689 Luiz Capitulino
534 2313086a Blue Swirl
STEXI
535 2313086a Blue Swirl
@item system_reset
536 70fcbbe7 Stefan Weil
@findex system_reset
537 2313086a Blue Swirl
538 2313086a Blue Swirl
Reset the system.
539 2313086a Blue Swirl
ETEXI
540 2313086a Blue Swirl
541 d7f9b689 Luiz Capitulino
    {
542 d7f9b689 Luiz Capitulino
        .name       = "system_powerdown",
543 d7f9b689 Luiz Capitulino
        .args_type  = "",
544 d7f9b689 Luiz Capitulino
        .params     = "",
545 d7f9b689 Luiz Capitulino
        .help       = "send system power down event",
546 5bc465e4 Luiz Capitulino
        .mhandler.cmd = hmp_system_powerdown,
547 d7f9b689 Luiz Capitulino
    },
548 d7f9b689 Luiz Capitulino
549 2313086a Blue Swirl
STEXI
550 2313086a Blue Swirl
@item system_powerdown
551 70fcbbe7 Stefan Weil
@findex system_powerdown
552 2313086a Blue Swirl
553 2313086a Blue Swirl
Power down the system (if supported).
554 2313086a Blue Swirl
ETEXI
555 2313086a Blue Swirl
556 d7f9b689 Luiz Capitulino
    {
557 d7f9b689 Luiz Capitulino
        .name       = "sum",
558 d7f9b689 Luiz Capitulino
        .args_type  = "start:i,size:i",
559 d7f9b689 Luiz Capitulino
        .params     = "addr size",
560 d7f9b689 Luiz Capitulino
        .help       = "compute the checksum of a memory region",
561 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_sum,
562 d7f9b689 Luiz Capitulino
    },
563 d7f9b689 Luiz Capitulino
564 2313086a Blue Swirl
STEXI
565 2313086a Blue Swirl
@item sum @var{addr} @var{size}
566 70fcbbe7 Stefan Weil
@findex sum
567 2313086a Blue Swirl
568 2313086a Blue Swirl
Compute the checksum of a memory region.
569 2313086a Blue Swirl
ETEXI
570 2313086a Blue Swirl
571 d7f9b689 Luiz Capitulino
    {
572 d7f9b689 Luiz Capitulino
        .name       = "usb_add",
573 d7f9b689 Luiz Capitulino
        .args_type  = "devname:s",
574 d7f9b689 Luiz Capitulino
        .params     = "device",
575 d7f9b689 Luiz Capitulino
        .help       = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
576 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_usb_add,
577 d7f9b689 Luiz Capitulino
    },
578 d7f9b689 Luiz Capitulino
579 2313086a Blue Swirl
STEXI
580 2313086a Blue Swirl
@item usb_add @var{devname}
581 70fcbbe7 Stefan Weil
@findex usb_add
582 2313086a Blue Swirl
583 2313086a Blue Swirl
Add the USB device @var{devname}.  For details of available devices see
584 2313086a Blue Swirl
@ref{usb_devices}
585 2313086a Blue Swirl
ETEXI
586 2313086a Blue Swirl
587 d7f9b689 Luiz Capitulino
    {
588 d7f9b689 Luiz Capitulino
        .name       = "usb_del",
589 d7f9b689 Luiz Capitulino
        .args_type  = "devname:s",
590 d7f9b689 Luiz Capitulino
        .params     = "device",
591 d7f9b689 Luiz Capitulino
        .help       = "remove USB device 'bus.addr'",
592 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_usb_del,
593 d7f9b689 Luiz Capitulino
    },
594 d7f9b689 Luiz Capitulino
595 2313086a Blue Swirl
STEXI
596 2313086a Blue Swirl
@item usb_del @var{devname}
597 70fcbbe7 Stefan Weil
@findex usb_del
598 2313086a Blue Swirl
599 2313086a Blue Swirl
Remove the USB device @var{devname} from the QEMU virtual USB
600 2313086a Blue Swirl
hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
601 2313086a Blue Swirl
command @code{info usb} to see the devices you can remove.
602 2313086a Blue Swirl
ETEXI
603 2313086a Blue Swirl
604 d7f9b689 Luiz Capitulino
    {
605 d7f9b689 Luiz Capitulino
        .name       = "device_add",
606 c7e4e8ce Markus Armbruster
        .args_type  = "device:O",
607 c7e4e8ce Markus Armbruster
        .params     = "driver[,prop=value][,...]",
608 d7f9b689 Luiz Capitulino
        .help       = "add device, like -device on the command line",
609 8bc27249 Markus Armbruster
        .user_print = monitor_user_noop,
610 8bc27249 Markus Armbruster
        .mhandler.cmd_new = do_device_add,
611 d7f9b689 Luiz Capitulino
    },
612 d7f9b689 Luiz Capitulino
613 3418bd25 Gerd Hoffmann
STEXI
614 3418bd25 Gerd Hoffmann
@item device_add @var{config}
615 70fcbbe7 Stefan Weil
@findex device_add
616 3418bd25 Gerd Hoffmann
617 3418bd25 Gerd Hoffmann
Add device.
618 3418bd25 Gerd Hoffmann
ETEXI
619 3418bd25 Gerd Hoffmann
620 d7f9b689 Luiz Capitulino
    {
621 d7f9b689 Luiz Capitulino
        .name       = "device_del",
622 d7f9b689 Luiz Capitulino
        .args_type  = "id:s",
623 d7f9b689 Luiz Capitulino
        .params     = "device",
624 d7f9b689 Luiz Capitulino
        .help       = "remove device",
625 a15fef21 Luiz Capitulino
        .mhandler.cmd = hmp_device_del,
626 d7f9b689 Luiz Capitulino
    },
627 d7f9b689 Luiz Capitulino
628 3418bd25 Gerd Hoffmann
STEXI
629 3418bd25 Gerd Hoffmann
@item device_del @var{id}
630 70fcbbe7 Stefan Weil
@findex device_del
631 3418bd25 Gerd Hoffmann
632 3418bd25 Gerd Hoffmann
Remove device @var{id}.
633 3418bd25 Gerd Hoffmann
ETEXI
634 3418bd25 Gerd Hoffmann
635 d7f9b689 Luiz Capitulino
    {
636 d7f9b689 Luiz Capitulino
        .name       = "cpu",
637 d7f9b689 Luiz Capitulino
        .args_type  = "index:i",
638 d7f9b689 Luiz Capitulino
        .params     = "index",
639 d7f9b689 Luiz Capitulino
        .help       = "set the default CPU",
640 755f1968 Luiz Capitulino
        .mhandler.cmd = hmp_cpu,
641 d7f9b689 Luiz Capitulino
    },
642 3418bd25 Gerd Hoffmann
643 2313086a Blue Swirl
STEXI
644 c427ea9c Markus Armbruster
@item cpu @var{index}
645 c427ea9c Markus Armbruster
@findex cpu
646 2313086a Blue Swirl
Set the default CPU.
647 2313086a Blue Swirl
ETEXI
648 2313086a Blue Swirl
649 d7f9b689 Luiz Capitulino
    {
650 d7f9b689 Luiz Capitulino
        .name       = "mouse_move",
651 d7f9b689 Luiz Capitulino
        .args_type  = "dx_str:s,dy_str:s,dz_str:s?",
652 d7f9b689 Luiz Capitulino
        .params     = "dx dy [dz]",
653 d7f9b689 Luiz Capitulino
        .help       = "send mouse move events",
654 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_mouse_move,
655 d7f9b689 Luiz Capitulino
    },
656 d7f9b689 Luiz Capitulino
657 2313086a Blue Swirl
STEXI
658 2313086a Blue Swirl
@item mouse_move @var{dx} @var{dy} [@var{dz}]
659 70fcbbe7 Stefan Weil
@findex mouse_move
660 2313086a Blue Swirl
Move the active mouse to the specified coordinates @var{dx} @var{dy}
661 2313086a Blue Swirl
with optional scroll axis @var{dz}.
662 2313086a Blue Swirl
ETEXI
663 2313086a Blue Swirl
664 d7f9b689 Luiz Capitulino
    {
665 d7f9b689 Luiz Capitulino
        .name       = "mouse_button",
666 d7f9b689 Luiz Capitulino
        .args_type  = "button_state:i",
667 d7f9b689 Luiz Capitulino
        .params     = "state",
668 d7f9b689 Luiz Capitulino
        .help       = "change mouse button state (1=L, 2=M, 4=R)",
669 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_mouse_button,
670 d7f9b689 Luiz Capitulino
    },
671 d7f9b689 Luiz Capitulino
672 2313086a Blue Swirl
STEXI
673 2313086a Blue Swirl
@item mouse_button @var{val}
674 70fcbbe7 Stefan Weil
@findex mouse_button
675 2313086a Blue Swirl
Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
676 2313086a Blue Swirl
ETEXI
677 2313086a Blue Swirl
678 d7f9b689 Luiz Capitulino
    {
679 d7f9b689 Luiz Capitulino
        .name       = "mouse_set",
680 d7f9b689 Luiz Capitulino
        .args_type  = "index:i",
681 d7f9b689 Luiz Capitulino
        .params     = "index",
682 d7f9b689 Luiz Capitulino
        .help       = "set which mouse device receives events",
683 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_mouse_set,
684 d7f9b689 Luiz Capitulino
    },
685 d7f9b689 Luiz Capitulino
686 2313086a Blue Swirl
STEXI
687 2313086a Blue Swirl
@item mouse_set @var{index}
688 70fcbbe7 Stefan Weil
@findex mouse_set
689 2313086a Blue Swirl
Set which mouse device receives events at given @var{index}, index
690 2313086a Blue Swirl
can be obtained with
691 2313086a Blue Swirl
@example
692 2313086a Blue Swirl
info mice
693 2313086a Blue Swirl
@end example
694 2313086a Blue Swirl
ETEXI
695 2313086a Blue Swirl
696 2313086a Blue Swirl
#ifdef HAS_AUDIO
697 d7f9b689 Luiz Capitulino
    {
698 d7f9b689 Luiz Capitulino
        .name       = "wavcapture",
699 d7f9b689 Luiz Capitulino
        .args_type  = "path:F,freq:i?,bits:i?,nchannels:i?",
700 d7f9b689 Luiz Capitulino
        .params     = "path [frequency [bits [channels]]]",
701 d7f9b689 Luiz Capitulino
        .help       = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
702 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_wav_capture,
703 d7f9b689 Luiz Capitulino
    },
704 2313086a Blue Swirl
#endif
705 2313086a Blue Swirl
STEXI
706 2313086a Blue Swirl
@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
707 70fcbbe7 Stefan Weil
@findex wavcapture
708 2313086a Blue Swirl
Capture audio into @var{filename}. Using sample rate @var{frequency}
709 2313086a Blue Swirl
bits per sample @var{bits} and number of channels @var{channels}.
710 2313086a Blue Swirl
711 2313086a Blue Swirl
Defaults:
712 2313086a Blue Swirl
@itemize @minus
713 2313086a Blue Swirl
@item Sample rate = 44100 Hz - CD quality
714 2313086a Blue Swirl
@item Bits = 16
715 2313086a Blue Swirl
@item Number of channels = 2 - Stereo
716 2313086a Blue Swirl
@end itemize
717 2313086a Blue Swirl
ETEXI
718 2313086a Blue Swirl
719 2313086a Blue Swirl
#ifdef HAS_AUDIO
720 d7f9b689 Luiz Capitulino
    {
721 d7f9b689 Luiz Capitulino
        .name       = "stopcapture",
722 d7f9b689 Luiz Capitulino
        .args_type  = "n:i",
723 d7f9b689 Luiz Capitulino
        .params     = "capture index",
724 d7f9b689 Luiz Capitulino
        .help       = "stop capture",
725 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_stop_capture,
726 d7f9b689 Luiz Capitulino
    },
727 2313086a Blue Swirl
#endif
728 2313086a Blue Swirl
STEXI
729 2313086a Blue Swirl
@item stopcapture @var{index}
730 70fcbbe7 Stefan Weil
@findex stopcapture
731 2313086a Blue Swirl
Stop capture with a given @var{index}, index can be obtained with
732 2313086a Blue Swirl
@example
733 2313086a Blue Swirl
info capture
734 2313086a Blue Swirl
@end example
735 2313086a Blue Swirl
ETEXI
736 2313086a Blue Swirl
737 d7f9b689 Luiz Capitulino
    {
738 d7f9b689 Luiz Capitulino
        .name       = "memsave",
739 d7f9b689 Luiz Capitulino
        .args_type  = "val:l,size:i,filename:s",
740 d7f9b689 Luiz Capitulino
        .params     = "addr size file",
741 d7f9b689 Luiz Capitulino
        .help       = "save to disk virtual memory dump starting at 'addr' of size 'size'",
742 0cfd6a9a Luiz Capitulino
        .mhandler.cmd = hmp_memsave,
743 d7f9b689 Luiz Capitulino
    },
744 d7f9b689 Luiz Capitulino
745 2313086a Blue Swirl
STEXI
746 2313086a Blue Swirl
@item memsave @var{addr} @var{size} @var{file}
747 70fcbbe7 Stefan Weil
@findex memsave
748 2313086a Blue Swirl
save to disk virtual memory dump starting at @var{addr} of size @var{size}.
749 2313086a Blue Swirl
ETEXI
750 2313086a Blue Swirl
751 d7f9b689 Luiz Capitulino
    {
752 d7f9b689 Luiz Capitulino
        .name       = "pmemsave",
753 d7f9b689 Luiz Capitulino
        .args_type  = "val:l,size:i,filename:s",
754 d7f9b689 Luiz Capitulino
        .params     = "addr size file",
755 d7f9b689 Luiz Capitulino
        .help       = "save to disk physical memory dump starting at 'addr' of size 'size'",
756 6d3962bf Luiz Capitulino
        .mhandler.cmd = hmp_pmemsave,
757 d7f9b689 Luiz Capitulino
    },
758 d7f9b689 Luiz Capitulino
759 2313086a Blue Swirl
STEXI
760 2313086a Blue Swirl
@item pmemsave @var{addr} @var{size} @var{file}
761 70fcbbe7 Stefan Weil
@findex pmemsave
762 2313086a Blue Swirl
save to disk physical memory dump starting at @var{addr} of size @var{size}.
763 2313086a Blue Swirl
ETEXI
764 2313086a Blue Swirl
765 d7f9b689 Luiz Capitulino
    {
766 d7f9b689 Luiz Capitulino
        .name       = "boot_set",
767 d7f9b689 Luiz Capitulino
        .args_type  = "bootdevice:s",
768 d7f9b689 Luiz Capitulino
        .params     = "bootdevice",
769 d7f9b689 Luiz Capitulino
        .help       = "define new values for the boot device list",
770 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_boot_set,
771 d7f9b689 Luiz Capitulino
    },
772 d7f9b689 Luiz Capitulino
773 2313086a Blue Swirl
STEXI
774 2313086a Blue Swirl
@item boot_set @var{bootdevicelist}
775 70fcbbe7 Stefan Weil
@findex boot_set
776 2313086a Blue Swirl
777 2313086a Blue Swirl
Define new values for the boot device list. Those values will override
778 2313086a Blue Swirl
the values specified on the command line through the @code{-boot} option.
779 2313086a Blue Swirl
780 2313086a Blue Swirl
The values that can be specified here depend on the machine type, but are
781 2313086a Blue Swirl
the same that can be specified in the @code{-boot} command line option.
782 2313086a Blue Swirl
ETEXI
783 2313086a Blue Swirl
784 2313086a Blue Swirl
#if defined(TARGET_I386)
785 d7f9b689 Luiz Capitulino
    {
786 d7f9b689 Luiz Capitulino
        .name       = "nmi",
787 e9b4b432 Luiz Capitulino
        .args_type  = "",
788 e9b4b432 Luiz Capitulino
        .params     = "",
789 e9b4b432 Luiz Capitulino
        .help       = "inject an NMI on all guest's CPUs",
790 ab49ab5c Luiz Capitulino
        .mhandler.cmd = hmp_inject_nmi,
791 d7f9b689 Luiz Capitulino
    },
792 2313086a Blue Swirl
#endif
793 2313086a Blue Swirl
STEXI
794 2313086a Blue Swirl
@item nmi @var{cpu}
795 70fcbbe7 Stefan Weil
@findex nmi
796 2313086a Blue Swirl
Inject an NMI on the given CPU (x86 only).
797 2313086a Blue Swirl
ETEXI
798 2313086a Blue Swirl
799 d7f9b689 Luiz Capitulino
    {
800 d7f9b689 Luiz Capitulino
        .name       = "migrate",
801 fbc3d96c lirans@il.ibm.com
        .args_type  = "detach:-d,blk:-b,inc:-i,uri:s",
802 fbc3d96c lirans@il.ibm.com
        .params     = "[-d] [-b] [-i] uri",
803 fbc3d96c lirans@il.ibm.com
        .help       = "migrate to URI (using -d to not wait for completion)"
804 fbc3d96c lirans@il.ibm.com
		      "\n\t\t\t -b for migration without shared storage with"
805 fbc3d96c lirans@il.ibm.com
		      " full copy of disk\n\t\t\t -i for migration without "
806 fbc3d96c lirans@il.ibm.com
		      "shared storage with incremental copy of disk "
807 fbc3d96c lirans@il.ibm.com
		      "(base image shared between src and destination)",
808 e1c37d0e Luiz Capitulino
        .mhandler.cmd = hmp_migrate,
809 d7f9b689 Luiz Capitulino
    },
810 d7f9b689 Luiz Capitulino
811 fbc3d96c lirans@il.ibm.com
812 2313086a Blue Swirl
STEXI
813 fbc3d96c lirans@il.ibm.com
@item migrate [-d] [-b] [-i] @var{uri}
814 70fcbbe7 Stefan Weil
@findex migrate
815 2313086a Blue Swirl
Migrate to @var{uri} (using -d to not wait for completion).
816 fbc3d96c lirans@il.ibm.com
	-b for migration with full copy of disk
817 fbc3d96c lirans@il.ibm.com
	-i for migration with incremental copy of disk (base image is shared)
818 2313086a Blue Swirl
ETEXI
819 2313086a Blue Swirl
820 d7f9b689 Luiz Capitulino
    {
821 d7f9b689 Luiz Capitulino
        .name       = "migrate_cancel",
822 d7f9b689 Luiz Capitulino
        .args_type  = "",
823 d7f9b689 Luiz Capitulino
        .params     = "",
824 d7f9b689 Luiz Capitulino
        .help       = "cancel the current VM migration",
825 6cdedb07 Luiz Capitulino
        .mhandler.cmd = hmp_migrate_cancel,
826 d7f9b689 Luiz Capitulino
    },
827 d7f9b689 Luiz Capitulino
828 2313086a Blue Swirl
STEXI
829 2313086a Blue Swirl
@item migrate_cancel
830 70fcbbe7 Stefan Weil
@findex migrate_cancel
831 2313086a Blue Swirl
Cancel the current VM migration.
832 9e1ba4cc Orit Wasserman
833 9e1ba4cc Orit Wasserman
ETEXI
834 9e1ba4cc Orit Wasserman
835 9e1ba4cc Orit Wasserman
    {
836 9e1ba4cc Orit Wasserman
        .name       = "migrate_set_cache_size",
837 9e1ba4cc Orit Wasserman
        .args_type  = "value:o",
838 9e1ba4cc Orit Wasserman
        .params     = "value",
839 9e1ba4cc Orit Wasserman
        .help       = "set cache size (in bytes) for XBZRLE migrations,"
840 9e1ba4cc Orit Wasserman
                      "the cache size will be rounded down to the nearest "
841 9e1ba4cc Orit Wasserman
                      "power of 2.\n"
842 9e1ba4cc Orit Wasserman
                      "The cache size affects the number of cache misses."
843 9e1ba4cc Orit Wasserman
                      "In case of a high cache miss ratio you need to increase"
844 9e1ba4cc Orit Wasserman
                      " the cache size",
845 9e1ba4cc Orit Wasserman
        .mhandler.cmd = hmp_migrate_set_cache_size,
846 9e1ba4cc Orit Wasserman
    },
847 9e1ba4cc Orit Wasserman
848 9e1ba4cc Orit Wasserman
STEXI
849 9e1ba4cc Orit Wasserman
@item migrate_set_cache_size @var{value}
850 9e1ba4cc Orit Wasserman
@findex migrate_set_cache_size
851 9e1ba4cc Orit Wasserman
Set cache size to @var{value} (in bytes) for xbzrle migrations.
852 2313086a Blue Swirl
ETEXI
853 2313086a Blue Swirl
854 d7f9b689 Luiz Capitulino
    {
855 d7f9b689 Luiz Capitulino
        .name       = "migrate_set_speed",
856 ed3d4a80 Jes Sorensen
        .args_type  = "value:o",
857 d7f9b689 Luiz Capitulino
        .params     = "value",
858 ed3d4a80 Jes Sorensen
        .help       = "set maximum speed (in bytes) for migrations. "
859 ed3d4a80 Jes Sorensen
	"Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
860 3dc85383 Luiz Capitulino
        .mhandler.cmd = hmp_migrate_set_speed,
861 d7f9b689 Luiz Capitulino
    },
862 d7f9b689 Luiz Capitulino
863 2313086a Blue Swirl
STEXI
864 2313086a Blue Swirl
@item migrate_set_speed @var{value}
865 70fcbbe7 Stefan Weil
@findex migrate_set_speed
866 2313086a Blue Swirl
Set maximum speed to @var{value} (in bytes) for migrations.
867 2313086a Blue Swirl
ETEXI
868 2313086a Blue Swirl
869 d7f9b689 Luiz Capitulino
    {
870 d7f9b689 Luiz Capitulino
        .name       = "migrate_set_downtime",
871 b0fbf7d3 Markus Armbruster
        .args_type  = "value:T",
872 d7f9b689 Luiz Capitulino
        .params     = "value",
873 d7f9b689 Luiz Capitulino
        .help       = "set maximum tolerated downtime (in seconds) for migrations",
874 4f0a993b Luiz Capitulino
        .mhandler.cmd = hmp_migrate_set_downtime,
875 d7f9b689 Luiz Capitulino
    },
876 2ea42952 Glauber Costa
877 2ea42952 Glauber Costa
STEXI
878 2ea42952 Glauber Costa
@item migrate_set_downtime @var{second}
879 70fcbbe7 Stefan Weil
@findex migrate_set_downtime
880 2ea42952 Glauber Costa
Set maximum tolerated downtime (in seconds) for migration.
881 2ea42952 Glauber Costa
ETEXI
882 2ea42952 Glauber Costa
883 f8882568 Jes Sorensen
    {
884 00458433 Orit Wasserman
        .name       = "migrate_set_capability",
885 00458433 Orit Wasserman
        .args_type  = "capability:s,state:b",
886 00458433 Orit Wasserman
        .params     = "capability state",
887 00458433 Orit Wasserman
        .help       = "Enable/Disable the usage of a capability for migration",
888 00458433 Orit Wasserman
        .mhandler.cmd = hmp_migrate_set_capability,
889 00458433 Orit Wasserman
    },
890 00458433 Orit Wasserman
891 00458433 Orit Wasserman
STEXI
892 00458433 Orit Wasserman
@item migrate_set_capability @var{capability} @var{state}
893 00458433 Orit Wasserman
@findex migrate_set_capability
894 00458433 Orit Wasserman
Enable/Disable the usage of a capability @var{capability} for migration.
895 00458433 Orit Wasserman
ETEXI
896 00458433 Orit Wasserman
897 00458433 Orit Wasserman
    {
898 2ea720db Jes Sorensen
        .name       = "client_migrate_info",
899 2ea720db Jes Sorensen
        .args_type  = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
900 2ea720db Jes Sorensen
        .params     = "protocol hostname port tls-port cert-subject",
901 2ea720db Jes Sorensen
        .help       = "send migration info to spice/vnc client",
902 2ea720db Jes Sorensen
        .user_print = monitor_user_noop,
903 edc5cb1a Yonit Halperin
        .mhandler.cmd_async = client_migrate_info,
904 edc5cb1a Yonit Halperin
        .flags      = MONITOR_CMD_ASYNC,
905 f8882568 Jes Sorensen
    },
906 f8882568 Jes Sorensen
907 f8882568 Jes Sorensen
STEXI
908 e866e239 Gerd Hoffmann
@item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject}
909 e866e239 Gerd Hoffmann
@findex client_migrate_info
910 e866e239 Gerd Hoffmann
Set the spice/vnc connection info for the migration target.  The spice/vnc
911 e866e239 Gerd Hoffmann
server will ask the spice/vnc client to automatically reconnect using the
912 e866e239 Gerd Hoffmann
new parameters (if specified) once the vm migration finished successfully.
913 e866e239 Gerd Hoffmann
ETEXI
914 e866e239 Gerd Hoffmann
915 783e9b48 Wen Congyang
#if defined(CONFIG_HAVE_CORE_DUMP)
916 783e9b48 Wen Congyang
    {
917 783e9b48 Wen Congyang
        .name       = "dump-guest-memory",
918 783e9b48 Wen Congyang
        .args_type  = "paging:-p,protocol:s,begin:i?,length:i?",
919 783e9b48 Wen Congyang
        .params     = "[-p] protocol [begin] [length]",
920 783e9b48 Wen Congyang
        .help       = "dump guest memory to file"
921 783e9b48 Wen Congyang
                      "\n\t\t\t begin(optional): the starting physical address"
922 783e9b48 Wen Congyang
                      "\n\t\t\t length(optional): the memory size, in bytes",
923 783e9b48 Wen Congyang
        .user_print = monitor_user_noop,
924 783e9b48 Wen Congyang
        .mhandler.cmd = hmp_dump_guest_memory,
925 783e9b48 Wen Congyang
    },
926 783e9b48 Wen Congyang
927 783e9b48 Wen Congyang
928 783e9b48 Wen Congyang
STEXI
929 783e9b48 Wen Congyang
@item dump-guest-memory [-p] @var{protocol} @var{begin} @var{length}
930 783e9b48 Wen Congyang
@findex dump-guest-memory
931 783e9b48 Wen Congyang
Dump guest memory to @var{protocol}. The file can be processed with crash or
932 783e9b48 Wen Congyang
gdb.
933 783e9b48 Wen Congyang
  protocol: destination file(started with "file:") or destination file
934 783e9b48 Wen Congyang
            descriptor (started with "fd:")
935 783e9b48 Wen Congyang
    paging: do paging to get guest's memory mapping
936 783e9b48 Wen Congyang
     begin: the starting physical address. It's optional, and should be
937 783e9b48 Wen Congyang
            specified with length together.
938 783e9b48 Wen Congyang
    length: the memory size, in bytes. It's optional, and should be specified
939 783e9b48 Wen Congyang
            with begin together.
940 783e9b48 Wen Congyang
ETEXI
941 783e9b48 Wen Congyang
#endif
942 783e9b48 Wen Congyang
943 e866e239 Gerd Hoffmann
    {
944 2ea720db Jes Sorensen
        .name       = "snapshot_blkdev",
945 6cc2a415 Paolo Bonzini
        .args_type  = "reuse:-n,device:B,snapshot-file:s?,format:s?",
946 6cc2a415 Paolo Bonzini
        .params     = "[-n] device [new-image-file] [format]",
947 2ea720db Jes Sorensen
        .help       = "initiates a live snapshot\n\t\t\t"
948 2ea720db Jes Sorensen
                      "of device. If a new image file is specified, the\n\t\t\t"
949 2ea720db Jes Sorensen
                      "new image file will become the new root image.\n\t\t\t"
950 2ea720db Jes Sorensen
                      "If format is specified, the snapshot file will\n\t\t\t"
951 2ea720db Jes Sorensen
                      "be created in that format. Otherwise the\n\t\t\t"
952 6cc2a415 Paolo Bonzini
                      "snapshot will be internal! (currently unsupported).\n\t\t\t"
953 6cc2a415 Paolo Bonzini
                      "The default format is qcow2.  The -n flag requests QEMU\n\t\t\t"
954 6cc2a415 Paolo Bonzini
                      "to reuse the image found in new-image-file, instead of\n\t\t\t"
955 6cc2a415 Paolo Bonzini
                      "recreating it from scratch.",
956 6106e249 Luiz Capitulino
        .mhandler.cmd = hmp_snapshot_blkdev,
957 e866e239 Gerd Hoffmann
    },
958 e866e239 Gerd Hoffmann
959 e866e239 Gerd Hoffmann
STEXI
960 f8882568 Jes Sorensen
@item snapshot_blkdev
961 f8882568 Jes Sorensen
@findex snapshot_blkdev
962 f8882568 Jes Sorensen
Snapshot device, using snapshot file as target if provided
963 f8882568 Jes Sorensen
ETEXI
964 f8882568 Jes Sorensen
965 d7f9b689 Luiz Capitulino
    {
966 d7f9b689 Luiz Capitulino
        .name       = "drive_add",
967 d7f9b689 Luiz Capitulino
        .args_type  = "pci_addr:s,opts:s",
968 d7f9b689 Luiz Capitulino
        .params     = "[[<domain>:]<bus>:]<slot>\n"
969 d7f9b689 Luiz Capitulino
                      "[file=file][,if=type][,bus=n]\n"
970 fb0490f6 Stefan Hajnoczi
                      "[,unit=m][,media=d][,index=i]\n"
971 d7f9b689 Luiz Capitulino
                      "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
972 fb0490f6 Stefan Hajnoczi
                      "[,snapshot=on|off][,cache=on|off]\n"
973 fb0490f6 Stefan Hajnoczi
                      "[,readonly=on|off][,copy-on-read=on|off]",
974 d7f9b689 Luiz Capitulino
        .help       = "add drive to PCI storage controller",
975 af4ce882 Luiz Capitulino
        .mhandler.cmd = drive_hot_add,
976 d7f9b689 Luiz Capitulino
    },
977 d7f9b689 Luiz Capitulino
978 2313086a Blue Swirl
STEXI
979 2313086a Blue Swirl
@item drive_add
980 70fcbbe7 Stefan Weil
@findex drive_add
981 2313086a Blue Swirl
Add drive to PCI storage controller.
982 2313086a Blue Swirl
ETEXI
983 2313086a Blue Swirl
984 2313086a Blue Swirl
#if defined(TARGET_I386)
985 d7f9b689 Luiz Capitulino
    {
986 d7f9b689 Luiz Capitulino
        .name       = "pci_add",
987 d7f9b689 Luiz Capitulino
        .args_type  = "pci_addr:s,type:s,opts:s?",
988 d7f9b689 Luiz Capitulino
        .params     = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
989 d7f9b689 Luiz Capitulino
        .help       = "hot-add PCI device",
990 6c6a58ae Markus Armbruster
        .mhandler.cmd = pci_device_hot_add,
991 d7f9b689 Luiz Capitulino
    },
992 2313086a Blue Swirl
#endif
993 d7f9b689 Luiz Capitulino
994 2313086a Blue Swirl
STEXI
995 2313086a Blue Swirl
@item pci_add
996 70fcbbe7 Stefan Weil
@findex pci_add
997 2313086a Blue Swirl
Hot-add PCI device.
998 2313086a Blue Swirl
ETEXI
999 2313086a Blue Swirl
1000 2313086a Blue Swirl
#if defined(TARGET_I386)
1001 d7f9b689 Luiz Capitulino
    {
1002 d7f9b689 Luiz Capitulino
        .name       = "pci_del",
1003 d7f9b689 Luiz Capitulino
        .args_type  = "pci_addr:s",
1004 d7f9b689 Luiz Capitulino
        .params     = "[[<domain>:]<bus>:]<slot>",
1005 d7f9b689 Luiz Capitulino
        .help       = "hot remove PCI device",
1006 b752daf0 Markus Armbruster
        .mhandler.cmd = do_pci_device_hot_remove,
1007 d7f9b689 Luiz Capitulino
    },
1008 2313086a Blue Swirl
#endif
1009 d7f9b689 Luiz Capitulino
1010 2313086a Blue Swirl
STEXI
1011 2313086a Blue Swirl
@item pci_del
1012 70fcbbe7 Stefan Weil
@findex pci_del
1013 2313086a Blue Swirl
Hot remove PCI device.
1014 2313086a Blue Swirl
ETEXI
1015 2313086a Blue Swirl
1016 d7f9b689 Luiz Capitulino
    {
1017 2ae63bda Isaku Yamahata
        .name       = "pcie_aer_inject_error",
1018 2ae63bda Isaku Yamahata
        .args_type  = "advisory_non_fatal:-a,correctable:-c,"
1019 2ae63bda Isaku Yamahata
	              "id:s,error_status:s,"
1020 2ae63bda Isaku Yamahata
	              "header0:i?,header1:i?,header2:i?,header3:i?,"
1021 2ae63bda Isaku Yamahata
	              "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?",
1022 2ae63bda Isaku Yamahata
        .params     = "[-a] [-c] id "
1023 2ae63bda Isaku Yamahata
                      "<error_status> [<tlp header> [<tlp header prefix>]]",
1024 2ae63bda Isaku Yamahata
        .help       = "inject pcie aer error\n\t\t\t"
1025 2ae63bda Isaku Yamahata
	              " -a for advisory non fatal error\n\t\t\t"
1026 2ae63bda Isaku Yamahata
	              " -c for correctable error\n\t\t\t"
1027 2ae63bda Isaku Yamahata
                      "<id> = qdev device id\n\t\t\t"
1028 2ae63bda Isaku Yamahata
                      "<error_status> = error string or 32bit\n\t\t\t"
1029 2ae63bda Isaku Yamahata
                      "<tlb header> = 32bit x 4\n\t\t\t"
1030 2ae63bda Isaku Yamahata
                      "<tlb header prefix> = 32bit x 4",
1031 2ae63bda Isaku Yamahata
        .user_print  = pcie_aer_inject_error_print,
1032 1f3392b7 Zhi Yong Wu
        .mhandler.cmd_new = do_pcie_aer_inject_error,
1033 2ae63bda Isaku Yamahata
    },
1034 2ae63bda Isaku Yamahata
1035 2ae63bda Isaku Yamahata
STEXI
1036 2ae63bda Isaku Yamahata
@item pcie_aer_inject_error
1037 2ae63bda Isaku Yamahata
@findex pcie_aer_inject_error
1038 2ae63bda Isaku Yamahata
Inject PCIe AER error
1039 2ae63bda Isaku Yamahata
ETEXI
1040 2ae63bda Isaku Yamahata
1041 2ae63bda Isaku Yamahata
    {
1042 d7f9b689 Luiz Capitulino
        .name       = "host_net_add",
1043 d7f9b689 Luiz Capitulino
        .args_type  = "device:s,opts:s?",
1044 d7f9b689 Luiz Capitulino
        .params     = "tap|user|socket|vde|dump [options]",
1045 d7f9b689 Luiz Capitulino
        .help       = "add host VLAN client",
1046 af4ce882 Luiz Capitulino
        .mhandler.cmd = net_host_device_add,
1047 d7f9b689 Luiz Capitulino
    },
1048 d7f9b689 Luiz Capitulino
1049 2313086a Blue Swirl
STEXI
1050 2313086a Blue Swirl
@item host_net_add
1051 70fcbbe7 Stefan Weil
@findex host_net_add
1052 2313086a Blue Swirl
Add host VLAN client.
1053 2313086a Blue Swirl
ETEXI
1054 2313086a Blue Swirl
1055 d7f9b689 Luiz Capitulino
    {
1056 d7f9b689 Luiz Capitulino
        .name       = "host_net_remove",
1057 d7f9b689 Luiz Capitulino
        .args_type  = "vlan_id:i,device:s",
1058 d7f9b689 Luiz Capitulino
        .params     = "vlan_id name",
1059 d7f9b689 Luiz Capitulino
        .help       = "remove host VLAN client",
1060 af4ce882 Luiz Capitulino
        .mhandler.cmd = net_host_device_remove,
1061 d7f9b689 Luiz Capitulino
    },
1062 d7f9b689 Luiz Capitulino
1063 2313086a Blue Swirl
STEXI
1064 2313086a Blue Swirl
@item host_net_remove
1065 70fcbbe7 Stefan Weil
@findex host_net_remove
1066 2313086a Blue Swirl
Remove host VLAN client.
1067 2313086a Blue Swirl
ETEXI
1068 2313086a Blue Swirl
1069 ae82d324 Markus Armbruster
    {
1070 ae82d324 Markus Armbruster
        .name       = "netdev_add",
1071 ae82d324 Markus Armbruster
        .args_type  = "netdev:O",
1072 ae82d324 Markus Armbruster
        .params     = "[user|tap|socket],id=str[,prop=value][,...]",
1073 ae82d324 Markus Armbruster
        .help       = "add host network device",
1074 928059a3 Luiz Capitulino
        .mhandler.cmd = hmp_netdev_add,
1075 ae82d324 Markus Armbruster
    },
1076 ae82d324 Markus Armbruster
1077 ae82d324 Markus Armbruster
STEXI
1078 ae82d324 Markus Armbruster
@item netdev_add
1079 ae82d324 Markus Armbruster
@findex netdev_add
1080 ae82d324 Markus Armbruster
Add host network device.
1081 ae82d324 Markus Armbruster
ETEXI
1082 ae82d324 Markus Armbruster
1083 ae82d324 Markus Armbruster
    {
1084 ae82d324 Markus Armbruster
        .name       = "netdev_del",
1085 ae82d324 Markus Armbruster
        .args_type  = "id:s",
1086 ae82d324 Markus Armbruster
        .params     = "id",
1087 ae82d324 Markus Armbruster
        .help       = "remove host network device",
1088 5f964155 Luiz Capitulino
        .mhandler.cmd = hmp_netdev_del,
1089 ae82d324 Markus Armbruster
    },
1090 ae82d324 Markus Armbruster
1091 ae82d324 Markus Armbruster
STEXI
1092 ae82d324 Markus Armbruster
@item netdev_del
1093 ae82d324 Markus Armbruster
@findex netdev_del
1094 ae82d324 Markus Armbruster
Remove host network device.
1095 ae82d324 Markus Armbruster
ETEXI
1096 ae82d324 Markus Armbruster
1097 2313086a Blue Swirl
#ifdef CONFIG_SLIRP
1098 d7f9b689 Luiz Capitulino
    {
1099 d7f9b689 Luiz Capitulino
        .name       = "hostfwd_add",
1100 d7f9b689 Luiz Capitulino
        .args_type  = "arg1:s,arg2:s?,arg3:s?",
1101 d7f9b689 Luiz Capitulino
        .params     = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
1102 d7f9b689 Luiz Capitulino
        .help       = "redirect TCP or UDP connections from host to guest (requires -net user)",
1103 af4ce882 Luiz Capitulino
        .mhandler.cmd = net_slirp_hostfwd_add,
1104 d7f9b689 Luiz Capitulino
    },
1105 21413d68 Markus Armbruster
#endif
1106 21413d68 Markus Armbruster
STEXI
1107 21413d68 Markus Armbruster
@item hostfwd_add
1108 21413d68 Markus Armbruster
@findex hostfwd_add
1109 21413d68 Markus Armbruster
Redirect TCP or UDP connections from host to guest (requires -net user).
1110 21413d68 Markus Armbruster
ETEXI
1111 d7f9b689 Luiz Capitulino
1112 21413d68 Markus Armbruster
#ifdef CONFIG_SLIRP
1113 d7f9b689 Luiz Capitulino
    {
1114 d7f9b689 Luiz Capitulino
        .name       = "hostfwd_remove",
1115 d7f9b689 Luiz Capitulino
        .args_type  = "arg1:s,arg2:s?,arg3:s?",
1116 d7f9b689 Luiz Capitulino
        .params     = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
1117 d7f9b689 Luiz Capitulino
        .help       = "remove host-to-guest TCP or UDP redirection",
1118 af4ce882 Luiz Capitulino
        .mhandler.cmd = net_slirp_hostfwd_remove,
1119 d7f9b689 Luiz Capitulino
    },
1120 d7f9b689 Luiz Capitulino
1121 2313086a Blue Swirl
#endif
1122 2313086a Blue Swirl
STEXI
1123 21413d68 Markus Armbruster
@item hostfwd_remove
1124 21413d68 Markus Armbruster
@findex hostfwd_remove
1125 21413d68 Markus Armbruster
Remove host-to-guest TCP or UDP redirection.
1126 2313086a Blue Swirl
ETEXI
1127 2313086a Blue Swirl
1128 d7f9b689 Luiz Capitulino
    {
1129 d7f9b689 Luiz Capitulino
        .name       = "balloon",
1130 3b0bd6ec Luiz Capitulino
        .args_type  = "value:M",
1131 d7f9b689 Luiz Capitulino
        .params     = "target",
1132 3c05613a Riccardo Magliocchetti
        .help       = "request VM to change its memory allocation (in MB)",
1133 d72f3264 Luiz Capitulino
        .mhandler.cmd = hmp_balloon,
1134 d7f9b689 Luiz Capitulino
    },
1135 d7f9b689 Luiz Capitulino
1136 2313086a Blue Swirl
STEXI
1137 2313086a Blue Swirl
@item balloon @var{value}
1138 70fcbbe7 Stefan Weil
@findex balloon
1139 2313086a Blue Swirl
Request VM to change its memory allocation to @var{value} (in MB).
1140 2313086a Blue Swirl
ETEXI
1141 2313086a Blue Swirl
1142 d7f9b689 Luiz Capitulino
    {
1143 d7f9b689 Luiz Capitulino
        .name       = "set_link",
1144 c9b26a4c Markus Armbruster
        .args_type  = "name:s,up:b",
1145 c9b26a4c Markus Armbruster
        .params     = "name on|off",
1146 d7f9b689 Luiz Capitulino
        .help       = "change the link status of a network adapter",
1147 4b37156c Luiz Capitulino
        .mhandler.cmd = hmp_set_link,
1148 d7f9b689 Luiz Capitulino
    },
1149 d7f9b689 Luiz Capitulino
1150 2313086a Blue Swirl
STEXI
1151 c9b26a4c Markus Armbruster
@item set_link @var{name} [on|off]
1152 70fcbbe7 Stefan Weil
@findex set_link
1153 c9b26a4c Markus Armbruster
Switch link @var{name} on (i.e. up) or off (i.e. down).
1154 2313086a Blue Swirl
ETEXI
1155 2313086a Blue Swirl
1156 d7f9b689 Luiz Capitulino
    {
1157 d7f9b689 Luiz Capitulino
        .name       = "watchdog_action",
1158 d7f9b689 Luiz Capitulino
        .args_type  = "action:s",
1159 d7f9b689 Luiz Capitulino
        .params     = "[reset|shutdown|poweroff|pause|debug|none]",
1160 d7f9b689 Luiz Capitulino
        .help       = "change watchdog action",
1161 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_watchdog_action,
1162 d7f9b689 Luiz Capitulino
    },
1163 d7f9b689 Luiz Capitulino
1164 2313086a Blue Swirl
STEXI
1165 2313086a Blue Swirl
@item watchdog_action
1166 70fcbbe7 Stefan Weil
@findex watchdog_action
1167 2313086a Blue Swirl
Change watchdog action.
1168 2313086a Blue Swirl
ETEXI
1169 2313086a Blue Swirl
1170 d7f9b689 Luiz Capitulino
    {
1171 d7f9b689 Luiz Capitulino
        .name       = "acl_show",
1172 d7f9b689 Luiz Capitulino
        .args_type  = "aclname:s",
1173 d7f9b689 Luiz Capitulino
        .params     = "aclname",
1174 d7f9b689 Luiz Capitulino
        .help       = "list rules in the access control list",
1175 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_acl_show,
1176 d7f9b689 Luiz Capitulino
    },
1177 d7f9b689 Luiz Capitulino
1178 2313086a Blue Swirl
STEXI
1179 15dfcd45 Jan Kiszka
@item acl_show @var{aclname}
1180 70fcbbe7 Stefan Weil
@findex acl_show
1181 15dfcd45 Jan Kiszka
List all the matching rules in the access control list, and the default
1182 15dfcd45 Jan Kiszka
policy. There are currently two named access control lists,
1183 15dfcd45 Jan Kiszka
@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
1184 15dfcd45 Jan Kiszka
certificate distinguished name, and SASL username respectively.
1185 15dfcd45 Jan Kiszka
ETEXI
1186 2313086a Blue Swirl
1187 d7f9b689 Luiz Capitulino
    {
1188 d7f9b689 Luiz Capitulino
        .name       = "acl_policy",
1189 d7f9b689 Luiz Capitulino
        .args_type  = "aclname:s,policy:s",
1190 d7f9b689 Luiz Capitulino
        .params     = "aclname allow|deny",
1191 d7f9b689 Luiz Capitulino
        .help       = "set default access control list policy",
1192 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_acl_policy,
1193 d7f9b689 Luiz Capitulino
    },
1194 d7f9b689 Luiz Capitulino
1195 15dfcd45 Jan Kiszka
STEXI
1196 cbbfacc6 Jan Kiszka
@item acl_policy @var{aclname} @code{allow|deny}
1197 70fcbbe7 Stefan Weil
@findex acl_policy
1198 15dfcd45 Jan Kiszka
Set the default access control list policy, used in the event that
1199 2313086a Blue Swirl
none of the explicit rules match. The default policy at startup is
1200 15dfcd45 Jan Kiszka
always @code{deny}.
1201 15dfcd45 Jan Kiszka
ETEXI
1202 15dfcd45 Jan Kiszka
1203 d7f9b689 Luiz Capitulino
    {
1204 d7f9b689 Luiz Capitulino
        .name       = "acl_add",
1205 d7f9b689 Luiz Capitulino
        .args_type  = "aclname:s,match:s,policy:s,index:i?",
1206 d7f9b689 Luiz Capitulino
        .params     = "aclname match allow|deny [index]",
1207 d7f9b689 Luiz Capitulino
        .help       = "add a match rule to the access control list",
1208 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_acl_add,
1209 d7f9b689 Luiz Capitulino
    },
1210 d7f9b689 Luiz Capitulino
1211 15dfcd45 Jan Kiszka
STEXI
1212 0e4aec98 Markus Armbruster
@item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}]
1213 0e4aec98 Markus Armbruster
@findex acl_add
1214 15dfcd45 Jan Kiszka
Add a match rule to the access control list, allowing or denying access.
1215 15dfcd45 Jan Kiszka
The match will normally be an exact username or x509 distinguished name,
1216 15dfcd45 Jan Kiszka
but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
1217 15dfcd45 Jan Kiszka
allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
1218 2313086a Blue Swirl
normally be appended to the end of the ACL, but can be inserted
1219 15dfcd45 Jan Kiszka
earlier in the list if the optional @var{index} parameter is supplied.
1220 15dfcd45 Jan Kiszka
ETEXI
1221 15dfcd45 Jan Kiszka
1222 d7f9b689 Luiz Capitulino
    {
1223 d7f9b689 Luiz Capitulino
        .name       = "acl_remove",
1224 d7f9b689 Luiz Capitulino
        .args_type  = "aclname:s,match:s",
1225 d7f9b689 Luiz Capitulino
        .params     = "aclname match",
1226 d7f9b689 Luiz Capitulino
        .help       = "remove a match rule from the access control list",
1227 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_acl_remove,
1228 d7f9b689 Luiz Capitulino
    },
1229 d7f9b689 Luiz Capitulino
1230 15dfcd45 Jan Kiszka
STEXI
1231 15dfcd45 Jan Kiszka
@item acl_remove @var{aclname} @var{match}
1232 70fcbbe7 Stefan Weil
@findex acl_remove
1233 15dfcd45 Jan Kiszka
Remove the specified match rule from the access control list.
1234 15dfcd45 Jan Kiszka
ETEXI
1235 15dfcd45 Jan Kiszka
1236 d7f9b689 Luiz Capitulino
    {
1237 d7f9b689 Luiz Capitulino
        .name       = "acl_reset",
1238 d7f9b689 Luiz Capitulino
        .args_type  = "aclname:s",
1239 d7f9b689 Luiz Capitulino
        .params     = "aclname",
1240 d7f9b689 Luiz Capitulino
        .help       = "reset the access control list",
1241 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_acl_reset,
1242 d7f9b689 Luiz Capitulino
    },
1243 d7f9b689 Luiz Capitulino
1244 15dfcd45 Jan Kiszka
STEXI
1245 0e4aec98 Markus Armbruster
@item acl_reset @var{aclname}
1246 0e4aec98 Markus Armbruster
@findex acl_reset
1247 15dfcd45 Jan Kiszka
Remove all matches from the access control list, and set the default
1248 2313086a Blue Swirl
policy back to @code{deny}.
1249 2313086a Blue Swirl
ETEXI
1250 2313086a Blue Swirl
1251 79c4f6b0 Huang Ying
#if defined(TARGET_I386)
1252 d7f9b689 Luiz Capitulino
1253 d7f9b689 Luiz Capitulino
    {
1254 d7f9b689 Luiz Capitulino
        .name       = "mce",
1255 31ce5e0c Jin Dongming
        .args_type  = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1256 31ce5e0c Jin Dongming
        .params     = "[-b] cpu bank status mcgstatus addr misc",
1257 31ce5e0c Jin Dongming
        .help       = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
1258 af4ce882 Luiz Capitulino
        .mhandler.cmd = do_inject_mce,
1259 d7f9b689 Luiz Capitulino
    },
1260 d7f9b689 Luiz Capitulino
1261 79c4f6b0 Huang Ying
#endif
1262 79c4f6b0 Huang Ying
STEXI
1263 79c4f6b0 Huang Ying
@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
1264 70fcbbe7 Stefan Weil
@findex mce (x86)
1265 79c4f6b0 Huang Ying
Inject an MCE on the given CPU (x86 only).
1266 79c4f6b0 Huang Ying
ETEXI
1267 79c4f6b0 Huang Ying
1268 d7f9b689 Luiz Capitulino
    {
1269 d7f9b689 Luiz Capitulino
        .name       = "getfd",
1270 d7f9b689 Luiz Capitulino
        .args_type  = "fdname:s",
1271 d7f9b689 Luiz Capitulino
        .params     = "getfd name",
1272 d7f9b689 Luiz Capitulino
        .help       = "receive a file descriptor via SCM rights and assign it a name",
1273 208c9d1b Corey Bryant
        .mhandler.cmd = hmp_getfd,
1274 d7f9b689 Luiz Capitulino
    },
1275 d7f9b689 Luiz Capitulino
1276 f07918fd Mark McLoughlin
STEXI
1277 f07918fd Mark McLoughlin
@item getfd @var{fdname}
1278 70fcbbe7 Stefan Weil
@findex getfd
1279 f07918fd Mark McLoughlin
If a file descriptor is passed alongside this command using the SCM_RIGHTS
1280 f07918fd Mark McLoughlin
mechanism on unix sockets, it is stored using the name @var{fdname} for
1281 f07918fd Mark McLoughlin
later use by other monitor commands.
1282 f07918fd Mark McLoughlin
ETEXI
1283 f07918fd Mark McLoughlin
1284 d7f9b689 Luiz Capitulino
    {
1285 d7f9b689 Luiz Capitulino
        .name       = "closefd",
1286 d7f9b689 Luiz Capitulino
        .args_type  = "fdname:s",
1287 d7f9b689 Luiz Capitulino
        .params     = "closefd name",
1288 d7f9b689 Luiz Capitulino
        .help       = "close a file descriptor previously passed via SCM rights",
1289 208c9d1b Corey Bryant
        .mhandler.cmd = hmp_closefd,
1290 d7f9b689 Luiz Capitulino
    },
1291 d7f9b689 Luiz Capitulino
1292 f07918fd Mark McLoughlin
STEXI
1293 f07918fd Mark McLoughlin
@item closefd @var{fdname}
1294 70fcbbe7 Stefan Weil
@findex closefd
1295 f07918fd Mark McLoughlin
Close the file descriptor previously assigned to @var{fdname} using the
1296 f07918fd Mark McLoughlin
@code{getfd} command. This is only needed if the file descriptor was never
1297 f07918fd Mark McLoughlin
used by another monitor command.
1298 f07918fd Mark McLoughlin
ETEXI
1299 f07918fd Mark McLoughlin
1300 a3a55a2e Luiz Capitulino
    {
1301 a3a55a2e Luiz Capitulino
        .name       = "block_passwd",
1302 a3a55a2e Luiz Capitulino
        .args_type  = "device:B,password:s",
1303 a3a55a2e Luiz Capitulino
        .params     = "block_passwd device password",
1304 a3a55a2e Luiz Capitulino
        .help       = "set the password of encrypted block devices",
1305 a4dea8a9 Luiz Capitulino
        .mhandler.cmd = hmp_block_passwd,
1306 a3a55a2e Luiz Capitulino
    },
1307 a3a55a2e Luiz Capitulino
1308 a3a55a2e Luiz Capitulino
STEXI
1309 727f005e Zhi Yong Wu
@item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1310 727f005e Zhi Yong Wu
@findex block_set_io_throttle
1311 727f005e Zhi Yong Wu
Change 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}
1312 727f005e Zhi Yong Wu
ETEXI
1313 727f005e Zhi Yong Wu
1314 727f005e Zhi Yong Wu
    {
1315 727f005e Zhi Yong Wu
        .name       = "block_set_io_throttle",
1316 727f005e Zhi Yong Wu
        .args_type  = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
1317 727f005e Zhi Yong Wu
        .params     = "device bps bps_rd bps_wr iops iops_rd iops_wr",
1318 727f005e Zhi Yong Wu
        .help       = "change I/O throttle limits for a block drive",
1319 80047da5 Luiz Capitulino
        .mhandler.cmd = hmp_block_set_io_throttle,
1320 727f005e Zhi Yong Wu
    },
1321 727f005e Zhi Yong Wu
1322 727f005e Zhi Yong Wu
STEXI
1323 a3a55a2e Luiz Capitulino
@item block_passwd @var{device} @var{password}
1324 70fcbbe7 Stefan Weil
@findex block_passwd
1325 a3a55a2e Luiz Capitulino
Set the encrypted device @var{device} password to @var{password}
1326 a3a55a2e Luiz Capitulino
ETEXI
1327 b40292e7 Jan Kiszka
1328 33572ece Jan Kiszka
    {
1329 7572150c Gerd Hoffmann
        .name       = "set_password",
1330 7572150c Gerd Hoffmann
        .args_type  = "protocol:s,password:s,connected:s?",
1331 7572150c Gerd Hoffmann
        .params     = "protocol password action-if-connected",
1332 7572150c Gerd Hoffmann
        .help       = "set spice/vnc password",
1333 fbf796fd Luiz Capitulino
        .mhandler.cmd = hmp_set_password,
1334 7572150c Gerd Hoffmann
    },
1335 7572150c Gerd Hoffmann
1336 7572150c Gerd Hoffmann
STEXI
1337 7572150c Gerd Hoffmann
@item set_password [ vnc | spice ] password [ action-if-connected ]
1338 7572150c Gerd Hoffmann
@findex set_password
1339 7572150c Gerd Hoffmann
1340 7572150c Gerd Hoffmann
Change spice/vnc password.  Use zero to make the password stay valid
1341 7572150c Gerd Hoffmann
forever.  @var{action-if-connected} specifies what should happen in
1342 7572150c Gerd Hoffmann
case a connection is established: @var{fail} makes the password change
1343 7572150c Gerd Hoffmann
fail.  @var{disconnect} changes the password and disconnects the
1344 7572150c Gerd Hoffmann
client.  @var{keep} changes the password and keeps the connection up.
1345 7572150c Gerd Hoffmann
@var{keep} is the default.
1346 7572150c Gerd Hoffmann
ETEXI
1347 7572150c Gerd Hoffmann
1348 7572150c Gerd Hoffmann
    {
1349 7572150c Gerd Hoffmann
        .name       = "expire_password",
1350 7572150c Gerd Hoffmann
        .args_type  = "protocol:s,time:s",
1351 7572150c Gerd Hoffmann
        .params     = "protocol time",
1352 7572150c Gerd Hoffmann
        .help       = "set spice/vnc password expire-time",
1353 9ad5372d Luiz Capitulino
        .mhandler.cmd = hmp_expire_password,
1354 7572150c Gerd Hoffmann
    },
1355 7572150c Gerd Hoffmann
1356 7572150c Gerd Hoffmann
STEXI
1357 7572150c Gerd Hoffmann
@item expire_password [ vnc | spice ] expire-time
1358 7572150c Gerd Hoffmann
@findex expire_password
1359 7572150c Gerd Hoffmann
1360 7572150c Gerd Hoffmann
Specify when a password for spice/vnc becomes
1361 7572150c Gerd Hoffmann
invalid. @var{expire-time} accepts:
1362 7572150c Gerd Hoffmann
1363 7572150c Gerd Hoffmann
@table @var
1364 7572150c Gerd Hoffmann
@item now
1365 7572150c Gerd Hoffmann
Invalidate password instantly.
1366 7572150c Gerd Hoffmann
1367 7572150c Gerd Hoffmann
@item never
1368 7572150c Gerd Hoffmann
Password stays valid forever.
1369 7572150c Gerd Hoffmann
1370 7572150c Gerd Hoffmann
@item +nsec
1371 7572150c Gerd Hoffmann
Password stays valid for @var{nsec} seconds starting now.
1372 7572150c Gerd Hoffmann
1373 7572150c Gerd Hoffmann
@item nsec
1374 7572150c Gerd Hoffmann
Password is invalidated at the given time.  @var{nsec} are the seconds
1375 7572150c Gerd Hoffmann
passed since 1970, i.e. unix epoch.
1376 7572150c Gerd Hoffmann
1377 7572150c Gerd Hoffmann
@end table
1378 7572150c Gerd Hoffmann
ETEXI
1379 7572150c Gerd Hoffmann
1380 7572150c Gerd Hoffmann
    {
1381 33572ece Jan Kiszka
        .name       = "info",
1382 33572ece Jan Kiszka
        .args_type  = "item:s?",
1383 33572ece Jan Kiszka
        .params     = "[subcommand]",
1384 33572ece Jan Kiszka
        .help       = "show various information about the system state",
1385 1162daa6 Luiz Capitulino
        .mhandler.cmd = do_info,
1386 33572ece Jan Kiszka
    },
1387 33572ece Jan Kiszka
1388 33572ece Jan Kiszka
STEXI
1389 33572ece Jan Kiszka
@item info @var{subcommand}
1390 33572ece Jan Kiszka
@findex info
1391 33572ece Jan Kiszka
Show various information about the system state.
1392 33572ece Jan Kiszka
1393 33572ece Jan Kiszka
@table @option
1394 33572ece Jan Kiszka
@item info version
1395 33572ece Jan Kiszka
show the version of QEMU
1396 33572ece Jan Kiszka
@item info network
1397 33572ece Jan Kiszka
show the various VLANs and the associated devices
1398 33572ece Jan Kiszka
@item info chardev
1399 33572ece Jan Kiszka
show the character devices
1400 33572ece Jan Kiszka
@item info block
1401 33572ece Jan Kiszka
show the block devices
1402 33572ece Jan Kiszka
@item info blockstats
1403 33572ece Jan Kiszka
show block device statistics
1404 33572ece Jan Kiszka
@item info registers
1405 33572ece Jan Kiszka
show the cpu registers
1406 33572ece Jan Kiszka
@item info cpus
1407 33572ece Jan Kiszka
show infos for each CPU
1408 33572ece Jan Kiszka
@item info history
1409 33572ece Jan Kiszka
show the command line history
1410 33572ece Jan Kiszka
@item info irq
1411 33572ece Jan Kiszka
show the interrupts statistics (if available)
1412 33572ece Jan Kiszka
@item info pic
1413 33572ece Jan Kiszka
show i8259 (PIC) state
1414 33572ece Jan Kiszka
@item info pci
1415 33572ece Jan Kiszka
show emulated PCI device info
1416 33572ece Jan Kiszka
@item info tlb
1417 692f737c Max Filippov
show virtual to physical memory mappings (i386, SH4, SPARC, PPC, and Xtensa only)
1418 33572ece Jan Kiszka
@item info mem
1419 33572ece Jan Kiszka
show the active virtual memory mappings (i386 only)
1420 33572ece Jan Kiszka
@item info jit
1421 33572ece Jan Kiszka
show dynamic compiler info
1422 33572ece Jan Kiszka
@item info numa
1423 33572ece Jan Kiszka
show NUMA information
1424 b40292e7 Jan Kiszka
@item info kvm
1425 b40292e7 Jan Kiszka
show KVM information
1426 33572ece Jan Kiszka
@item info usb
1427 33572ece Jan Kiszka
show USB devices plugged on the virtual USB hub
1428 33572ece Jan Kiszka
@item info usbhost
1429 33572ece Jan Kiszka
show all USB host devices
1430 33572ece Jan Kiszka
@item info profile
1431 33572ece Jan Kiszka
show profiling information
1432 33572ece Jan Kiszka
@item info capture
1433 33572ece Jan Kiszka
show information about active capturing
1434 33572ece Jan Kiszka
@item info snapshots
1435 33572ece Jan Kiszka
show list of VM snapshots
1436 33572ece Jan Kiszka
@item info status
1437 33572ece Jan Kiszka
show the current VM status (running|paused)
1438 33572ece Jan Kiszka
@item info pcmcia
1439 33572ece Jan Kiszka
show guest PCMCIA status
1440 33572ece Jan Kiszka
@item info mice
1441 33572ece Jan Kiszka
show which guest mouse is receiving events
1442 33572ece Jan Kiszka
@item info vnc
1443 33572ece Jan Kiszka
show the vnc server status
1444 33572ece Jan Kiszka
@item info name
1445 33572ece Jan Kiszka
show the current VM name
1446 33572ece Jan Kiszka
@item info uuid
1447 33572ece Jan Kiszka
show the current VM UUID
1448 33572ece Jan Kiszka
@item info cpustats
1449 33572ece Jan Kiszka
show CPU statistics
1450 33572ece Jan Kiszka
@item info usernet
1451 33572ece Jan Kiszka
show user network stack connection states
1452 33572ece Jan Kiszka
@item info migrate
1453 33572ece Jan Kiszka
show migration status
1454 bbf6da32 Orit Wasserman
@item info migrate_capabilities
1455 bbf6da32 Orit Wasserman
show current migration capabilities
1456 9e1ba4cc Orit Wasserman
@item info migrate_cache_size
1457 9e1ba4cc Orit Wasserman
show current migration XBZRLE cache size
1458 33572ece Jan Kiszka
@item info balloon
1459 33572ece Jan Kiszka
show balloon information
1460 33572ece Jan Kiszka
@item info qtree
1461 33572ece Jan Kiszka
show device tree
1462 33572ece Jan Kiszka
@item info qdm
1463 33572ece Jan Kiszka
show qdev device model list
1464 33572ece Jan Kiszka
@item info roms
1465 33572ece Jan Kiszka
show roms
1466 33572ece Jan Kiszka
@end table
1467 33572ece Jan Kiszka
ETEXI
1468 33572ece Jan Kiszka
1469 6d8a764e Lluís
#ifdef CONFIG_TRACE_SIMPLE
1470 22890ab5 Prerna Saxena
STEXI
1471 22890ab5 Prerna Saxena
@item info trace
1472 22890ab5 Prerna Saxena
show contents of trace buffer
1473 31965ae2 Lluís
ETEXI
1474 31965ae2 Lluís
#endif
1475 31965ae2 Lluís
1476 31965ae2 Lluís
STEXI
1477 22890ab5 Prerna Saxena
@item info trace-events
1478 22890ab5 Prerna Saxena
show available trace events and their state
1479 22890ab5 Prerna Saxena
ETEXI
1480 22890ab5 Prerna Saxena
1481 2313086a Blue Swirl
STEXI
1482 2313086a Blue Swirl
@end table
1483 2313086a Blue Swirl
ETEXI