root / qemu-monitor.hx @ 12381085
History | View | Annotate | Download (27.6 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 | 2313086a | Blue Swirl | Show the help for all commands or just for command @var{cmd}. |
23 | 2313086a | Blue Swirl | ETEXI |
24 | 2313086a | Blue Swirl | |
25 | d7f9b689 | Luiz Capitulino | { |
26 | d7f9b689 | Luiz Capitulino | .name = "commit", |
27 | d7f9b689 | Luiz Capitulino | .args_type = "device:B", |
28 | d7f9b689 | Luiz Capitulino | .params = "device|all", |
29 | d7f9b689 | Luiz Capitulino | .help = "commit changes to the disk images (if -snapshot is used) or backing files", |
30 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_commit, |
31 | d7f9b689 | Luiz Capitulino | }, |
32 | d7f9b689 | Luiz Capitulino | |
33 | 2313086a | Blue Swirl | STEXI |
34 | 2313086a | Blue Swirl | @item commit |
35 | 2313086a | Blue Swirl | Commit changes to the disk images (if -snapshot is used) or backing files. |
36 | 2313086a | Blue Swirl | ETEXI |
37 | 2313086a | Blue Swirl | |
38 | d7f9b689 | Luiz Capitulino | { |
39 | d7f9b689 | Luiz Capitulino | .name = "info", |
40 | d7f9b689 | Luiz Capitulino | .args_type = "item:s?", |
41 | d7f9b689 | Luiz Capitulino | .params = "[subcommand]", |
42 | d7f9b689 | Luiz Capitulino | .help = "show various information about the system state", |
43 | 13c7425e | Luiz Capitulino | .user_print = monitor_user_noop, |
44 | 13c7425e | Luiz Capitulino | .mhandler.cmd_new = do_info, |
45 | d7f9b689 | Luiz Capitulino | }, |
46 | d7f9b689 | Luiz Capitulino | |
47 | 2313086a | Blue Swirl | STEXI |
48 | 2313086a | Blue Swirl | @item info @var{subcommand} |
49 | 2313086a | Blue Swirl | Show various information about the system state. |
50 | 2313086a | Blue Swirl | |
51 | 2313086a | Blue Swirl | @table @option |
52 | 2313086a | Blue Swirl | @item info version |
53 | 2313086a | Blue Swirl | show the version of QEMU |
54 | 2313086a | Blue Swirl | @item info network |
55 | 2313086a | Blue Swirl | show the various VLANs and the associated devices |
56 | 2313086a | Blue Swirl | @item info chardev |
57 | 2313086a | Blue Swirl | show the character devices |
58 | 2313086a | Blue Swirl | @item info block |
59 | 2313086a | Blue Swirl | show the block devices |
60 | 2313086a | Blue Swirl | @item info block |
61 | 2313086a | Blue Swirl | show block device statistics |
62 | 2313086a | Blue Swirl | @item info registers |
63 | 2313086a | Blue Swirl | show the cpu registers |
64 | 2313086a | Blue Swirl | @item info cpus |
65 | 2313086a | Blue Swirl | show infos for each CPU |
66 | 2313086a | Blue Swirl | @item info history |
67 | 2313086a | Blue Swirl | show the command line history |
68 | 2313086a | Blue Swirl | @item info irq |
69 | 2313086a | Blue Swirl | show the interrupts statistics (if available) |
70 | 2313086a | Blue Swirl | @item info pic |
71 | 2313086a | Blue Swirl | show i8259 (PIC) state |
72 | 2313086a | Blue Swirl | @item info pci |
73 | 2313086a | Blue Swirl | show emulated PCI device info |
74 | 2313086a | Blue Swirl | @item info tlb |
75 | 2313086a | Blue Swirl | show virtual to physical memory mappings (i386 only) |
76 | 2313086a | Blue Swirl | @item info mem |
77 | 2313086a | Blue Swirl | show the active virtual memory mappings (i386 only) |
78 | 2313086a | Blue Swirl | @item info hpet |
79 | 2313086a | Blue Swirl | show state of HPET (i386 only) |
80 | 2313086a | Blue Swirl | @item info kvm |
81 | 2313086a | Blue Swirl | show KVM information |
82 | 2313086a | Blue Swirl | @item info usb |
83 | 2313086a | Blue Swirl | show USB devices plugged on the virtual USB hub |
84 | 2313086a | Blue Swirl | @item info usbhost |
85 | 2313086a | Blue Swirl | show all USB host devices |
86 | 2313086a | Blue Swirl | @item info profile |
87 | 2313086a | Blue Swirl | show profiling information |
88 | 2313086a | Blue Swirl | @item info capture |
89 | 2313086a | Blue Swirl | show information about active capturing |
90 | 2313086a | Blue Swirl | @item info snapshots |
91 | 2313086a | Blue Swirl | show list of VM snapshots |
92 | 2313086a | Blue Swirl | @item info status |
93 | 2313086a | Blue Swirl | show the current VM status (running|paused) |
94 | 2313086a | Blue Swirl | @item info pcmcia |
95 | 2313086a | Blue Swirl | show guest PCMCIA status |
96 | 2313086a | Blue Swirl | @item info mice |
97 | 2313086a | Blue Swirl | show which guest mouse is receiving events |
98 | 2313086a | Blue Swirl | @item info vnc |
99 | 2313086a | Blue Swirl | show the vnc server status |
100 | 2313086a | Blue Swirl | @item info name |
101 | 2313086a | Blue Swirl | show the current VM name |
102 | 2313086a | Blue Swirl | @item info uuid |
103 | 2313086a | Blue Swirl | show the current VM UUID |
104 | 2313086a | Blue Swirl | @item info cpustats |
105 | 2313086a | Blue Swirl | show CPU statistics |
106 | 6dbe553f | Jan Kiszka | @item info usernet |
107 | 6dbe553f | Jan Kiszka | show user network stack connection states |
108 | 2313086a | Blue Swirl | @item info migrate |
109 | 2313086a | Blue Swirl | show migration status |
110 | 2313086a | Blue Swirl | @item info balloon |
111 | 2313086a | Blue Swirl | show balloon information |
112 | 2313086a | Blue Swirl | @item info qtree |
113 | 2313086a | Blue Swirl | show device tree |
114 | 2313086a | Blue Swirl | @end table |
115 | 2313086a | Blue Swirl | ETEXI |
116 | 2313086a | Blue Swirl | |
117 | d7f9b689 | Luiz Capitulino | { |
118 | d7f9b689 | Luiz Capitulino | .name = "q|quit", |
119 | d7f9b689 | Luiz Capitulino | .args_type = "", |
120 | d7f9b689 | Luiz Capitulino | .params = "", |
121 | d7f9b689 | Luiz Capitulino | .help = "quit the emulator", |
122 | b223f35f | Luiz Capitulino | .user_print = monitor_user_noop, |
123 | b223f35f | Luiz Capitulino | .mhandler.cmd_new = do_quit, |
124 | d7f9b689 | Luiz Capitulino | }, |
125 | d7f9b689 | Luiz Capitulino | |
126 | 2313086a | Blue Swirl | STEXI |
127 | 2313086a | Blue Swirl | @item q or quit |
128 | 2313086a | Blue Swirl | Quit the emulator. |
129 | 2313086a | Blue Swirl | ETEXI |
130 | 2313086a | Blue Swirl | |
131 | d7f9b689 | Luiz Capitulino | { |
132 | d7f9b689 | Luiz Capitulino | .name = "eject", |
133 | 78d714e0 | Luiz Capitulino | .args_type = "force:-f,device:B", |
134 | d7f9b689 | Luiz Capitulino | .params = "[-f] device", |
135 | d7f9b689 | Luiz Capitulino | .help = "eject a removable medium (use -f to force it)", |
136 | e1c923a6 | Luiz Capitulino | .user_print = monitor_user_noop, |
137 | e1c923a6 | Luiz Capitulino | .mhandler.cmd_new = do_eject, |
138 | d7f9b689 | Luiz Capitulino | }, |
139 | d7f9b689 | Luiz Capitulino | |
140 | 2313086a | Blue Swirl | STEXI |
141 | 2313086a | Blue Swirl | @item eject [-f] @var{device} |
142 | 2313086a | Blue Swirl | Eject a removable medium (use -f to force it). |
143 | 2313086a | Blue Swirl | ETEXI |
144 | 2313086a | Blue Swirl | |
145 | d7f9b689 | Luiz Capitulino | { |
146 | d7f9b689 | Luiz Capitulino | .name = "change", |
147 | d7f9b689 | Luiz Capitulino | .args_type = "device:B,target:F,arg:s?", |
148 | d7f9b689 | Luiz Capitulino | .params = "device filename [format]", |
149 | d7f9b689 | Luiz Capitulino | .help = "change a removable medium, optional format", |
150 | ec3b82af | Markus Armbruster | .user_print = monitor_user_noop, |
151 | ec3b82af | Markus Armbruster | .mhandler.cmd_new = do_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 | 2313086a | Blue Swirl | |
157 | 2313086a | Blue Swirl | Change the configuration of a device. |
158 | 2313086a | Blue Swirl | |
159 | 2313086a | Blue Swirl | @table @option |
160 | 2313086a | Blue Swirl | @item change @var{diskdevice} @var{filename} [@var{format}] |
161 | 2313086a | Blue Swirl | Change the medium for a removable disk device to point to @var{filename}. eg |
162 | 2313086a | Blue Swirl | |
163 | 2313086a | Blue Swirl | @example |
164 | 2313086a | Blue Swirl | (qemu) change ide1-cd0 /path/to/some.iso |
165 | 2313086a | Blue Swirl | @end example |
166 | 2313086a | Blue Swirl | |
167 | 2313086a | Blue Swirl | @var{format} is optional. |
168 | 2313086a | Blue Swirl | |
169 | 2313086a | Blue Swirl | @item change vnc @var{display},@var{options} |
170 | 2313086a | Blue Swirl | Change the configuration of the VNC server. The valid syntax for @var{display} |
171 | 2313086a | Blue Swirl | and @var{options} are described at @ref{sec_invocation}. eg |
172 | 2313086a | Blue Swirl | |
173 | 2313086a | Blue Swirl | @example |
174 | 2313086a | Blue Swirl | (qemu) change vnc localhost:1 |
175 | 2313086a | Blue Swirl | @end example |
176 | 2313086a | Blue Swirl | |
177 | 2313086a | Blue Swirl | @item change vnc password [@var{password}] |
178 | 2313086a | Blue Swirl | |
179 | 2313086a | Blue Swirl | Change the password associated with the VNC server. If the new password is not |
180 | 2313086a | Blue Swirl | supplied, the monitor will prompt for it to be entered. VNC passwords are only |
181 | 2313086a | Blue Swirl | significant up to 8 letters. eg |
182 | 2313086a | Blue Swirl | |
183 | 2313086a | Blue Swirl | @example |
184 | 2313086a | Blue Swirl | (qemu) change vnc password |
185 | 2313086a | Blue Swirl | Password: ******** |
186 | 2313086a | Blue Swirl | @end example |
187 | 2313086a | Blue Swirl | |
188 | 2313086a | Blue Swirl | @end table |
189 | 2313086a | Blue Swirl | ETEXI |
190 | 2313086a | Blue Swirl | |
191 | d7f9b689 | Luiz Capitulino | { |
192 | d7f9b689 | Luiz Capitulino | .name = "screendump", |
193 | d7f9b689 | Luiz Capitulino | .args_type = "filename:F", |
194 | d7f9b689 | Luiz Capitulino | .params = "filename", |
195 | d7f9b689 | Luiz Capitulino | .help = "save screen into PPM image 'filename'", |
196 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_screen_dump, |
197 | d7f9b689 | Luiz Capitulino | }, |
198 | d7f9b689 | Luiz Capitulino | |
199 | 2313086a | Blue Swirl | STEXI |
200 | 2313086a | Blue Swirl | @item screendump @var{filename} |
201 | 2313086a | Blue Swirl | Save screen into PPM image @var{filename}. |
202 | 2313086a | Blue Swirl | ETEXI |
203 | 2313086a | Blue Swirl | |
204 | d7f9b689 | Luiz Capitulino | { |
205 | d7f9b689 | Luiz Capitulino | .name = "logfile", |
206 | d7f9b689 | Luiz Capitulino | .args_type = "filename:F", |
207 | d7f9b689 | Luiz Capitulino | .params = "filename", |
208 | d7f9b689 | Luiz Capitulino | .help = "output logs to 'filename'", |
209 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_logfile, |
210 | d7f9b689 | Luiz Capitulino | }, |
211 | d7f9b689 | Luiz Capitulino | |
212 | 2313086a | Blue Swirl | STEXI |
213 | 2313086a | Blue Swirl | @item logfile @var{filename} |
214 | 2313086a | Blue Swirl | Output logs to @var{filename}. |
215 | 2313086a | Blue Swirl | ETEXI |
216 | 2313086a | Blue Swirl | |
217 | d7f9b689 | Luiz Capitulino | { |
218 | d7f9b689 | Luiz Capitulino | .name = "log", |
219 | d7f9b689 | Luiz Capitulino | .args_type = "items:s", |
220 | d7f9b689 | Luiz Capitulino | .params = "item1[,...]", |
221 | d7f9b689 | Luiz Capitulino | .help = "activate logging of the specified items to '/tmp/qemu.log'", |
222 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_log, |
223 | d7f9b689 | Luiz Capitulino | }, |
224 | d7f9b689 | Luiz Capitulino | |
225 | 2313086a | Blue Swirl | STEXI |
226 | 2313086a | Blue Swirl | @item log @var{item1}[,...] |
227 | 2313086a | Blue Swirl | Activate logging of the specified items to @file{/tmp/qemu.log}. |
228 | 2313086a | Blue Swirl | ETEXI |
229 | 2313086a | Blue Swirl | |
230 | d7f9b689 | Luiz Capitulino | { |
231 | d7f9b689 | Luiz Capitulino | .name = "savevm", |
232 | d7f9b689 | Luiz Capitulino | .args_type = "name:s?", |
233 | d7f9b689 | Luiz Capitulino | .params = "[tag|id]", |
234 | d7f9b689 | Luiz Capitulino | .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created", |
235 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_savevm, |
236 | d7f9b689 | Luiz Capitulino | }, |
237 | d7f9b689 | Luiz Capitulino | |
238 | 2313086a | Blue Swirl | STEXI |
239 | 2313086a | Blue Swirl | @item savevm [@var{tag}|@var{id}] |
240 | 2313086a | Blue Swirl | Create a snapshot of the whole virtual machine. If @var{tag} is |
241 | 2313086a | Blue Swirl | provided, it is used as human readable identifier. If there is already |
242 | 2313086a | Blue Swirl | a snapshot with the same tag or ID, it is replaced. More info at |
243 | 2313086a | Blue Swirl | @ref{vm_snapshots}. |
244 | 2313086a | Blue Swirl | ETEXI |
245 | 2313086a | Blue Swirl | |
246 | d7f9b689 | Luiz Capitulino | { |
247 | d7f9b689 | Luiz Capitulino | .name = "loadvm", |
248 | d7f9b689 | Luiz Capitulino | .args_type = "name:s", |
249 | d7f9b689 | Luiz Capitulino | .params = "tag|id", |
250 | d7f9b689 | Luiz Capitulino | .help = "restore a VM snapshot from its tag or id", |
251 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_loadvm, |
252 | d7f9b689 | Luiz Capitulino | }, |
253 | d7f9b689 | Luiz Capitulino | |
254 | 2313086a | Blue Swirl | STEXI |
255 | 2313086a | Blue Swirl | @item loadvm @var{tag}|@var{id} |
256 | 2313086a | Blue Swirl | Set the whole virtual machine to the snapshot identified by the tag |
257 | 2313086a | Blue Swirl | @var{tag} or the unique snapshot ID @var{id}. |
258 | 2313086a | Blue Swirl | ETEXI |
259 | 2313086a | Blue Swirl | |
260 | d7f9b689 | Luiz Capitulino | { |
261 | d7f9b689 | Luiz Capitulino | .name = "delvm", |
262 | d7f9b689 | Luiz Capitulino | .args_type = "name:s", |
263 | d7f9b689 | Luiz Capitulino | .params = "tag|id", |
264 | d7f9b689 | Luiz Capitulino | .help = "delete a VM snapshot from its tag or id", |
265 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_delvm, |
266 | d7f9b689 | Luiz Capitulino | }, |
267 | d7f9b689 | Luiz Capitulino | |
268 | 2313086a | Blue Swirl | STEXI |
269 | 2313086a | Blue Swirl | @item delvm @var{tag}|@var{id} |
270 | 2313086a | Blue Swirl | Delete the snapshot identified by @var{tag} or @var{id}. |
271 | 2313086a | Blue Swirl | ETEXI |
272 | 2313086a | Blue Swirl | |
273 | d7f9b689 | Luiz Capitulino | { |
274 | d7f9b689 | Luiz Capitulino | .name = "singlestep", |
275 | d7f9b689 | Luiz Capitulino | .args_type = "option:s?", |
276 | d7f9b689 | Luiz Capitulino | .params = "[on|off]", |
277 | d7f9b689 | Luiz Capitulino | .help = "run emulation in singlestep mode or switch to normal mode", |
278 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_singlestep, |
279 | d7f9b689 | Luiz Capitulino | }, |
280 | d7f9b689 | Luiz Capitulino | |
281 | 2313086a | Blue Swirl | STEXI |
282 | 2313086a | Blue Swirl | @item singlestep [off] |
283 | 2313086a | Blue Swirl | Run the emulation in single step mode. |
284 | 2313086a | Blue Swirl | If called with option off, the emulation returns to normal mode. |
285 | 2313086a | Blue Swirl | ETEXI |
286 | 2313086a | Blue Swirl | |
287 | d7f9b689 | Luiz Capitulino | { |
288 | d7f9b689 | Luiz Capitulino | .name = "stop", |
289 | d7f9b689 | Luiz Capitulino | .args_type = "", |
290 | d7f9b689 | Luiz Capitulino | .params = "", |
291 | d7f9b689 | Luiz Capitulino | .help = "stop emulation", |
292 | e0c97bde | Luiz Capitulino | .user_print = monitor_user_noop, |
293 | e0c97bde | Luiz Capitulino | .mhandler.cmd_new = do_stop, |
294 | d7f9b689 | Luiz Capitulino | }, |
295 | d7f9b689 | Luiz Capitulino | |
296 | 2313086a | Blue Swirl | STEXI |
297 | 2313086a | Blue Swirl | @item stop |
298 | 2313086a | Blue Swirl | Stop emulation. |
299 | 2313086a | Blue Swirl | ETEXI |
300 | 2313086a | Blue Swirl | |
301 | d7f9b689 | Luiz Capitulino | { |
302 | d7f9b689 | Luiz Capitulino | .name = "c|cont", |
303 | d7f9b689 | Luiz Capitulino | .args_type = "", |
304 | d7f9b689 | Luiz Capitulino | .params = "", |
305 | d7f9b689 | Luiz Capitulino | .help = "resume emulation", |
306 | a1f896a0 | Luiz Capitulino | .user_print = monitor_user_noop, |
307 | a1f896a0 | Luiz Capitulino | .mhandler.cmd_new = do_cont, |
308 | d7f9b689 | Luiz Capitulino | }, |
309 | d7f9b689 | Luiz Capitulino | |
310 | 2313086a | Blue Swirl | STEXI |
311 | 2313086a | Blue Swirl | @item c or cont |
312 | 2313086a | Blue Swirl | Resume emulation. |
313 | 2313086a | Blue Swirl | ETEXI |
314 | 2313086a | Blue Swirl | |
315 | d7f9b689 | Luiz Capitulino | { |
316 | d7f9b689 | Luiz Capitulino | .name = "gdbserver", |
317 | d7f9b689 | Luiz Capitulino | .args_type = "device:s?", |
318 | d7f9b689 | Luiz Capitulino | .params = "[device]", |
319 | d7f9b689 | Luiz Capitulino | .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", |
320 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_gdbserver, |
321 | d7f9b689 | Luiz Capitulino | }, |
322 | d7f9b689 | Luiz Capitulino | |
323 | 2313086a | Blue Swirl | STEXI |
324 | 2313086a | Blue Swirl | @item gdbserver [@var{port}] |
325 | 2313086a | Blue Swirl | Start gdbserver session (default @var{port}=1234) |
326 | 2313086a | Blue Swirl | ETEXI |
327 | 2313086a | Blue Swirl | |
328 | d7f9b689 | Luiz Capitulino | { |
329 | d7f9b689 | Luiz Capitulino | .name = "x", |
330 | d7f9b689 | Luiz Capitulino | .args_type = "fmt:/,addr:l", |
331 | d7f9b689 | Luiz Capitulino | .params = "/fmt addr", |
332 | d7f9b689 | Luiz Capitulino | .help = "virtual memory dump starting at 'addr'", |
333 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_memory_dump, |
334 | d7f9b689 | Luiz Capitulino | }, |
335 | d7f9b689 | Luiz Capitulino | |
336 | 2313086a | Blue Swirl | STEXI |
337 | 2313086a | Blue Swirl | @item x/fmt @var{addr} |
338 | 2313086a | Blue Swirl | Virtual memory dump starting at @var{addr}. |
339 | 2313086a | Blue Swirl | ETEXI |
340 | 2313086a | Blue Swirl | |
341 | d7f9b689 | Luiz Capitulino | { |
342 | d7f9b689 | Luiz Capitulino | .name = "xp", |
343 | d7f9b689 | Luiz Capitulino | .args_type = "fmt:/,addr:l", |
344 | d7f9b689 | Luiz Capitulino | .params = "/fmt addr", |
345 | d7f9b689 | Luiz Capitulino | .help = "physical memory dump starting at 'addr'", |
346 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_physical_memory_dump, |
347 | d7f9b689 | Luiz Capitulino | }, |
348 | d7f9b689 | Luiz Capitulino | |
349 | 2313086a | Blue Swirl | STEXI |
350 | 2313086a | Blue Swirl | @item xp /@var{fmt} @var{addr} |
351 | 2313086a | Blue Swirl | Physical memory dump starting at @var{addr}. |
352 | 2313086a | Blue Swirl | |
353 | 2313086a | Blue Swirl | @var{fmt} is a format which tells the command how to format the |
354 | 2313086a | Blue Swirl | data. Its syntax is: @option{/@{count@}@{format@}@{size@}} |
355 | 2313086a | Blue Swirl | |
356 | 2313086a | Blue Swirl | @table @var |
357 | 2313086a | Blue Swirl | @item count |
358 | 2313086a | Blue Swirl | is the number of items to be dumped. |
359 | 2313086a | Blue Swirl | |
360 | 2313086a | Blue Swirl | @item format |
361 | 2313086a | Blue Swirl | can be x (hex), d (signed decimal), u (unsigned decimal), o (octal), |
362 | 2313086a | Blue Swirl | c (char) or i (asm instruction). |
363 | 2313086a | Blue Swirl | |
364 | 2313086a | Blue Swirl | @item size |
365 | 2313086a | Blue Swirl | can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86, |
366 | 2313086a | Blue Swirl | @code{h} or @code{w} can be specified with the @code{i} format to |
367 | 2313086a | Blue Swirl | respectively select 16 or 32 bit code instruction size. |
368 | 2313086a | Blue Swirl | |
369 | 2313086a | Blue Swirl | @end table |
370 | 2313086a | Blue Swirl | |
371 | 2313086a | Blue Swirl | Examples: |
372 | 2313086a | Blue Swirl | @itemize |
373 | 2313086a | Blue Swirl | @item |
374 | 2313086a | Blue Swirl | Dump 10 instructions at the current instruction pointer: |
375 | 2313086a | Blue Swirl | @example |
376 | 2313086a | Blue Swirl | (qemu) x/10i $eip |
377 | 2313086a | Blue Swirl | 0x90107063: ret |
378 | 2313086a | Blue Swirl | 0x90107064: sti |
379 | 2313086a | Blue Swirl | 0x90107065: lea 0x0(%esi,1),%esi |
380 | 2313086a | Blue Swirl | 0x90107069: lea 0x0(%edi,1),%edi |
381 | 2313086a | Blue Swirl | 0x90107070: ret |
382 | 2313086a | Blue Swirl | 0x90107071: jmp 0x90107080 |
383 | 2313086a | Blue Swirl | 0x90107073: nop |
384 | 2313086a | Blue Swirl | 0x90107074: nop |
385 | 2313086a | Blue Swirl | 0x90107075: nop |
386 | 2313086a | Blue Swirl | 0x90107076: nop |
387 | 2313086a | Blue Swirl | @end example |
388 | 2313086a | Blue Swirl | |
389 | 2313086a | Blue Swirl | @item |
390 | 2313086a | Blue Swirl | Dump 80 16 bit values at the start of the video memory. |
391 | 2313086a | Blue Swirl | @smallexample |
392 | 2313086a | Blue Swirl | (qemu) xp/80hx 0xb8000 |
393 | 2313086a | Blue Swirl | 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42 |
394 | 2313086a | Blue Swirl | 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41 |
395 | 2313086a | Blue Swirl | 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72 |
396 | 2313086a | Blue Swirl | 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73 |
397 | 2313086a | Blue Swirl | 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20 |
398 | 2313086a | Blue Swirl | 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720 |
399 | 2313086a | Blue Swirl | 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
400 | 2313086a | Blue Swirl | 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
401 | 2313086a | Blue Swirl | 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
402 | 2313086a | Blue Swirl | 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
403 | 2313086a | Blue Swirl | @end smallexample |
404 | 2313086a | Blue Swirl | @end itemize |
405 | 2313086a | Blue Swirl | ETEXI |
406 | 2313086a | Blue Swirl | |
407 | d7f9b689 | Luiz Capitulino | { |
408 | d7f9b689 | Luiz Capitulino | .name = "p|print", |
409 | d7f9b689 | Luiz Capitulino | .args_type = "fmt:/,val:l", |
410 | d7f9b689 | Luiz Capitulino | .params = "/fmt expr", |
411 | d7f9b689 | Luiz Capitulino | .help = "print expression value (use $reg for CPU register access)", |
412 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_print, |
413 | d7f9b689 | Luiz Capitulino | }, |
414 | d7f9b689 | Luiz Capitulino | |
415 | 2313086a | Blue Swirl | STEXI |
416 | 2313086a | Blue Swirl | @item p or print/@var{fmt} @var{expr} |
417 | 2313086a | Blue Swirl | |
418 | 2313086a | Blue Swirl | Print expression value. Only the @var{format} part of @var{fmt} is |
419 | 2313086a | Blue Swirl | used. |
420 | 2313086a | Blue Swirl | ETEXI |
421 | 2313086a | Blue Swirl | |
422 | d7f9b689 | Luiz Capitulino | { |
423 | d7f9b689 | Luiz Capitulino | .name = "i", |
424 | d7f9b689 | Luiz Capitulino | .args_type = "fmt:/,addr:i,index:i.", |
425 | d7f9b689 | Luiz Capitulino | .params = "/fmt addr", |
426 | d7f9b689 | Luiz Capitulino | .help = "I/O port read", |
427 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_ioport_read, |
428 | d7f9b689 | Luiz Capitulino | }, |
429 | d7f9b689 | Luiz Capitulino | |
430 | 2313086a | Blue Swirl | STEXI |
431 | 2313086a | Blue Swirl | Read I/O port. |
432 | 2313086a | Blue Swirl | ETEXI |
433 | 2313086a | Blue Swirl | |
434 | d7f9b689 | Luiz Capitulino | { |
435 | d7f9b689 | Luiz Capitulino | .name = "o", |
436 | d7f9b689 | Luiz Capitulino | .args_type = "fmt:/,addr:i,val:i", |
437 | d7f9b689 | Luiz Capitulino | .params = "/fmt addr value", |
438 | d7f9b689 | Luiz Capitulino | .help = "I/O port write", |
439 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_ioport_write, |
440 | d7f9b689 | Luiz Capitulino | }, |
441 | d7f9b689 | Luiz Capitulino | |
442 | f114784f | Jan Kiszka | STEXI |
443 | f114784f | Jan Kiszka | Write to I/O port. |
444 | f114784f | Jan Kiszka | ETEXI |
445 | 2313086a | Blue Swirl | |
446 | d7f9b689 | Luiz Capitulino | { |
447 | d7f9b689 | Luiz Capitulino | .name = "sendkey", |
448 | d7f9b689 | Luiz Capitulino | .args_type = "string:s,hold_time:i?", |
449 | d7f9b689 | Luiz Capitulino | .params = "keys [hold_ms]", |
450 | d7f9b689 | Luiz Capitulino | .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)", |
451 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_sendkey, |
452 | d7f9b689 | Luiz Capitulino | }, |
453 | d7f9b689 | Luiz Capitulino | |
454 | 2313086a | Blue Swirl | STEXI |
455 | 2313086a | Blue Swirl | @item sendkey @var{keys} |
456 | 2313086a | Blue Swirl | |
457 | 2313086a | Blue Swirl | Send @var{keys} to the emulator. @var{keys} could be the name of the |
458 | 2313086a | Blue Swirl | key or @code{#} followed by the raw value in either decimal or hexadecimal |
459 | 2313086a | Blue Swirl | format. Use @code{-} to press several keys simultaneously. Example: |
460 | 2313086a | Blue Swirl | @example |
461 | 2313086a | Blue Swirl | sendkey ctrl-alt-f1 |
462 | 2313086a | Blue Swirl | @end example |
463 | 2313086a | Blue Swirl | |
464 | 2313086a | Blue Swirl | This command is useful to send keys that your graphical user interface |
465 | 2313086a | Blue Swirl | intercepts at low level, such as @code{ctrl-alt-f1} in X Window. |
466 | 2313086a | Blue Swirl | ETEXI |
467 | 2313086a | Blue Swirl | |
468 | d7f9b689 | Luiz Capitulino | { |
469 | d7f9b689 | Luiz Capitulino | .name = "system_reset", |
470 | d7f9b689 | Luiz Capitulino | .args_type = "", |
471 | d7f9b689 | Luiz Capitulino | .params = "", |
472 | d7f9b689 | Luiz Capitulino | .help = "reset the system", |
473 | c80d259e | Luiz Capitulino | .user_print = monitor_user_noop, |
474 | c80d259e | Luiz Capitulino | .mhandler.cmd_new = do_system_reset, |
475 | d7f9b689 | Luiz Capitulino | }, |
476 | d7f9b689 | Luiz Capitulino | |
477 | 2313086a | Blue Swirl | STEXI |
478 | 2313086a | Blue Swirl | @item system_reset |
479 | 2313086a | Blue Swirl | |
480 | 2313086a | Blue Swirl | Reset the system. |
481 | 2313086a | Blue Swirl | ETEXI |
482 | 2313086a | Blue Swirl | |
483 | d7f9b689 | Luiz Capitulino | { |
484 | d7f9b689 | Luiz Capitulino | .name = "system_powerdown", |
485 | d7f9b689 | Luiz Capitulino | .args_type = "", |
486 | d7f9b689 | Luiz Capitulino | .params = "", |
487 | d7f9b689 | Luiz Capitulino | .help = "send system power down event", |
488 | 43076664 | Luiz Capitulino | .user_print = monitor_user_noop, |
489 | 43076664 | Luiz Capitulino | .mhandler.cmd_new = do_system_powerdown, |
490 | d7f9b689 | Luiz Capitulino | }, |
491 | d7f9b689 | Luiz Capitulino | |
492 | 2313086a | Blue Swirl | STEXI |
493 | 2313086a | Blue Swirl | @item system_powerdown |
494 | 2313086a | Blue Swirl | |
495 | 2313086a | Blue Swirl | Power down the system (if supported). |
496 | 2313086a | Blue Swirl | ETEXI |
497 | 2313086a | Blue Swirl | |
498 | d7f9b689 | Luiz Capitulino | { |
499 | d7f9b689 | Luiz Capitulino | .name = "sum", |
500 | d7f9b689 | Luiz Capitulino | .args_type = "start:i,size:i", |
501 | d7f9b689 | Luiz Capitulino | .params = "addr size", |
502 | d7f9b689 | Luiz Capitulino | .help = "compute the checksum of a memory region", |
503 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_sum, |
504 | d7f9b689 | Luiz Capitulino | }, |
505 | d7f9b689 | Luiz Capitulino | |
506 | 2313086a | Blue Swirl | STEXI |
507 | 2313086a | Blue Swirl | @item sum @var{addr} @var{size} |
508 | 2313086a | Blue Swirl | |
509 | 2313086a | Blue Swirl | Compute the checksum of a memory region. |
510 | 2313086a | Blue Swirl | ETEXI |
511 | 2313086a | Blue Swirl | |
512 | d7f9b689 | Luiz Capitulino | { |
513 | d7f9b689 | Luiz Capitulino | .name = "usb_add", |
514 | d7f9b689 | Luiz Capitulino | .args_type = "devname:s", |
515 | d7f9b689 | Luiz Capitulino | .params = "device", |
516 | d7f9b689 | Luiz Capitulino | .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')", |
517 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_usb_add, |
518 | d7f9b689 | Luiz Capitulino | }, |
519 | d7f9b689 | Luiz Capitulino | |
520 | 2313086a | Blue Swirl | STEXI |
521 | 2313086a | Blue Swirl | @item usb_add @var{devname} |
522 | 2313086a | Blue Swirl | |
523 | 2313086a | Blue Swirl | Add the USB device @var{devname}. For details of available devices see |
524 | 2313086a | Blue Swirl | @ref{usb_devices} |
525 | 2313086a | Blue Swirl | ETEXI |
526 | 2313086a | Blue Swirl | |
527 | d7f9b689 | Luiz Capitulino | { |
528 | d7f9b689 | Luiz Capitulino | .name = "usb_del", |
529 | d7f9b689 | Luiz Capitulino | .args_type = "devname:s", |
530 | d7f9b689 | Luiz Capitulino | .params = "device", |
531 | d7f9b689 | Luiz Capitulino | .help = "remove USB device 'bus.addr'", |
532 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_usb_del, |
533 | d7f9b689 | Luiz Capitulino | }, |
534 | d7f9b689 | Luiz Capitulino | |
535 | 2313086a | Blue Swirl | STEXI |
536 | 2313086a | Blue Swirl | @item usb_del @var{devname} |
537 | 2313086a | Blue Swirl | |
538 | 2313086a | Blue Swirl | Remove the USB device @var{devname} from the QEMU virtual USB |
539 | 2313086a | Blue Swirl | hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor |
540 | 2313086a | Blue Swirl | command @code{info usb} to see the devices you can remove. |
541 | 2313086a | Blue Swirl | ETEXI |
542 | 2313086a | Blue Swirl | |
543 | d7f9b689 | Luiz Capitulino | { |
544 | d7f9b689 | Luiz Capitulino | .name = "device_add", |
545 | d7f9b689 | Luiz Capitulino | .args_type = "config:s", |
546 | d7f9b689 | Luiz Capitulino | .params = "device", |
547 | d7f9b689 | Luiz Capitulino | .help = "add device, like -device on the command line", |
548 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_device_add, |
549 | d7f9b689 | Luiz Capitulino | }, |
550 | d7f9b689 | Luiz Capitulino | |
551 | 3418bd25 | Gerd Hoffmann | STEXI |
552 | 3418bd25 | Gerd Hoffmann | @item device_add @var{config} |
553 | 3418bd25 | Gerd Hoffmann | |
554 | 3418bd25 | Gerd Hoffmann | Add device. |
555 | 3418bd25 | Gerd Hoffmann | ETEXI |
556 | 3418bd25 | Gerd Hoffmann | |
557 | d7f9b689 | Luiz Capitulino | { |
558 | d7f9b689 | Luiz Capitulino | .name = "device_del", |
559 | d7f9b689 | Luiz Capitulino | .args_type = "id:s", |
560 | d7f9b689 | Luiz Capitulino | .params = "device", |
561 | d7f9b689 | Luiz Capitulino | .help = "remove device", |
562 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_device_del, |
563 | d7f9b689 | Luiz Capitulino | }, |
564 | d7f9b689 | Luiz Capitulino | |
565 | 3418bd25 | Gerd Hoffmann | STEXI |
566 | 3418bd25 | Gerd Hoffmann | @item device_del @var{id} |
567 | 3418bd25 | Gerd Hoffmann | |
568 | 3418bd25 | Gerd Hoffmann | Remove device @var{id}. |
569 | 3418bd25 | Gerd Hoffmann | ETEXI |
570 | 3418bd25 | Gerd Hoffmann | |
571 | d7f9b689 | Luiz Capitulino | { |
572 | d7f9b689 | Luiz Capitulino | .name = "cpu", |
573 | d7f9b689 | Luiz Capitulino | .args_type = "index:i", |
574 | d7f9b689 | Luiz Capitulino | .params = "index", |
575 | d7f9b689 | Luiz Capitulino | .help = "set the default CPU", |
576 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_cpu_set, |
577 | d7f9b689 | Luiz Capitulino | }, |
578 | 3418bd25 | Gerd Hoffmann | |
579 | 2313086a | Blue Swirl | STEXI |
580 | 2313086a | Blue Swirl | Set the default CPU. |
581 | 2313086a | Blue Swirl | ETEXI |
582 | 2313086a | Blue Swirl | |
583 | d7f9b689 | Luiz Capitulino | { |
584 | d7f9b689 | Luiz Capitulino | .name = "mouse_move", |
585 | d7f9b689 | Luiz Capitulino | .args_type = "dx_str:s,dy_str:s,dz_str:s?", |
586 | d7f9b689 | Luiz Capitulino | .params = "dx dy [dz]", |
587 | d7f9b689 | Luiz Capitulino | .help = "send mouse move events", |
588 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_mouse_move, |
589 | d7f9b689 | Luiz Capitulino | }, |
590 | d7f9b689 | Luiz Capitulino | |
591 | 2313086a | Blue Swirl | STEXI |
592 | 2313086a | Blue Swirl | @item mouse_move @var{dx} @var{dy} [@var{dz}] |
593 | 2313086a | Blue Swirl | Move the active mouse to the specified coordinates @var{dx} @var{dy} |
594 | 2313086a | Blue Swirl | with optional scroll axis @var{dz}. |
595 | 2313086a | Blue Swirl | ETEXI |
596 | 2313086a | Blue Swirl | |
597 | d7f9b689 | Luiz Capitulino | { |
598 | d7f9b689 | Luiz Capitulino | .name = "mouse_button", |
599 | d7f9b689 | Luiz Capitulino | .args_type = "button_state:i", |
600 | d7f9b689 | Luiz Capitulino | .params = "state", |
601 | d7f9b689 | Luiz Capitulino | .help = "change mouse button state (1=L, 2=M, 4=R)", |
602 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_mouse_button, |
603 | d7f9b689 | Luiz Capitulino | }, |
604 | d7f9b689 | Luiz Capitulino | |
605 | 2313086a | Blue Swirl | STEXI |
606 | 2313086a | Blue Swirl | @item mouse_button @var{val} |
607 | 2313086a | Blue Swirl | Change the active mouse button state @var{val} (1=L, 2=M, 4=R). |
608 | 2313086a | Blue Swirl | ETEXI |
609 | 2313086a | Blue Swirl | |
610 | d7f9b689 | Luiz Capitulino | { |
611 | d7f9b689 | Luiz Capitulino | .name = "mouse_set", |
612 | d7f9b689 | Luiz Capitulino | .args_type = "index:i", |
613 | d7f9b689 | Luiz Capitulino | .params = "index", |
614 | d7f9b689 | Luiz Capitulino | .help = "set which mouse device receives events", |
615 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_mouse_set, |
616 | d7f9b689 | Luiz Capitulino | }, |
617 | d7f9b689 | Luiz Capitulino | |
618 | 2313086a | Blue Swirl | STEXI |
619 | 2313086a | Blue Swirl | @item mouse_set @var{index} |
620 | 2313086a | Blue Swirl | Set which mouse device receives events at given @var{index}, index |
621 | 2313086a | Blue Swirl | can be obtained with |
622 | 2313086a | Blue Swirl | @example |
623 | 2313086a | Blue Swirl | info mice |
624 | 2313086a | Blue Swirl | @end example |
625 | 2313086a | Blue Swirl | ETEXI |
626 | 2313086a | Blue Swirl | |
627 | 2313086a | Blue Swirl | #ifdef HAS_AUDIO |
628 | d7f9b689 | Luiz Capitulino | { |
629 | d7f9b689 | Luiz Capitulino | .name = "wavcapture", |
630 | d7f9b689 | Luiz Capitulino | .args_type = "path:F,freq:i?,bits:i?,nchannels:i?", |
631 | d7f9b689 | Luiz Capitulino | .params = "path [frequency [bits [channels]]]", |
632 | d7f9b689 | Luiz Capitulino | .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)", |
633 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_wav_capture, |
634 | d7f9b689 | Luiz Capitulino | }, |
635 | 2313086a | Blue Swirl | #endif |
636 | 2313086a | Blue Swirl | STEXI |
637 | 2313086a | Blue Swirl | @item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]] |
638 | 2313086a | Blue Swirl | Capture audio into @var{filename}. Using sample rate @var{frequency} |
639 | 2313086a | Blue Swirl | bits per sample @var{bits} and number of channels @var{channels}. |
640 | 2313086a | Blue Swirl | |
641 | 2313086a | Blue Swirl | Defaults: |
642 | 2313086a | Blue Swirl | @itemize @minus |
643 | 2313086a | Blue Swirl | @item Sample rate = 44100 Hz - CD quality |
644 | 2313086a | Blue Swirl | @item Bits = 16 |
645 | 2313086a | Blue Swirl | @item Number of channels = 2 - Stereo |
646 | 2313086a | Blue Swirl | @end itemize |
647 | 2313086a | Blue Swirl | ETEXI |
648 | 2313086a | Blue Swirl | |
649 | 2313086a | Blue Swirl | #ifdef HAS_AUDIO |
650 | d7f9b689 | Luiz Capitulino | { |
651 | d7f9b689 | Luiz Capitulino | .name = "stopcapture", |
652 | d7f9b689 | Luiz Capitulino | .args_type = "n:i", |
653 | d7f9b689 | Luiz Capitulino | .params = "capture index", |
654 | d7f9b689 | Luiz Capitulino | .help = "stop capture", |
655 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_stop_capture, |
656 | d7f9b689 | Luiz Capitulino | }, |
657 | 2313086a | Blue Swirl | #endif |
658 | 2313086a | Blue Swirl | STEXI |
659 | 2313086a | Blue Swirl | @item stopcapture @var{index} |
660 | 2313086a | Blue Swirl | Stop capture with a given @var{index}, index can be obtained with |
661 | 2313086a | Blue Swirl | @example |
662 | 2313086a | Blue Swirl | info capture |
663 | 2313086a | Blue Swirl | @end example |
664 | 2313086a | Blue Swirl | ETEXI |
665 | 2313086a | Blue Swirl | |
666 | d7f9b689 | Luiz Capitulino | { |
667 | d7f9b689 | Luiz Capitulino | .name = "memsave", |
668 | d7f9b689 | Luiz Capitulino | .args_type = "val:l,size:i,filename:s", |
669 | d7f9b689 | Luiz Capitulino | .params = "addr size file", |
670 | d7f9b689 | Luiz Capitulino | .help = "save to disk virtual memory dump starting at 'addr' of size 'size'", |
671 | 57e09454 | Luiz Capitulino | .user_print = monitor_user_noop, |
672 | 57e09454 | Luiz Capitulino | .mhandler.cmd_new = do_memory_save, |
673 | d7f9b689 | Luiz Capitulino | }, |
674 | d7f9b689 | Luiz Capitulino | |
675 | 2313086a | Blue Swirl | STEXI |
676 | 2313086a | Blue Swirl | @item memsave @var{addr} @var{size} @var{file} |
677 | 2313086a | Blue Swirl | save to disk virtual memory dump starting at @var{addr} of size @var{size}. |
678 | 2313086a | Blue Swirl | ETEXI |
679 | 2313086a | Blue Swirl | |
680 | d7f9b689 | Luiz Capitulino | { |
681 | d7f9b689 | Luiz Capitulino | .name = "pmemsave", |
682 | d7f9b689 | Luiz Capitulino | .args_type = "val:l,size:i,filename:s", |
683 | d7f9b689 | Luiz Capitulino | .params = "addr size file", |
684 | d7f9b689 | Luiz Capitulino | .help = "save to disk physical memory dump starting at 'addr' of size 'size'", |
685 | 18f5a8bf | Luiz Capitulino | .user_print = monitor_user_noop, |
686 | 18f5a8bf | Luiz Capitulino | .mhandler.cmd_new = do_physical_memory_save, |
687 | d7f9b689 | Luiz Capitulino | }, |
688 | d7f9b689 | Luiz Capitulino | |
689 | 2313086a | Blue Swirl | STEXI |
690 | 2313086a | Blue Swirl | @item pmemsave @var{addr} @var{size} @var{file} |
691 | 2313086a | Blue Swirl | save to disk physical memory dump starting at @var{addr} of size @var{size}. |
692 | 2313086a | Blue Swirl | ETEXI |
693 | 2313086a | Blue Swirl | |
694 | d7f9b689 | Luiz Capitulino | { |
695 | d7f9b689 | Luiz Capitulino | .name = "boot_set", |
696 | d7f9b689 | Luiz Capitulino | .args_type = "bootdevice:s", |
697 | d7f9b689 | Luiz Capitulino | .params = "bootdevice", |
698 | d7f9b689 | Luiz Capitulino | .help = "define new values for the boot device list", |
699 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_boot_set, |
700 | d7f9b689 | Luiz Capitulino | }, |
701 | d7f9b689 | Luiz Capitulino | |
702 | 2313086a | Blue Swirl | STEXI |
703 | 2313086a | Blue Swirl | @item boot_set @var{bootdevicelist} |
704 | 2313086a | Blue Swirl | |
705 | 2313086a | Blue Swirl | Define new values for the boot device list. Those values will override |
706 | 2313086a | Blue Swirl | the values specified on the command line through the @code{-boot} option. |
707 | 2313086a | Blue Swirl | |
708 | 2313086a | Blue Swirl | The values that can be specified here depend on the machine type, but are |
709 | 2313086a | Blue Swirl | the same that can be specified in the @code{-boot} command line option. |
710 | 2313086a | Blue Swirl | ETEXI |
711 | 2313086a | Blue Swirl | |
712 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
713 | d7f9b689 | Luiz Capitulino | { |
714 | d7f9b689 | Luiz Capitulino | .name = "nmi", |
715 | d7f9b689 | Luiz Capitulino | .args_type = "cpu_index:i", |
716 | d7f9b689 | Luiz Capitulino | .params = "cpu", |
717 | d7f9b689 | Luiz Capitulino | .help = "inject an NMI on the given CPU", |
718 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_inject_nmi, |
719 | d7f9b689 | Luiz Capitulino | }, |
720 | 2313086a | Blue Swirl | #endif |
721 | 2313086a | Blue Swirl | STEXI |
722 | 2313086a | Blue Swirl | @item nmi @var{cpu} |
723 | 2313086a | Blue Swirl | Inject an NMI on the given CPU (x86 only). |
724 | 2313086a | Blue Swirl | ETEXI |
725 | 2313086a | Blue Swirl | |
726 | d7f9b689 | Luiz Capitulino | { |
727 | d7f9b689 | Luiz Capitulino | .name = "migrate", |
728 | fbc3d96c | lirans@il.ibm.com | .args_type = "detach:-d,blk:-b,inc:-i,uri:s", |
729 | fbc3d96c | lirans@il.ibm.com | .params = "[-d] [-b] [-i] uri", |
730 | fbc3d96c | lirans@il.ibm.com | .help = "migrate to URI (using -d to not wait for completion)" |
731 | fbc3d96c | lirans@il.ibm.com | "\n\t\t\t -b for migration without shared storage with" |
732 | fbc3d96c | lirans@il.ibm.com | " full copy of disk\n\t\t\t -i for migration without " |
733 | fbc3d96c | lirans@il.ibm.com | "shared storage with incremental copy of disk " |
734 | fbc3d96c | lirans@il.ibm.com | "(base image shared between src and destination)", |
735 | fbc3d96c | lirans@il.ibm.com | .user_print = monitor_user_noop, |
736 | fbc3d96c | lirans@il.ibm.com | .mhandler.cmd_new = do_migrate, |
737 | d7f9b689 | Luiz Capitulino | }, |
738 | d7f9b689 | Luiz Capitulino | |
739 | fbc3d96c | lirans@il.ibm.com | |
740 | 2313086a | Blue Swirl | STEXI |
741 | fbc3d96c | lirans@il.ibm.com | @item migrate [-d] [-b] [-i] @var{uri} |
742 | 2313086a | Blue Swirl | Migrate to @var{uri} (using -d to not wait for completion). |
743 | fbc3d96c | lirans@il.ibm.com | -b for migration with full copy of disk |
744 | fbc3d96c | lirans@il.ibm.com | -i for migration with incremental copy of disk (base image is shared) |
745 | 2313086a | Blue Swirl | ETEXI |
746 | 2313086a | Blue Swirl | |
747 | d7f9b689 | Luiz Capitulino | { |
748 | d7f9b689 | Luiz Capitulino | .name = "migrate_cancel", |
749 | d7f9b689 | Luiz Capitulino | .args_type = "", |
750 | d7f9b689 | Luiz Capitulino | .params = "", |
751 | d7f9b689 | Luiz Capitulino | .help = "cancel the current VM migration", |
752 | 911d2963 | Luiz Capitulino | .user_print = monitor_user_noop, |
753 | 911d2963 | Luiz Capitulino | .mhandler.cmd_new = do_migrate_cancel, |
754 | d7f9b689 | Luiz Capitulino | }, |
755 | d7f9b689 | Luiz Capitulino | |
756 | 2313086a | Blue Swirl | STEXI |
757 | 2313086a | Blue Swirl | @item migrate_cancel |
758 | 2313086a | Blue Swirl | Cancel the current VM migration. |
759 | 2313086a | Blue Swirl | ETEXI |
760 | 2313086a | Blue Swirl | |
761 | d7f9b689 | Luiz Capitulino | { |
762 | d7f9b689 | Luiz Capitulino | .name = "migrate_set_speed", |
763 | d7f9b689 | Luiz Capitulino | .args_type = "value:s", |
764 | d7f9b689 | Luiz Capitulino | .params = "value", |
765 | d7f9b689 | Luiz Capitulino | .help = "set maximum speed (in bytes) for migrations", |
766 | 13232b8f | Anthony Liguori | .mhandler.cmd = do_migrate_set_speed, |
767 | d7f9b689 | Luiz Capitulino | }, |
768 | d7f9b689 | Luiz Capitulino | |
769 | 2313086a | Blue Swirl | STEXI |
770 | 2313086a | Blue Swirl | @item migrate_set_speed @var{value} |
771 | 2313086a | Blue Swirl | Set maximum speed to @var{value} (in bytes) for migrations. |
772 | 2313086a | Blue Swirl | ETEXI |
773 | 2313086a | Blue Swirl | |
774 | d7f9b689 | Luiz Capitulino | { |
775 | d7f9b689 | Luiz Capitulino | .name = "migrate_set_downtime", |
776 | d7f9b689 | Luiz Capitulino | .args_type = "value:s", |
777 | d7f9b689 | Luiz Capitulino | .params = "value", |
778 | d7f9b689 | Luiz Capitulino | .help = "set maximum tolerated downtime (in seconds) for migrations", |
779 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_migrate_set_downtime, |
780 | d7f9b689 | Luiz Capitulino | }, |
781 | 2ea42952 | Glauber Costa | |
782 | 2ea42952 | Glauber Costa | STEXI |
783 | 2ea42952 | Glauber Costa | @item migrate_set_downtime @var{second} |
784 | 2ea42952 | Glauber Costa | Set maximum tolerated downtime (in seconds) for migration. |
785 | 2ea42952 | Glauber Costa | ETEXI |
786 | 2ea42952 | Glauber Costa | |
787 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
788 | d7f9b689 | Luiz Capitulino | { |
789 | d7f9b689 | Luiz Capitulino | .name = "drive_add", |
790 | d7f9b689 | Luiz Capitulino | .args_type = "pci_addr:s,opts:s", |
791 | d7f9b689 | Luiz Capitulino | .params = "[[<domain>:]<bus>:]<slot>\n" |
792 | d7f9b689 | Luiz Capitulino | "[file=file][,if=type][,bus=n]\n" |
793 | d7f9b689 | Luiz Capitulino | "[,unit=m][,media=d][index=i]\n" |
794 | d7f9b689 | Luiz Capitulino | "[,cyls=c,heads=h,secs=s[,trans=t]]\n" |
795 | d7f9b689 | Luiz Capitulino | "[snapshot=on|off][,cache=on|off]", |
796 | d7f9b689 | Luiz Capitulino | .help = "add drive to PCI storage controller", |
797 | af4ce882 | Luiz Capitulino | .mhandler.cmd = drive_hot_add, |
798 | d7f9b689 | Luiz Capitulino | }, |
799 | 2313086a | Blue Swirl | #endif |
800 | d7f9b689 | Luiz Capitulino | |
801 | 2313086a | Blue Swirl | STEXI |
802 | 2313086a | Blue Swirl | @item drive_add |
803 | 2313086a | Blue Swirl | Add drive to PCI storage controller. |
804 | 2313086a | Blue Swirl | ETEXI |
805 | 2313086a | Blue Swirl | |
806 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
807 | d7f9b689 | Luiz Capitulino | { |
808 | d7f9b689 | Luiz Capitulino | .name = "pci_add", |
809 | d7f9b689 | Luiz Capitulino | .args_type = "pci_addr:s,type:s,opts:s?", |
810 | d7f9b689 | Luiz Capitulino | .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", |
811 | d7f9b689 | Luiz Capitulino | .help = "hot-add PCI device", |
812 | 7a344f7a | Luiz Capitulino | .user_print = pci_device_hot_add_print, |
813 | 7a344f7a | Luiz Capitulino | .mhandler.cmd_new = pci_device_hot_add, |
814 | d7f9b689 | Luiz Capitulino | }, |
815 | 2313086a | Blue Swirl | #endif |
816 | d7f9b689 | Luiz Capitulino | |
817 | 2313086a | Blue Swirl | STEXI |
818 | 2313086a | Blue Swirl | @item pci_add |
819 | 2313086a | Blue Swirl | Hot-add PCI device. |
820 | 2313086a | Blue Swirl | ETEXI |
821 | 2313086a | Blue Swirl | |
822 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
823 | d7f9b689 | Luiz Capitulino | { |
824 | d7f9b689 | Luiz Capitulino | .name = "pci_del", |
825 | d7f9b689 | Luiz Capitulino | .args_type = "pci_addr:s", |
826 | d7f9b689 | Luiz Capitulino | .params = "[[<domain>:]<bus>:]<slot>", |
827 | d7f9b689 | Luiz Capitulino | .help = "hot remove PCI device", |
828 | 6848d827 | Luiz Capitulino | .user_print = monitor_user_noop, |
829 | 6848d827 | Luiz Capitulino | .mhandler.cmd_new = do_pci_device_hot_remove, |
830 | d7f9b689 | Luiz Capitulino | }, |
831 | 2313086a | Blue Swirl | #endif |
832 | d7f9b689 | Luiz Capitulino | |
833 | 2313086a | Blue Swirl | STEXI |
834 | 2313086a | Blue Swirl | @item pci_del |
835 | 2313086a | Blue Swirl | Hot remove PCI device. |
836 | 2313086a | Blue Swirl | ETEXI |
837 | 2313086a | Blue Swirl | |
838 | d7f9b689 | Luiz Capitulino | { |
839 | d7f9b689 | Luiz Capitulino | .name = "host_net_add", |
840 | d7f9b689 | Luiz Capitulino | .args_type = "device:s,opts:s?", |
841 | d7f9b689 | Luiz Capitulino | .params = "tap|user|socket|vde|dump [options]", |
842 | d7f9b689 | Luiz Capitulino | .help = "add host VLAN client", |
843 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_host_device_add, |
844 | d7f9b689 | Luiz Capitulino | }, |
845 | d7f9b689 | Luiz Capitulino | |
846 | 2313086a | Blue Swirl | STEXI |
847 | 2313086a | Blue Swirl | @item host_net_add |
848 | 2313086a | Blue Swirl | Add host VLAN client. |
849 | 2313086a | Blue Swirl | ETEXI |
850 | 2313086a | Blue Swirl | |
851 | d7f9b689 | Luiz Capitulino | { |
852 | d7f9b689 | Luiz Capitulino | .name = "host_net_remove", |
853 | d7f9b689 | Luiz Capitulino | .args_type = "vlan_id:i,device:s", |
854 | d7f9b689 | Luiz Capitulino | .params = "vlan_id name", |
855 | d7f9b689 | Luiz Capitulino | .help = "remove host VLAN client", |
856 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_host_device_remove, |
857 | d7f9b689 | Luiz Capitulino | }, |
858 | d7f9b689 | Luiz Capitulino | |
859 | 2313086a | Blue Swirl | STEXI |
860 | 2313086a | Blue Swirl | @item host_net_remove |
861 | 2313086a | Blue Swirl | Remove host VLAN client. |
862 | 2313086a | Blue Swirl | ETEXI |
863 | 2313086a | Blue Swirl | |
864 | 2313086a | Blue Swirl | #ifdef CONFIG_SLIRP |
865 | d7f9b689 | Luiz Capitulino | { |
866 | d7f9b689 | Luiz Capitulino | .name = "hostfwd_add", |
867 | d7f9b689 | Luiz Capitulino | .args_type = "arg1:s,arg2:s?,arg3:s?", |
868 | d7f9b689 | Luiz Capitulino | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport", |
869 | d7f9b689 | Luiz Capitulino | .help = "redirect TCP or UDP connections from host to guest (requires -net user)", |
870 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_slirp_hostfwd_add, |
871 | d7f9b689 | Luiz Capitulino | }, |
872 | d7f9b689 | Luiz Capitulino | |
873 | d7f9b689 | Luiz Capitulino | { |
874 | d7f9b689 | Luiz Capitulino | .name = "hostfwd_remove", |
875 | d7f9b689 | Luiz Capitulino | .args_type = "arg1:s,arg2:s?,arg3:s?", |
876 | d7f9b689 | Luiz Capitulino | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport", |
877 | d7f9b689 | Luiz Capitulino | .help = "remove host-to-guest TCP or UDP redirection", |
878 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_slirp_hostfwd_remove, |
879 | d7f9b689 | Luiz Capitulino | }, |
880 | d7f9b689 | Luiz Capitulino | |
881 | 2313086a | Blue Swirl | #endif |
882 | 2313086a | Blue Swirl | STEXI |
883 | 2313086a | Blue Swirl | @item host_net_redir |
884 | 2313086a | Blue Swirl | Redirect TCP or UDP connections from host to guest (requires -net user). |
885 | 2313086a | Blue Swirl | ETEXI |
886 | 2313086a | Blue Swirl | |
887 | d7f9b689 | Luiz Capitulino | { |
888 | d7f9b689 | Luiz Capitulino | .name = "balloon", |
889 | 3b0bd6ec | Luiz Capitulino | .args_type = "value:M", |
890 | d7f9b689 | Luiz Capitulino | .params = "target", |
891 | d7f9b689 | Luiz Capitulino | .help = "request VM to change it's memory allocation (in MB)", |
892 | 83fb1de2 | Luiz Capitulino | .user_print = monitor_user_noop, |
893 | 83fb1de2 | Luiz Capitulino | .mhandler.cmd_new = do_balloon, |
894 | d7f9b689 | Luiz Capitulino | }, |
895 | d7f9b689 | Luiz Capitulino | |
896 | 2313086a | Blue Swirl | STEXI |
897 | 2313086a | Blue Swirl | @item balloon @var{value} |
898 | 2313086a | Blue Swirl | Request VM to change its memory allocation to @var{value} (in MB). |
899 | 2313086a | Blue Swirl | ETEXI |
900 | 2313086a | Blue Swirl | |
901 | d7f9b689 | Luiz Capitulino | { |
902 | d7f9b689 | Luiz Capitulino | .name = "set_link", |
903 | d7f9b689 | Luiz Capitulino | .args_type = "name:s,up_or_down:s", |
904 | d7f9b689 | Luiz Capitulino | .params = "name up|down", |
905 | d7f9b689 | Luiz Capitulino | .help = "change the link status of a network adapter", |
906 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_set_link, |
907 | d7f9b689 | Luiz Capitulino | }, |
908 | d7f9b689 | Luiz Capitulino | |
909 | 2313086a | Blue Swirl | STEXI |
910 | 2313086a | Blue Swirl | @item set_link @var{name} [up|down] |
911 | 2313086a | Blue Swirl | Set link @var{name} up or down. |
912 | 2313086a | Blue Swirl | ETEXI |
913 | 2313086a | Blue Swirl | |
914 | d7f9b689 | Luiz Capitulino | { |
915 | d7f9b689 | Luiz Capitulino | .name = "watchdog_action", |
916 | d7f9b689 | Luiz Capitulino | .args_type = "action:s", |
917 | d7f9b689 | Luiz Capitulino | .params = "[reset|shutdown|poweroff|pause|debug|none]", |
918 | d7f9b689 | Luiz Capitulino | .help = "change watchdog action", |
919 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_watchdog_action, |
920 | d7f9b689 | Luiz Capitulino | }, |
921 | d7f9b689 | Luiz Capitulino | |
922 | 2313086a | Blue Swirl | STEXI |
923 | 2313086a | Blue Swirl | @item watchdog_action |
924 | 2313086a | Blue Swirl | Change watchdog action. |
925 | 2313086a | Blue Swirl | ETEXI |
926 | 2313086a | Blue Swirl | |
927 | d7f9b689 | Luiz Capitulino | { |
928 | d7f9b689 | Luiz Capitulino | .name = "acl_show", |
929 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s", |
930 | d7f9b689 | Luiz Capitulino | .params = "aclname", |
931 | d7f9b689 | Luiz Capitulino | .help = "list rules in the access control list", |
932 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_show, |
933 | d7f9b689 | Luiz Capitulino | }, |
934 | d7f9b689 | Luiz Capitulino | |
935 | 2313086a | Blue Swirl | STEXI |
936 | 15dfcd45 | Jan Kiszka | @item acl_show @var{aclname} |
937 | 15dfcd45 | Jan Kiszka | List all the matching rules in the access control list, and the default |
938 | 15dfcd45 | Jan Kiszka | policy. There are currently two named access control lists, |
939 | 15dfcd45 | Jan Kiszka | @var{vnc.x509dname} and @var{vnc.username} matching on the x509 client |
940 | 15dfcd45 | Jan Kiszka | certificate distinguished name, and SASL username respectively. |
941 | 15dfcd45 | Jan Kiszka | ETEXI |
942 | 2313086a | Blue Swirl | |
943 | d7f9b689 | Luiz Capitulino | { |
944 | d7f9b689 | Luiz Capitulino | .name = "acl_policy", |
945 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s,policy:s", |
946 | d7f9b689 | Luiz Capitulino | .params = "aclname allow|deny", |
947 | d7f9b689 | Luiz Capitulino | .help = "set default access control list policy", |
948 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_policy, |
949 | d7f9b689 | Luiz Capitulino | }, |
950 | d7f9b689 | Luiz Capitulino | |
951 | 15dfcd45 | Jan Kiszka | STEXI |
952 | cbbfacc6 | Jan Kiszka | @item acl_policy @var{aclname} @code{allow|deny} |
953 | 15dfcd45 | Jan Kiszka | Set the default access control list policy, used in the event that |
954 | 2313086a | Blue Swirl | none of the explicit rules match. The default policy at startup is |
955 | 15dfcd45 | Jan Kiszka | always @code{deny}. |
956 | 15dfcd45 | Jan Kiszka | ETEXI |
957 | 15dfcd45 | Jan Kiszka | |
958 | d7f9b689 | Luiz Capitulino | { |
959 | d7f9b689 | Luiz Capitulino | .name = "acl_add", |
960 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s,match:s,policy:s,index:i?", |
961 | d7f9b689 | Luiz Capitulino | .params = "aclname match allow|deny [index]", |
962 | d7f9b689 | Luiz Capitulino | .help = "add a match rule to the access control list", |
963 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_add, |
964 | d7f9b689 | Luiz Capitulino | }, |
965 | d7f9b689 | Luiz Capitulino | |
966 | 15dfcd45 | Jan Kiszka | STEXI |
967 | 15dfcd45 | Jan Kiszka | @item acl_allow @var{aclname} @var{match} @code{allow|deny} [@var{index}] |
968 | 15dfcd45 | Jan Kiszka | Add a match rule to the access control list, allowing or denying access. |
969 | 15dfcd45 | Jan Kiszka | The match will normally be an exact username or x509 distinguished name, |
970 | 15dfcd45 | Jan Kiszka | but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to |
971 | 15dfcd45 | Jan Kiszka | allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will |
972 | 2313086a | Blue Swirl | normally be appended to the end of the ACL, but can be inserted |
973 | 15dfcd45 | Jan Kiszka | earlier in the list if the optional @var{index} parameter is supplied. |
974 | 15dfcd45 | Jan Kiszka | ETEXI |
975 | 15dfcd45 | Jan Kiszka | |
976 | d7f9b689 | Luiz Capitulino | { |
977 | d7f9b689 | Luiz Capitulino | .name = "acl_remove", |
978 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s,match:s", |
979 | d7f9b689 | Luiz Capitulino | .params = "aclname match", |
980 | d7f9b689 | Luiz Capitulino | .help = "remove a match rule from the access control list", |
981 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_remove, |
982 | d7f9b689 | Luiz Capitulino | }, |
983 | d7f9b689 | Luiz Capitulino | |
984 | 15dfcd45 | Jan Kiszka | STEXI |
985 | 15dfcd45 | Jan Kiszka | @item acl_remove @var{aclname} @var{match} |
986 | 15dfcd45 | Jan Kiszka | Remove the specified match rule from the access control list. |
987 | 15dfcd45 | Jan Kiszka | ETEXI |
988 | 15dfcd45 | Jan Kiszka | |
989 | d7f9b689 | Luiz Capitulino | { |
990 | d7f9b689 | Luiz Capitulino | .name = "acl_reset", |
991 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s", |
992 | d7f9b689 | Luiz Capitulino | .params = "aclname", |
993 | d7f9b689 | Luiz Capitulino | .help = "reset the access control list", |
994 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_reset, |
995 | d7f9b689 | Luiz Capitulino | }, |
996 | d7f9b689 | Luiz Capitulino | |
997 | 15dfcd45 | Jan Kiszka | STEXI |
998 | 15dfcd45 | Jan Kiszka | @item acl_remove @var{aclname} @var{match} |
999 | 15dfcd45 | Jan Kiszka | Remove all matches from the access control list, and set the default |
1000 | 2313086a | Blue Swirl | policy back to @code{deny}. |
1001 | 2313086a | Blue Swirl | ETEXI |
1002 | 2313086a | Blue Swirl | |
1003 | 79c4f6b0 | Huang Ying | #if defined(TARGET_I386) |
1004 | d7f9b689 | Luiz Capitulino | |
1005 | d7f9b689 | Luiz Capitulino | { |
1006 | d7f9b689 | Luiz Capitulino | .name = "mce", |
1007 | d7f9b689 | Luiz Capitulino | .args_type = "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", |
1008 | d7f9b689 | Luiz Capitulino | .params = "cpu bank status mcgstatus addr misc", |
1009 | d7f9b689 | Luiz Capitulino | .help = "inject a MCE on the given CPU", |
1010 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_inject_mce, |
1011 | d7f9b689 | Luiz Capitulino | }, |
1012 | d7f9b689 | Luiz Capitulino | |
1013 | 79c4f6b0 | Huang Ying | #endif |
1014 | 79c4f6b0 | Huang Ying | STEXI |
1015 | 79c4f6b0 | Huang Ying | @item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc} |
1016 | 79c4f6b0 | Huang Ying | Inject an MCE on the given CPU (x86 only). |
1017 | 79c4f6b0 | Huang Ying | ETEXI |
1018 | 79c4f6b0 | Huang Ying | |
1019 | d7f9b689 | Luiz Capitulino | { |
1020 | d7f9b689 | Luiz Capitulino | .name = "getfd", |
1021 | d7f9b689 | Luiz Capitulino | .args_type = "fdname:s", |
1022 | d7f9b689 | Luiz Capitulino | .params = "getfd name", |
1023 | d7f9b689 | Luiz Capitulino | .help = "receive a file descriptor via SCM rights and assign it a name", |
1024 | f0d6000a | Luiz Capitulino | .user_print = monitor_user_noop, |
1025 | f0d6000a | Luiz Capitulino | .mhandler.cmd_new = do_getfd, |
1026 | d7f9b689 | Luiz Capitulino | }, |
1027 | d7f9b689 | Luiz Capitulino | |
1028 | f07918fd | Mark McLoughlin | STEXI |
1029 | f07918fd | Mark McLoughlin | @item getfd @var{fdname} |
1030 | f07918fd | Mark McLoughlin | If a file descriptor is passed alongside this command using the SCM_RIGHTS |
1031 | f07918fd | Mark McLoughlin | mechanism on unix sockets, it is stored using the name @var{fdname} for |
1032 | f07918fd | Mark McLoughlin | later use by other monitor commands. |
1033 | f07918fd | Mark McLoughlin | ETEXI |
1034 | f07918fd | Mark McLoughlin | |
1035 | d7f9b689 | Luiz Capitulino | { |
1036 | d7f9b689 | Luiz Capitulino | .name = "closefd", |
1037 | d7f9b689 | Luiz Capitulino | .args_type = "fdname:s", |
1038 | d7f9b689 | Luiz Capitulino | .params = "closefd name", |
1039 | d7f9b689 | Luiz Capitulino | .help = "close a file descriptor previously passed via SCM rights", |
1040 | 18f3a515 | Luiz Capitulino | .user_print = monitor_user_noop, |
1041 | 18f3a515 | Luiz Capitulino | .mhandler.cmd_new = do_closefd, |
1042 | d7f9b689 | Luiz Capitulino | }, |
1043 | d7f9b689 | Luiz Capitulino | |
1044 | f07918fd | Mark McLoughlin | STEXI |
1045 | f07918fd | Mark McLoughlin | @item closefd @var{fdname} |
1046 | f07918fd | Mark McLoughlin | Close the file descriptor previously assigned to @var{fdname} using the |
1047 | f07918fd | Mark McLoughlin | @code{getfd} command. This is only needed if the file descriptor was never |
1048 | f07918fd | Mark McLoughlin | used by another monitor command. |
1049 | f07918fd | Mark McLoughlin | ETEXI |
1050 | f07918fd | Mark McLoughlin | |
1051 | a3a55a2e | Luiz Capitulino | { |
1052 | a3a55a2e | Luiz Capitulino | .name = "block_passwd", |
1053 | a3a55a2e | Luiz Capitulino | .args_type = "device:B,password:s", |
1054 | a3a55a2e | Luiz Capitulino | .params = "block_passwd device password", |
1055 | a3a55a2e | Luiz Capitulino | .help = "set the password of encrypted block devices", |
1056 | a3a55a2e | Luiz Capitulino | .user_print = monitor_user_noop, |
1057 | a3a55a2e | Luiz Capitulino | .mhandler.cmd_new = do_block_set_passwd, |
1058 | a3a55a2e | Luiz Capitulino | }, |
1059 | a3a55a2e | Luiz Capitulino | |
1060 | a3a55a2e | Luiz Capitulino | STEXI |
1061 | a3a55a2e | Luiz Capitulino | @item block_passwd @var{device} @var{password} |
1062 | a3a55a2e | Luiz Capitulino | Set the encrypted device @var{device} password to @var{password} |
1063 | a3a55a2e | Luiz Capitulino | ETEXI |
1064 | a3a55a2e | Luiz Capitulino | |
1065 | 2313086a | Blue Swirl | STEXI |
1066 | 2313086a | Blue Swirl | @end table |
1067 | 2313086a | Blue Swirl | ETEXI |