root / qemu-monitor.hx @ 5667c493
History | View | Annotate | Download (27.7 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 | 81a1b45a | Markus Armbruster | .user_print = monitor_user_noop, |
577 | 81a1b45a | Markus Armbruster | .mhandler.cmd_new = do_cpu_set, |
578 | d7f9b689 | Luiz Capitulino | }, |
579 | 3418bd25 | Gerd Hoffmann | |
580 | 2313086a | Blue Swirl | STEXI |
581 | 2313086a | Blue Swirl | Set the default CPU. |
582 | 2313086a | Blue Swirl | ETEXI |
583 | 2313086a | Blue Swirl | |
584 | d7f9b689 | Luiz Capitulino | { |
585 | d7f9b689 | Luiz Capitulino | .name = "mouse_move", |
586 | d7f9b689 | Luiz Capitulino | .args_type = "dx_str:s,dy_str:s,dz_str:s?", |
587 | d7f9b689 | Luiz Capitulino | .params = "dx dy [dz]", |
588 | d7f9b689 | Luiz Capitulino | .help = "send mouse move events", |
589 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_mouse_move, |
590 | d7f9b689 | Luiz Capitulino | }, |
591 | d7f9b689 | Luiz Capitulino | |
592 | 2313086a | Blue Swirl | STEXI |
593 | 2313086a | Blue Swirl | @item mouse_move @var{dx} @var{dy} [@var{dz}] |
594 | 2313086a | Blue Swirl | Move the active mouse to the specified coordinates @var{dx} @var{dy} |
595 | 2313086a | Blue Swirl | with optional scroll axis @var{dz}. |
596 | 2313086a | Blue Swirl | ETEXI |
597 | 2313086a | Blue Swirl | |
598 | d7f9b689 | Luiz Capitulino | { |
599 | d7f9b689 | Luiz Capitulino | .name = "mouse_button", |
600 | d7f9b689 | Luiz Capitulino | .args_type = "button_state:i", |
601 | d7f9b689 | Luiz Capitulino | .params = "state", |
602 | d7f9b689 | Luiz Capitulino | .help = "change mouse button state (1=L, 2=M, 4=R)", |
603 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_mouse_button, |
604 | d7f9b689 | Luiz Capitulino | }, |
605 | d7f9b689 | Luiz Capitulino | |
606 | 2313086a | Blue Swirl | STEXI |
607 | 2313086a | Blue Swirl | @item mouse_button @var{val} |
608 | 2313086a | Blue Swirl | Change the active mouse button state @var{val} (1=L, 2=M, 4=R). |
609 | 2313086a | Blue Swirl | ETEXI |
610 | 2313086a | Blue Swirl | |
611 | d7f9b689 | Luiz Capitulino | { |
612 | d7f9b689 | Luiz Capitulino | .name = "mouse_set", |
613 | d7f9b689 | Luiz Capitulino | .args_type = "index:i", |
614 | d7f9b689 | Luiz Capitulino | .params = "index", |
615 | d7f9b689 | Luiz Capitulino | .help = "set which mouse device receives events", |
616 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_mouse_set, |
617 | d7f9b689 | Luiz Capitulino | }, |
618 | d7f9b689 | Luiz Capitulino | |
619 | 2313086a | Blue Swirl | STEXI |
620 | 2313086a | Blue Swirl | @item mouse_set @var{index} |
621 | 2313086a | Blue Swirl | Set which mouse device receives events at given @var{index}, index |
622 | 2313086a | Blue Swirl | can be obtained with |
623 | 2313086a | Blue Swirl | @example |
624 | 2313086a | Blue Swirl | info mice |
625 | 2313086a | Blue Swirl | @end example |
626 | 2313086a | Blue Swirl | ETEXI |
627 | 2313086a | Blue Swirl | |
628 | 2313086a | Blue Swirl | #ifdef HAS_AUDIO |
629 | d7f9b689 | Luiz Capitulino | { |
630 | d7f9b689 | Luiz Capitulino | .name = "wavcapture", |
631 | d7f9b689 | Luiz Capitulino | .args_type = "path:F,freq:i?,bits:i?,nchannels:i?", |
632 | d7f9b689 | Luiz Capitulino | .params = "path [frequency [bits [channels]]]", |
633 | d7f9b689 | Luiz Capitulino | .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)", |
634 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_wav_capture, |
635 | d7f9b689 | Luiz Capitulino | }, |
636 | 2313086a | Blue Swirl | #endif |
637 | 2313086a | Blue Swirl | STEXI |
638 | 2313086a | Blue Swirl | @item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]] |
639 | 2313086a | Blue Swirl | Capture audio into @var{filename}. Using sample rate @var{frequency} |
640 | 2313086a | Blue Swirl | bits per sample @var{bits} and number of channels @var{channels}. |
641 | 2313086a | Blue Swirl | |
642 | 2313086a | Blue Swirl | Defaults: |
643 | 2313086a | Blue Swirl | @itemize @minus |
644 | 2313086a | Blue Swirl | @item Sample rate = 44100 Hz - CD quality |
645 | 2313086a | Blue Swirl | @item Bits = 16 |
646 | 2313086a | Blue Swirl | @item Number of channels = 2 - Stereo |
647 | 2313086a | Blue Swirl | @end itemize |
648 | 2313086a | Blue Swirl | ETEXI |
649 | 2313086a | Blue Swirl | |
650 | 2313086a | Blue Swirl | #ifdef HAS_AUDIO |
651 | d7f9b689 | Luiz Capitulino | { |
652 | d7f9b689 | Luiz Capitulino | .name = "stopcapture", |
653 | d7f9b689 | Luiz Capitulino | .args_type = "n:i", |
654 | d7f9b689 | Luiz Capitulino | .params = "capture index", |
655 | d7f9b689 | Luiz Capitulino | .help = "stop capture", |
656 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_stop_capture, |
657 | d7f9b689 | Luiz Capitulino | }, |
658 | 2313086a | Blue Swirl | #endif |
659 | 2313086a | Blue Swirl | STEXI |
660 | 2313086a | Blue Swirl | @item stopcapture @var{index} |
661 | 2313086a | Blue Swirl | Stop capture with a given @var{index}, index can be obtained with |
662 | 2313086a | Blue Swirl | @example |
663 | 2313086a | Blue Swirl | info capture |
664 | 2313086a | Blue Swirl | @end example |
665 | 2313086a | Blue Swirl | ETEXI |
666 | 2313086a | Blue Swirl | |
667 | d7f9b689 | Luiz Capitulino | { |
668 | d7f9b689 | Luiz Capitulino | .name = "memsave", |
669 | d7f9b689 | Luiz Capitulino | .args_type = "val:l,size:i,filename:s", |
670 | d7f9b689 | Luiz Capitulino | .params = "addr size file", |
671 | d7f9b689 | Luiz Capitulino | .help = "save to disk virtual memory dump starting at 'addr' of size 'size'", |
672 | 57e09454 | Luiz Capitulino | .user_print = monitor_user_noop, |
673 | 57e09454 | Luiz Capitulino | .mhandler.cmd_new = do_memory_save, |
674 | d7f9b689 | Luiz Capitulino | }, |
675 | d7f9b689 | Luiz Capitulino | |
676 | 2313086a | Blue Swirl | STEXI |
677 | 2313086a | Blue Swirl | @item memsave @var{addr} @var{size} @var{file} |
678 | 2313086a | Blue Swirl | save to disk virtual memory dump starting at @var{addr} of size @var{size}. |
679 | 2313086a | Blue Swirl | ETEXI |
680 | 2313086a | Blue Swirl | |
681 | d7f9b689 | Luiz Capitulino | { |
682 | d7f9b689 | Luiz Capitulino | .name = "pmemsave", |
683 | d7f9b689 | Luiz Capitulino | .args_type = "val:l,size:i,filename:s", |
684 | d7f9b689 | Luiz Capitulino | .params = "addr size file", |
685 | d7f9b689 | Luiz Capitulino | .help = "save to disk physical memory dump starting at 'addr' of size 'size'", |
686 | 18f5a8bf | Luiz Capitulino | .user_print = monitor_user_noop, |
687 | 18f5a8bf | Luiz Capitulino | .mhandler.cmd_new = do_physical_memory_save, |
688 | d7f9b689 | Luiz Capitulino | }, |
689 | d7f9b689 | Luiz Capitulino | |
690 | 2313086a | Blue Swirl | STEXI |
691 | 2313086a | Blue Swirl | @item pmemsave @var{addr} @var{size} @var{file} |
692 | 2313086a | Blue Swirl | save to disk physical memory dump starting at @var{addr} of size @var{size}. |
693 | 2313086a | Blue Swirl | ETEXI |
694 | 2313086a | Blue Swirl | |
695 | d7f9b689 | Luiz Capitulino | { |
696 | d7f9b689 | Luiz Capitulino | .name = "boot_set", |
697 | d7f9b689 | Luiz Capitulino | .args_type = "bootdevice:s", |
698 | d7f9b689 | Luiz Capitulino | .params = "bootdevice", |
699 | d7f9b689 | Luiz Capitulino | .help = "define new values for the boot device list", |
700 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_boot_set, |
701 | d7f9b689 | Luiz Capitulino | }, |
702 | d7f9b689 | Luiz Capitulino | |
703 | 2313086a | Blue Swirl | STEXI |
704 | 2313086a | Blue Swirl | @item boot_set @var{bootdevicelist} |
705 | 2313086a | Blue Swirl | |
706 | 2313086a | Blue Swirl | Define new values for the boot device list. Those values will override |
707 | 2313086a | Blue Swirl | the values specified on the command line through the @code{-boot} option. |
708 | 2313086a | Blue Swirl | |
709 | 2313086a | Blue Swirl | The values that can be specified here depend on the machine type, but are |
710 | 2313086a | Blue Swirl | the same that can be specified in the @code{-boot} command line option. |
711 | 2313086a | Blue Swirl | ETEXI |
712 | 2313086a | Blue Swirl | |
713 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
714 | d7f9b689 | Luiz Capitulino | { |
715 | d7f9b689 | Luiz Capitulino | .name = "nmi", |
716 | d7f9b689 | Luiz Capitulino | .args_type = "cpu_index:i", |
717 | d7f9b689 | Luiz Capitulino | .params = "cpu", |
718 | d7f9b689 | Luiz Capitulino | .help = "inject an NMI on the given CPU", |
719 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_inject_nmi, |
720 | d7f9b689 | Luiz Capitulino | }, |
721 | 2313086a | Blue Swirl | #endif |
722 | 2313086a | Blue Swirl | STEXI |
723 | 2313086a | Blue Swirl | @item nmi @var{cpu} |
724 | 2313086a | Blue Swirl | Inject an NMI on the given CPU (x86 only). |
725 | 2313086a | Blue Swirl | ETEXI |
726 | 2313086a | Blue Swirl | |
727 | d7f9b689 | Luiz Capitulino | { |
728 | d7f9b689 | Luiz Capitulino | .name = "migrate", |
729 | fbc3d96c | lirans@il.ibm.com | .args_type = "detach:-d,blk:-b,inc:-i,uri:s", |
730 | fbc3d96c | lirans@il.ibm.com | .params = "[-d] [-b] [-i] uri", |
731 | fbc3d96c | lirans@il.ibm.com | .help = "migrate to URI (using -d to not wait for completion)" |
732 | fbc3d96c | lirans@il.ibm.com | "\n\t\t\t -b for migration without shared storage with" |
733 | fbc3d96c | lirans@il.ibm.com | " full copy of disk\n\t\t\t -i for migration without " |
734 | fbc3d96c | lirans@il.ibm.com | "shared storage with incremental copy of disk " |
735 | fbc3d96c | lirans@il.ibm.com | "(base image shared between src and destination)", |
736 | fbc3d96c | lirans@il.ibm.com | .user_print = monitor_user_noop, |
737 | fbc3d96c | lirans@il.ibm.com | .mhandler.cmd_new = do_migrate, |
738 | d7f9b689 | Luiz Capitulino | }, |
739 | d7f9b689 | Luiz Capitulino | |
740 | fbc3d96c | lirans@il.ibm.com | |
741 | 2313086a | Blue Swirl | STEXI |
742 | fbc3d96c | lirans@il.ibm.com | @item migrate [-d] [-b] [-i] @var{uri} |
743 | 2313086a | Blue Swirl | Migrate to @var{uri} (using -d to not wait for completion). |
744 | fbc3d96c | lirans@il.ibm.com | -b for migration with full copy of disk |
745 | fbc3d96c | lirans@il.ibm.com | -i for migration with incremental copy of disk (base image is shared) |
746 | 2313086a | Blue Swirl | ETEXI |
747 | 2313086a | Blue Swirl | |
748 | d7f9b689 | Luiz Capitulino | { |
749 | d7f9b689 | Luiz Capitulino | .name = "migrate_cancel", |
750 | d7f9b689 | Luiz Capitulino | .args_type = "", |
751 | d7f9b689 | Luiz Capitulino | .params = "", |
752 | d7f9b689 | Luiz Capitulino | .help = "cancel the current VM migration", |
753 | 911d2963 | Luiz Capitulino | .user_print = monitor_user_noop, |
754 | 911d2963 | Luiz Capitulino | .mhandler.cmd_new = do_migrate_cancel, |
755 | d7f9b689 | Luiz Capitulino | }, |
756 | d7f9b689 | Luiz Capitulino | |
757 | 2313086a | Blue Swirl | STEXI |
758 | 2313086a | Blue Swirl | @item migrate_cancel |
759 | 2313086a | Blue Swirl | Cancel the current VM migration. |
760 | 2313086a | Blue Swirl | ETEXI |
761 | 2313086a | Blue Swirl | |
762 | d7f9b689 | Luiz Capitulino | { |
763 | d7f9b689 | Luiz Capitulino | .name = "migrate_set_speed", |
764 | 5667c493 | Markus Armbruster | .args_type = "value:b", |
765 | d7f9b689 | Luiz Capitulino | .params = "value", |
766 | d7f9b689 | Luiz Capitulino | .help = "set maximum speed (in bytes) for migrations", |
767 | 13232b8f | Anthony Liguori | .mhandler.cmd = do_migrate_set_speed, |
768 | d7f9b689 | Luiz Capitulino | }, |
769 | d7f9b689 | Luiz Capitulino | |
770 | 2313086a | Blue Swirl | STEXI |
771 | 2313086a | Blue Swirl | @item migrate_set_speed @var{value} |
772 | 2313086a | Blue Swirl | Set maximum speed to @var{value} (in bytes) for migrations. |
773 | 2313086a | Blue Swirl | ETEXI |
774 | 2313086a | Blue Swirl | |
775 | d7f9b689 | Luiz Capitulino | { |
776 | d7f9b689 | Luiz Capitulino | .name = "migrate_set_downtime", |
777 | d7f9b689 | Luiz Capitulino | .args_type = "value:s", |
778 | d7f9b689 | Luiz Capitulino | .params = "value", |
779 | d7f9b689 | Luiz Capitulino | .help = "set maximum tolerated downtime (in seconds) for migrations", |
780 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_migrate_set_downtime, |
781 | d7f9b689 | Luiz Capitulino | }, |
782 | 2ea42952 | Glauber Costa | |
783 | 2ea42952 | Glauber Costa | STEXI |
784 | 2ea42952 | Glauber Costa | @item migrate_set_downtime @var{second} |
785 | 2ea42952 | Glauber Costa | Set maximum tolerated downtime (in seconds) for migration. |
786 | 2ea42952 | Glauber Costa | ETEXI |
787 | 2ea42952 | Glauber Costa | |
788 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
789 | d7f9b689 | Luiz Capitulino | { |
790 | d7f9b689 | Luiz Capitulino | .name = "drive_add", |
791 | d7f9b689 | Luiz Capitulino | .args_type = "pci_addr:s,opts:s", |
792 | d7f9b689 | Luiz Capitulino | .params = "[[<domain>:]<bus>:]<slot>\n" |
793 | d7f9b689 | Luiz Capitulino | "[file=file][,if=type][,bus=n]\n" |
794 | d7f9b689 | Luiz Capitulino | "[,unit=m][,media=d][index=i]\n" |
795 | d7f9b689 | Luiz Capitulino | "[,cyls=c,heads=h,secs=s[,trans=t]]\n" |
796 | d7f9b689 | Luiz Capitulino | "[snapshot=on|off][,cache=on|off]", |
797 | d7f9b689 | Luiz Capitulino | .help = "add drive to PCI storage controller", |
798 | af4ce882 | Luiz Capitulino | .mhandler.cmd = drive_hot_add, |
799 | d7f9b689 | Luiz Capitulino | }, |
800 | 2313086a | Blue Swirl | #endif |
801 | d7f9b689 | Luiz Capitulino | |
802 | 2313086a | Blue Swirl | STEXI |
803 | 2313086a | Blue Swirl | @item drive_add |
804 | 2313086a | Blue Swirl | Add drive to PCI storage controller. |
805 | 2313086a | Blue Swirl | ETEXI |
806 | 2313086a | Blue Swirl | |
807 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
808 | d7f9b689 | Luiz Capitulino | { |
809 | d7f9b689 | Luiz Capitulino | .name = "pci_add", |
810 | d7f9b689 | Luiz Capitulino | .args_type = "pci_addr:s,type:s,opts:s?", |
811 | d7f9b689 | Luiz Capitulino | .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", |
812 | d7f9b689 | Luiz Capitulino | .help = "hot-add PCI device", |
813 | 7a344f7a | Luiz Capitulino | .user_print = pci_device_hot_add_print, |
814 | 7a344f7a | Luiz Capitulino | .mhandler.cmd_new = pci_device_hot_add, |
815 | d7f9b689 | Luiz Capitulino | }, |
816 | 2313086a | Blue Swirl | #endif |
817 | d7f9b689 | Luiz Capitulino | |
818 | 2313086a | Blue Swirl | STEXI |
819 | 2313086a | Blue Swirl | @item pci_add |
820 | 2313086a | Blue Swirl | Hot-add PCI device. |
821 | 2313086a | Blue Swirl | ETEXI |
822 | 2313086a | Blue Swirl | |
823 | 2313086a | Blue Swirl | #if defined(TARGET_I386) |
824 | d7f9b689 | Luiz Capitulino | { |
825 | d7f9b689 | Luiz Capitulino | .name = "pci_del", |
826 | d7f9b689 | Luiz Capitulino | .args_type = "pci_addr:s", |
827 | d7f9b689 | Luiz Capitulino | .params = "[[<domain>:]<bus>:]<slot>", |
828 | d7f9b689 | Luiz Capitulino | .help = "hot remove PCI device", |
829 | 6848d827 | Luiz Capitulino | .user_print = monitor_user_noop, |
830 | 6848d827 | Luiz Capitulino | .mhandler.cmd_new = do_pci_device_hot_remove, |
831 | d7f9b689 | Luiz Capitulino | }, |
832 | 2313086a | Blue Swirl | #endif |
833 | d7f9b689 | Luiz Capitulino | |
834 | 2313086a | Blue Swirl | STEXI |
835 | 2313086a | Blue Swirl | @item pci_del |
836 | 2313086a | Blue Swirl | Hot remove PCI device. |
837 | 2313086a | Blue Swirl | ETEXI |
838 | 2313086a | Blue Swirl | |
839 | d7f9b689 | Luiz Capitulino | { |
840 | d7f9b689 | Luiz Capitulino | .name = "host_net_add", |
841 | d7f9b689 | Luiz Capitulino | .args_type = "device:s,opts:s?", |
842 | d7f9b689 | Luiz Capitulino | .params = "tap|user|socket|vde|dump [options]", |
843 | d7f9b689 | Luiz Capitulino | .help = "add host VLAN client", |
844 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_host_device_add, |
845 | d7f9b689 | Luiz Capitulino | }, |
846 | d7f9b689 | Luiz Capitulino | |
847 | 2313086a | Blue Swirl | STEXI |
848 | 2313086a | Blue Swirl | @item host_net_add |
849 | 2313086a | Blue Swirl | Add host VLAN client. |
850 | 2313086a | Blue Swirl | ETEXI |
851 | 2313086a | Blue Swirl | |
852 | d7f9b689 | Luiz Capitulino | { |
853 | d7f9b689 | Luiz Capitulino | .name = "host_net_remove", |
854 | d7f9b689 | Luiz Capitulino | .args_type = "vlan_id:i,device:s", |
855 | d7f9b689 | Luiz Capitulino | .params = "vlan_id name", |
856 | d7f9b689 | Luiz Capitulino | .help = "remove host VLAN client", |
857 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_host_device_remove, |
858 | d7f9b689 | Luiz Capitulino | }, |
859 | d7f9b689 | Luiz Capitulino | |
860 | 2313086a | Blue Swirl | STEXI |
861 | 2313086a | Blue Swirl | @item host_net_remove |
862 | 2313086a | Blue Swirl | Remove host VLAN client. |
863 | 2313086a | Blue Swirl | ETEXI |
864 | 2313086a | Blue Swirl | |
865 | 2313086a | Blue Swirl | #ifdef CONFIG_SLIRP |
866 | d7f9b689 | Luiz Capitulino | { |
867 | d7f9b689 | Luiz Capitulino | .name = "hostfwd_add", |
868 | d7f9b689 | Luiz Capitulino | .args_type = "arg1:s,arg2:s?,arg3:s?", |
869 | d7f9b689 | Luiz Capitulino | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport", |
870 | d7f9b689 | Luiz Capitulino | .help = "redirect TCP or UDP connections from host to guest (requires -net user)", |
871 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_slirp_hostfwd_add, |
872 | d7f9b689 | Luiz Capitulino | }, |
873 | d7f9b689 | Luiz Capitulino | |
874 | d7f9b689 | Luiz Capitulino | { |
875 | d7f9b689 | Luiz Capitulino | .name = "hostfwd_remove", |
876 | d7f9b689 | Luiz Capitulino | .args_type = "arg1:s,arg2:s?,arg3:s?", |
877 | d7f9b689 | Luiz Capitulino | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport", |
878 | d7f9b689 | Luiz Capitulino | .help = "remove host-to-guest TCP or UDP redirection", |
879 | af4ce882 | Luiz Capitulino | .mhandler.cmd = net_slirp_hostfwd_remove, |
880 | d7f9b689 | Luiz Capitulino | }, |
881 | d7f9b689 | Luiz Capitulino | |
882 | 2313086a | Blue Swirl | #endif |
883 | 2313086a | Blue Swirl | STEXI |
884 | 2313086a | Blue Swirl | @item host_net_redir |
885 | 2313086a | Blue Swirl | Redirect TCP or UDP connections from host to guest (requires -net user). |
886 | 2313086a | Blue Swirl | ETEXI |
887 | 2313086a | Blue Swirl | |
888 | d7f9b689 | Luiz Capitulino | { |
889 | d7f9b689 | Luiz Capitulino | .name = "balloon", |
890 | 3b0bd6ec | Luiz Capitulino | .args_type = "value:M", |
891 | d7f9b689 | Luiz Capitulino | .params = "target", |
892 | d7f9b689 | Luiz Capitulino | .help = "request VM to change it's memory allocation (in MB)", |
893 | 83fb1de2 | Luiz Capitulino | .user_print = monitor_user_noop, |
894 | 625a5bef | Adam Litke | .mhandler.cmd_async = do_balloon, |
895 | 625a5bef | Adam Litke | .async = 1, |
896 | d7f9b689 | Luiz Capitulino | }, |
897 | d7f9b689 | Luiz Capitulino | |
898 | 2313086a | Blue Swirl | STEXI |
899 | 2313086a | Blue Swirl | @item balloon @var{value} |
900 | 2313086a | Blue Swirl | Request VM to change its memory allocation to @var{value} (in MB). |
901 | 2313086a | Blue Swirl | ETEXI |
902 | 2313086a | Blue Swirl | |
903 | d7f9b689 | Luiz Capitulino | { |
904 | d7f9b689 | Luiz Capitulino | .name = "set_link", |
905 | d7f9b689 | Luiz Capitulino | .args_type = "name:s,up_or_down:s", |
906 | d7f9b689 | Luiz Capitulino | .params = "name up|down", |
907 | d7f9b689 | Luiz Capitulino | .help = "change the link status of a network adapter", |
908 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_set_link, |
909 | d7f9b689 | Luiz Capitulino | }, |
910 | d7f9b689 | Luiz Capitulino | |
911 | 2313086a | Blue Swirl | STEXI |
912 | 2313086a | Blue Swirl | @item set_link @var{name} [up|down] |
913 | 2313086a | Blue Swirl | Set link @var{name} up or down. |
914 | 2313086a | Blue Swirl | ETEXI |
915 | 2313086a | Blue Swirl | |
916 | d7f9b689 | Luiz Capitulino | { |
917 | d7f9b689 | Luiz Capitulino | .name = "watchdog_action", |
918 | d7f9b689 | Luiz Capitulino | .args_type = "action:s", |
919 | d7f9b689 | Luiz Capitulino | .params = "[reset|shutdown|poweroff|pause|debug|none]", |
920 | d7f9b689 | Luiz Capitulino | .help = "change watchdog action", |
921 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_watchdog_action, |
922 | d7f9b689 | Luiz Capitulino | }, |
923 | d7f9b689 | Luiz Capitulino | |
924 | 2313086a | Blue Swirl | STEXI |
925 | 2313086a | Blue Swirl | @item watchdog_action |
926 | 2313086a | Blue Swirl | Change watchdog action. |
927 | 2313086a | Blue Swirl | ETEXI |
928 | 2313086a | Blue Swirl | |
929 | d7f9b689 | Luiz Capitulino | { |
930 | d7f9b689 | Luiz Capitulino | .name = "acl_show", |
931 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s", |
932 | d7f9b689 | Luiz Capitulino | .params = "aclname", |
933 | d7f9b689 | Luiz Capitulino | .help = "list rules in the access control list", |
934 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_show, |
935 | d7f9b689 | Luiz Capitulino | }, |
936 | d7f9b689 | Luiz Capitulino | |
937 | 2313086a | Blue Swirl | STEXI |
938 | 15dfcd45 | Jan Kiszka | @item acl_show @var{aclname} |
939 | 15dfcd45 | Jan Kiszka | List all the matching rules in the access control list, and the default |
940 | 15dfcd45 | Jan Kiszka | policy. There are currently two named access control lists, |
941 | 15dfcd45 | Jan Kiszka | @var{vnc.x509dname} and @var{vnc.username} matching on the x509 client |
942 | 15dfcd45 | Jan Kiszka | certificate distinguished name, and SASL username respectively. |
943 | 15dfcd45 | Jan Kiszka | ETEXI |
944 | 2313086a | Blue Swirl | |
945 | d7f9b689 | Luiz Capitulino | { |
946 | d7f9b689 | Luiz Capitulino | .name = "acl_policy", |
947 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s,policy:s", |
948 | d7f9b689 | Luiz Capitulino | .params = "aclname allow|deny", |
949 | d7f9b689 | Luiz Capitulino | .help = "set default access control list policy", |
950 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_policy, |
951 | d7f9b689 | Luiz Capitulino | }, |
952 | d7f9b689 | Luiz Capitulino | |
953 | 15dfcd45 | Jan Kiszka | STEXI |
954 | cbbfacc6 | Jan Kiszka | @item acl_policy @var{aclname} @code{allow|deny} |
955 | 15dfcd45 | Jan Kiszka | Set the default access control list policy, used in the event that |
956 | 2313086a | Blue Swirl | none of the explicit rules match. The default policy at startup is |
957 | 15dfcd45 | Jan Kiszka | always @code{deny}. |
958 | 15dfcd45 | Jan Kiszka | ETEXI |
959 | 15dfcd45 | Jan Kiszka | |
960 | d7f9b689 | Luiz Capitulino | { |
961 | d7f9b689 | Luiz Capitulino | .name = "acl_add", |
962 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s,match:s,policy:s,index:i?", |
963 | d7f9b689 | Luiz Capitulino | .params = "aclname match allow|deny [index]", |
964 | d7f9b689 | Luiz Capitulino | .help = "add a match rule to the access control list", |
965 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_add, |
966 | d7f9b689 | Luiz Capitulino | }, |
967 | d7f9b689 | Luiz Capitulino | |
968 | 15dfcd45 | Jan Kiszka | STEXI |
969 | 15dfcd45 | Jan Kiszka | @item acl_allow @var{aclname} @var{match} @code{allow|deny} [@var{index}] |
970 | 15dfcd45 | Jan Kiszka | Add a match rule to the access control list, allowing or denying access. |
971 | 15dfcd45 | Jan Kiszka | The match will normally be an exact username or x509 distinguished name, |
972 | 15dfcd45 | Jan Kiszka | but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to |
973 | 15dfcd45 | Jan Kiszka | allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will |
974 | 2313086a | Blue Swirl | normally be appended to the end of the ACL, but can be inserted |
975 | 15dfcd45 | Jan Kiszka | earlier in the list if the optional @var{index} parameter is supplied. |
976 | 15dfcd45 | Jan Kiszka | ETEXI |
977 | 15dfcd45 | Jan Kiszka | |
978 | d7f9b689 | Luiz Capitulino | { |
979 | d7f9b689 | Luiz Capitulino | .name = "acl_remove", |
980 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s,match:s", |
981 | d7f9b689 | Luiz Capitulino | .params = "aclname match", |
982 | d7f9b689 | Luiz Capitulino | .help = "remove a match rule from the access control list", |
983 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_remove, |
984 | d7f9b689 | Luiz Capitulino | }, |
985 | d7f9b689 | Luiz Capitulino | |
986 | 15dfcd45 | Jan Kiszka | STEXI |
987 | 15dfcd45 | Jan Kiszka | @item acl_remove @var{aclname} @var{match} |
988 | 15dfcd45 | Jan Kiszka | Remove the specified match rule from the access control list. |
989 | 15dfcd45 | Jan Kiszka | ETEXI |
990 | 15dfcd45 | Jan Kiszka | |
991 | d7f9b689 | Luiz Capitulino | { |
992 | d7f9b689 | Luiz Capitulino | .name = "acl_reset", |
993 | d7f9b689 | Luiz Capitulino | .args_type = "aclname:s", |
994 | d7f9b689 | Luiz Capitulino | .params = "aclname", |
995 | d7f9b689 | Luiz Capitulino | .help = "reset the access control list", |
996 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_acl_reset, |
997 | d7f9b689 | Luiz Capitulino | }, |
998 | d7f9b689 | Luiz Capitulino | |
999 | 15dfcd45 | Jan Kiszka | STEXI |
1000 | 15dfcd45 | Jan Kiszka | @item acl_remove @var{aclname} @var{match} |
1001 | 15dfcd45 | Jan Kiszka | Remove all matches from the access control list, and set the default |
1002 | 2313086a | Blue Swirl | policy back to @code{deny}. |
1003 | 2313086a | Blue Swirl | ETEXI |
1004 | 2313086a | Blue Swirl | |
1005 | 79c4f6b0 | Huang Ying | #if defined(TARGET_I386) |
1006 | d7f9b689 | Luiz Capitulino | |
1007 | d7f9b689 | Luiz Capitulino | { |
1008 | d7f9b689 | Luiz Capitulino | .name = "mce", |
1009 | d7f9b689 | Luiz Capitulino | .args_type = "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", |
1010 | d7f9b689 | Luiz Capitulino | .params = "cpu bank status mcgstatus addr misc", |
1011 | d7f9b689 | Luiz Capitulino | .help = "inject a MCE on the given CPU", |
1012 | af4ce882 | Luiz Capitulino | .mhandler.cmd = do_inject_mce, |
1013 | d7f9b689 | Luiz Capitulino | }, |
1014 | d7f9b689 | Luiz Capitulino | |
1015 | 79c4f6b0 | Huang Ying | #endif |
1016 | 79c4f6b0 | Huang Ying | STEXI |
1017 | 79c4f6b0 | Huang Ying | @item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc} |
1018 | 79c4f6b0 | Huang Ying | Inject an MCE on the given CPU (x86 only). |
1019 | 79c4f6b0 | Huang Ying | ETEXI |
1020 | 79c4f6b0 | Huang Ying | |
1021 | d7f9b689 | Luiz Capitulino | { |
1022 | d7f9b689 | Luiz Capitulino | .name = "getfd", |
1023 | d7f9b689 | Luiz Capitulino | .args_type = "fdname:s", |
1024 | d7f9b689 | Luiz Capitulino | .params = "getfd name", |
1025 | d7f9b689 | Luiz Capitulino | .help = "receive a file descriptor via SCM rights and assign it a name", |
1026 | f0d6000a | Luiz Capitulino | .user_print = monitor_user_noop, |
1027 | f0d6000a | Luiz Capitulino | .mhandler.cmd_new = do_getfd, |
1028 | d7f9b689 | Luiz Capitulino | }, |
1029 | d7f9b689 | Luiz Capitulino | |
1030 | f07918fd | Mark McLoughlin | STEXI |
1031 | f07918fd | Mark McLoughlin | @item getfd @var{fdname} |
1032 | f07918fd | Mark McLoughlin | If a file descriptor is passed alongside this command using the SCM_RIGHTS |
1033 | f07918fd | Mark McLoughlin | mechanism on unix sockets, it is stored using the name @var{fdname} for |
1034 | f07918fd | Mark McLoughlin | later use by other monitor commands. |
1035 | f07918fd | Mark McLoughlin | ETEXI |
1036 | f07918fd | Mark McLoughlin | |
1037 | d7f9b689 | Luiz Capitulino | { |
1038 | d7f9b689 | Luiz Capitulino | .name = "closefd", |
1039 | d7f9b689 | Luiz Capitulino | .args_type = "fdname:s", |
1040 | d7f9b689 | Luiz Capitulino | .params = "closefd name", |
1041 | d7f9b689 | Luiz Capitulino | .help = "close a file descriptor previously passed via SCM rights", |
1042 | 18f3a515 | Luiz Capitulino | .user_print = monitor_user_noop, |
1043 | 18f3a515 | Luiz Capitulino | .mhandler.cmd_new = do_closefd, |
1044 | d7f9b689 | Luiz Capitulino | }, |
1045 | d7f9b689 | Luiz Capitulino | |
1046 | f07918fd | Mark McLoughlin | STEXI |
1047 | f07918fd | Mark McLoughlin | @item closefd @var{fdname} |
1048 | f07918fd | Mark McLoughlin | Close the file descriptor previously assigned to @var{fdname} using the |
1049 | f07918fd | Mark McLoughlin | @code{getfd} command. This is only needed if the file descriptor was never |
1050 | f07918fd | Mark McLoughlin | used by another monitor command. |
1051 | f07918fd | Mark McLoughlin | ETEXI |
1052 | f07918fd | Mark McLoughlin | |
1053 | a3a55a2e | Luiz Capitulino | { |
1054 | a3a55a2e | Luiz Capitulino | .name = "block_passwd", |
1055 | a3a55a2e | Luiz Capitulino | .args_type = "device:B,password:s", |
1056 | a3a55a2e | Luiz Capitulino | .params = "block_passwd device password", |
1057 | a3a55a2e | Luiz Capitulino | .help = "set the password of encrypted block devices", |
1058 | a3a55a2e | Luiz Capitulino | .user_print = monitor_user_noop, |
1059 | a3a55a2e | Luiz Capitulino | .mhandler.cmd_new = do_block_set_passwd, |
1060 | a3a55a2e | Luiz Capitulino | }, |
1061 | a3a55a2e | Luiz Capitulino | |
1062 | a3a55a2e | Luiz Capitulino | STEXI |
1063 | a3a55a2e | Luiz Capitulino | @item block_passwd @var{device} @var{password} |
1064 | a3a55a2e | Luiz Capitulino | Set the encrypted device @var{device} password to @var{password} |
1065 | a3a55a2e | Luiz Capitulino | ETEXI |
1066 | a3a55a2e | Luiz Capitulino | |
1067 | 2313086a | Blue Swirl | STEXI |
1068 | 2313086a | Blue Swirl | @end table |
1069 | 2313086a | Blue Swirl | ETEXI |