Statistics
| Branch: | Revision:

root / qemu-monitor.hx @ b53d44e5

History | View | Annotate | Download (19.2 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 4d76d2ba Luiz Capitulino
    { "help|?", "name:s?", do_help_cmd, "[cmd]", "show the help" },
13 2313086a Blue Swirl
STEXI
14 2313086a Blue Swirl
@item help or ? [@var{cmd}]
15 2313086a Blue Swirl
Show the help for all commands or just for command @var{cmd}.
16 2313086a Blue Swirl
ETEXI
17 2313086a Blue Swirl
18 075e36b8 Luiz Capitulino
    { "commit", "device:B", do_commit,
19 2313086a Blue Swirl
      "device|all", "commit changes to the disk images (if -snapshot is used) or backing files" },
20 2313086a Blue Swirl
STEXI
21 2313086a Blue Swirl
@item commit
22 2313086a Blue Swirl
Commit changes to the disk images (if -snapshot is used) or backing files.
23 2313086a Blue Swirl
ETEXI
24 2313086a Blue Swirl
25 4d76d2ba Luiz Capitulino
    { "info", "item:s?", do_info,
26 2313086a Blue Swirl
      "[subcommand]", "show various information about the system state" },
27 2313086a Blue Swirl
STEXI
28 2313086a Blue Swirl
@item info @var{subcommand}
29 2313086a Blue Swirl
Show various information about the system state.
30 2313086a Blue Swirl
31 2313086a Blue Swirl
@table @option
32 2313086a Blue Swirl
@item info version
33 2313086a Blue Swirl
show the version of QEMU
34 2313086a Blue Swirl
@item info network
35 2313086a Blue Swirl
show the various VLANs and the associated devices
36 2313086a Blue Swirl
@item info chardev
37 2313086a Blue Swirl
show the character devices
38 2313086a Blue Swirl
@item info block
39 2313086a Blue Swirl
show the block devices
40 2313086a Blue Swirl
@item info block
41 2313086a Blue Swirl
show block device statistics
42 2313086a Blue Swirl
@item info registers
43 2313086a Blue Swirl
show the cpu registers
44 2313086a Blue Swirl
@item info cpus
45 2313086a Blue Swirl
show infos for each CPU
46 2313086a Blue Swirl
@item info history
47 2313086a Blue Swirl
show the command line history
48 2313086a Blue Swirl
@item info irq
49 2313086a Blue Swirl
show the interrupts statistics (if available)
50 2313086a Blue Swirl
@item info pic
51 2313086a Blue Swirl
show i8259 (PIC) state
52 2313086a Blue Swirl
@item info pci
53 2313086a Blue Swirl
show emulated PCI device info
54 2313086a Blue Swirl
@item info tlb
55 2313086a Blue Swirl
show virtual to physical memory mappings (i386 only)
56 2313086a Blue Swirl
@item info mem
57 2313086a Blue Swirl
show the active virtual memory mappings (i386 only)
58 2313086a Blue Swirl
@item info hpet
59 2313086a Blue Swirl
show state of HPET (i386 only)
60 2313086a Blue Swirl
@item info kvm
61 2313086a Blue Swirl
show KVM information
62 2313086a Blue Swirl
@item info usb
63 2313086a Blue Swirl
show USB devices plugged on the virtual USB hub
64 2313086a Blue Swirl
@item info usbhost
65 2313086a Blue Swirl
show all USB host devices
66 2313086a Blue Swirl
@item info profile
67 2313086a Blue Swirl
show profiling information
68 2313086a Blue Swirl
@item info capture
69 2313086a Blue Swirl
show information about active capturing
70 2313086a Blue Swirl
@item info snapshots
71 2313086a Blue Swirl
show list of VM snapshots
72 2313086a Blue Swirl
@item info status
73 2313086a Blue Swirl
show the current VM status (running|paused)
74 2313086a Blue Swirl
@item info pcmcia
75 2313086a Blue Swirl
show guest PCMCIA status
76 2313086a Blue Swirl
@item info mice
77 2313086a Blue Swirl
show which guest mouse is receiving events
78 2313086a Blue Swirl
@item info vnc
79 2313086a Blue Swirl
show the vnc server status
80 2313086a Blue Swirl
@item info name
81 2313086a Blue Swirl
show the current VM name
82 2313086a Blue Swirl
@item info uuid
83 2313086a Blue Swirl
show the current VM UUID
84 2313086a Blue Swirl
@item info cpustats
85 2313086a Blue Swirl
show CPU statistics
86 6dbe553f Jan Kiszka
@item info usernet
87 6dbe553f Jan Kiszka
show user network stack connection states
88 2313086a Blue Swirl
@item info migrate
89 2313086a Blue Swirl
show migration status
90 2313086a Blue Swirl
@item info balloon
91 2313086a Blue Swirl
show balloon information
92 2313086a Blue Swirl
@item info qtree
93 2313086a Blue Swirl
show device tree
94 2313086a Blue Swirl
@end table
95 2313086a Blue Swirl
ETEXI
96 2313086a Blue Swirl
97 2313086a Blue Swirl
    { "q|quit", "", do_quit,
98 2313086a Blue Swirl
      "", "quit the emulator" },
99 2313086a Blue Swirl
STEXI
100 2313086a Blue Swirl
@item q or quit
101 2313086a Blue Swirl
Quit the emulator.
102 2313086a Blue Swirl
ETEXI
103 2313086a Blue Swirl
104 4d76d2ba Luiz Capitulino
    { "eject", "force:-f,filename:B", do_eject,
105 2313086a Blue Swirl
      "[-f] device", "eject a removable medium (use -f to force it)" },
106 2313086a Blue Swirl
STEXI
107 2313086a Blue Swirl
@item eject [-f] @var{device}
108 2313086a Blue Swirl
Eject a removable medium (use -f to force it).
109 2313086a Blue Swirl
ETEXI
110 2313086a Blue Swirl
111 4d76d2ba Luiz Capitulino
    { "change", "device:B,target:F,arg:s?", do_change,
112 2313086a Blue Swirl
      "device filename [format]", "change a removable medium, optional format" },
113 2313086a Blue Swirl
STEXI
114 2313086a Blue Swirl
@item change @var{device} @var{setting}
115 2313086a Blue Swirl
116 2313086a Blue Swirl
Change the configuration of a device.
117 2313086a Blue Swirl
118 2313086a Blue Swirl
@table @option
119 2313086a Blue Swirl
@item change @var{diskdevice} @var{filename} [@var{format}]
120 2313086a Blue Swirl
Change the medium for a removable disk device to point to @var{filename}. eg
121 2313086a Blue Swirl
122 2313086a Blue Swirl
@example
123 2313086a Blue Swirl
(qemu) change ide1-cd0 /path/to/some.iso
124 2313086a Blue Swirl
@end example
125 2313086a Blue Swirl
126 2313086a Blue Swirl
@var{format} is optional.
127 2313086a Blue Swirl
128 2313086a Blue Swirl
@item change vnc @var{display},@var{options}
129 2313086a Blue Swirl
Change the configuration of the VNC server. The valid syntax for @var{display}
130 2313086a Blue Swirl
and @var{options} are described at @ref{sec_invocation}. eg
131 2313086a Blue Swirl
132 2313086a Blue Swirl
@example
133 2313086a Blue Swirl
(qemu) change vnc localhost:1
134 2313086a Blue Swirl
@end example
135 2313086a Blue Swirl
136 2313086a Blue Swirl
@item change vnc password [@var{password}]
137 2313086a Blue Swirl
138 2313086a Blue Swirl
Change the password associated with the VNC server. If the new password is not
139 2313086a Blue Swirl
supplied, the monitor will prompt for it to be entered. VNC passwords are only
140 2313086a Blue Swirl
significant up to 8 letters. eg
141 2313086a Blue Swirl
142 2313086a Blue Swirl
@example
143 2313086a Blue Swirl
(qemu) change vnc password
144 2313086a Blue Swirl
Password: ********
145 2313086a Blue Swirl
@end example
146 2313086a Blue Swirl
147 2313086a Blue Swirl
@end table
148 2313086a Blue Swirl
ETEXI
149 2313086a Blue Swirl
150 4d76d2ba Luiz Capitulino
    { "screendump", "filename:F", do_screen_dump,
151 2313086a Blue Swirl
      "filename", "save screen into PPM image 'filename'" },
152 2313086a Blue Swirl
STEXI
153 2313086a Blue Swirl
@item screendump @var{filename}
154 2313086a Blue Swirl
Save screen into PPM image @var{filename}.
155 2313086a Blue Swirl
ETEXI
156 2313086a Blue Swirl
157 4d76d2ba Luiz Capitulino
    { "logfile", "filename:F", do_logfile,
158 2313086a Blue Swirl
      "filename", "output logs to 'filename'" },
159 2313086a Blue Swirl
STEXI
160 2313086a Blue Swirl
@item logfile @var{filename}
161 2313086a Blue Swirl
Output logs to @var{filename}.
162 2313086a Blue Swirl
ETEXI
163 2313086a Blue Swirl
164 4d76d2ba Luiz Capitulino
    { "log", "items:s", do_log,
165 2313086a Blue Swirl
      "item1[,...]", "activate logging of the specified items to '/tmp/qemu.log'" },
166 2313086a Blue Swirl
STEXI
167 2313086a Blue Swirl
@item log @var{item1}[,...]
168 2313086a Blue Swirl
Activate logging of the specified items to @file{/tmp/qemu.log}.
169 2313086a Blue Swirl
ETEXI
170 2313086a Blue Swirl
171 4d76d2ba Luiz Capitulino
    { "savevm", "name:s?", do_savevm,
172 2313086a Blue Swirl
      "[tag|id]", "save a VM snapshot. If no tag or id are provided, a new snapshot is created" },
173 2313086a Blue Swirl
STEXI
174 2313086a Blue Swirl
@item savevm [@var{tag}|@var{id}]
175 2313086a Blue Swirl
Create a snapshot of the whole virtual machine. If @var{tag} is
176 2313086a Blue Swirl
provided, it is used as human readable identifier. If there is already
177 2313086a Blue Swirl
a snapshot with the same tag or ID, it is replaced. More info at
178 2313086a Blue Swirl
@ref{vm_snapshots}.
179 2313086a Blue Swirl
ETEXI
180 2313086a Blue Swirl
181 4d76d2ba Luiz Capitulino
    { "loadvm", "name:s", do_loadvm,
182 2313086a Blue Swirl
      "tag|id", "restore a VM snapshot from its tag or id" },
183 2313086a Blue Swirl
STEXI
184 2313086a Blue Swirl
@item loadvm @var{tag}|@var{id}
185 2313086a Blue Swirl
Set the whole virtual machine to the snapshot identified by the tag
186 2313086a Blue Swirl
@var{tag} or the unique snapshot ID @var{id}.
187 2313086a Blue Swirl
ETEXI
188 2313086a Blue Swirl
189 4d76d2ba Luiz Capitulino
    { "delvm", "name:s", do_delvm,
190 2313086a Blue Swirl
      "tag|id", "delete a VM snapshot from its tag or id" },
191 2313086a Blue Swirl
STEXI
192 2313086a Blue Swirl
@item delvm @var{tag}|@var{id}
193 2313086a Blue Swirl
Delete the snapshot identified by @var{tag} or @var{id}.
194 2313086a Blue Swirl
ETEXI
195 2313086a Blue Swirl
196 4d76d2ba Luiz Capitulino
    { "singlestep", "option:s?", do_singlestep,
197 2313086a Blue Swirl
      "[on|off]", "run emulation in singlestep mode or switch to normal mode", },
198 2313086a Blue Swirl
STEXI
199 2313086a Blue Swirl
@item singlestep [off]
200 2313086a Blue Swirl
Run the emulation in single step mode.
201 2313086a Blue Swirl
If called with option off, the emulation returns to normal mode.
202 2313086a Blue Swirl
ETEXI
203 2313086a Blue Swirl
204 2313086a Blue Swirl
    { "stop", "", do_stop,
205 2313086a Blue Swirl
      "", "stop emulation", },
206 2313086a Blue Swirl
STEXI
207 2313086a Blue Swirl
@item stop
208 2313086a Blue Swirl
Stop emulation.
209 2313086a Blue Swirl
ETEXI
210 2313086a Blue Swirl
211 2313086a Blue Swirl
    { "c|cont", "", do_cont,
212 2313086a Blue Swirl
      "", "resume emulation", },
213 2313086a Blue Swirl
STEXI
214 2313086a Blue Swirl
@item c or cont
215 2313086a Blue Swirl
Resume emulation.
216 2313086a Blue Swirl
ETEXI
217 2313086a Blue Swirl
218 4d76d2ba Luiz Capitulino
    { "gdbserver", "device:s?", do_gdbserver,
219 2313086a Blue Swirl
      "[device]", "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", },
220 2313086a Blue Swirl
STEXI
221 2313086a Blue Swirl
@item gdbserver [@var{port}]
222 2313086a Blue Swirl
Start gdbserver session (default @var{port}=1234)
223 2313086a Blue Swirl
ETEXI
224 2313086a Blue Swirl
225 4d76d2ba Luiz Capitulino
    { "x", "fmt:/,addr:l", do_memory_dump,
226 2313086a Blue Swirl
      "/fmt addr", "virtual memory dump starting at 'addr'", },
227 2313086a Blue Swirl
STEXI
228 2313086a Blue Swirl
@item x/fmt @var{addr}
229 2313086a Blue Swirl
Virtual memory dump starting at @var{addr}.
230 2313086a Blue Swirl
ETEXI
231 2313086a Blue Swirl
232 4d76d2ba Luiz Capitulino
    { "xp", "fmt:/,addr:l", do_physical_memory_dump,
233 2313086a Blue Swirl
      "/fmt addr", "physical memory dump starting at 'addr'", },
234 2313086a Blue Swirl
STEXI
235 2313086a Blue Swirl
@item xp /@var{fmt} @var{addr}
236 2313086a Blue Swirl
Physical memory dump starting at @var{addr}.
237 2313086a Blue Swirl
238 2313086a Blue Swirl
@var{fmt} is a format which tells the command how to format the
239 2313086a Blue Swirl
data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
240 2313086a Blue Swirl
241 2313086a Blue Swirl
@table @var
242 2313086a Blue Swirl
@item count
243 2313086a Blue Swirl
is the number of items to be dumped.
244 2313086a Blue Swirl
245 2313086a Blue Swirl
@item format
246 2313086a Blue Swirl
can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
247 2313086a Blue Swirl
c (char) or i (asm instruction).
248 2313086a Blue Swirl
249 2313086a Blue Swirl
@item size
250 2313086a Blue Swirl
can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
251 2313086a Blue Swirl
@code{h} or @code{w} can be specified with the @code{i} format to
252 2313086a Blue Swirl
respectively select 16 or 32 bit code instruction size.
253 2313086a Blue Swirl
254 2313086a Blue Swirl
@end table
255 2313086a Blue Swirl
256 2313086a Blue Swirl
Examples:
257 2313086a Blue Swirl
@itemize
258 2313086a Blue Swirl
@item
259 2313086a Blue Swirl
Dump 10 instructions at the current instruction pointer:
260 2313086a Blue Swirl
@example
261 2313086a Blue Swirl
(qemu) x/10i $eip
262 2313086a Blue Swirl
0x90107063:  ret
263 2313086a Blue Swirl
0x90107064:  sti
264 2313086a Blue Swirl
0x90107065:  lea    0x0(%esi,1),%esi
265 2313086a Blue Swirl
0x90107069:  lea    0x0(%edi,1),%edi
266 2313086a Blue Swirl
0x90107070:  ret
267 2313086a Blue Swirl
0x90107071:  jmp    0x90107080
268 2313086a Blue Swirl
0x90107073:  nop
269 2313086a Blue Swirl
0x90107074:  nop
270 2313086a Blue Swirl
0x90107075:  nop
271 2313086a Blue Swirl
0x90107076:  nop
272 2313086a Blue Swirl
@end example
273 2313086a Blue Swirl
274 2313086a Blue Swirl
@item
275 2313086a Blue Swirl
Dump 80 16 bit values at the start of the video memory.
276 2313086a Blue Swirl
@smallexample
277 2313086a Blue Swirl
(qemu) xp/80hx 0xb8000
278 2313086a Blue Swirl
0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
279 2313086a Blue Swirl
0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
280 2313086a Blue Swirl
0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
281 2313086a Blue Swirl
0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
282 2313086a Blue Swirl
0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
283 2313086a Blue Swirl
0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
284 2313086a Blue Swirl
0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
285 2313086a Blue Swirl
0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
286 2313086a Blue Swirl
0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
287 2313086a Blue Swirl
0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
288 2313086a Blue Swirl
@end smallexample
289 2313086a Blue Swirl
@end itemize
290 2313086a Blue Swirl
ETEXI
291 2313086a Blue Swirl
292 4d76d2ba Luiz Capitulino
    { "p|print", "fmt:/,val:l", do_print,
293 2313086a Blue Swirl
      "/fmt expr", "print expression value (use $reg for CPU register access)", },
294 2313086a Blue Swirl
STEXI
295 2313086a Blue Swirl
@item p or print/@var{fmt} @var{expr}
296 2313086a Blue Swirl
297 2313086a Blue Swirl
Print expression value. Only the @var{format} part of @var{fmt} is
298 2313086a Blue Swirl
used.
299 2313086a Blue Swirl
ETEXI
300 2313086a Blue Swirl
301 4d76d2ba Luiz Capitulino
    { "i", "fmt:/,addr:i,index:i.", do_ioport_read,
302 2313086a Blue Swirl
      "/fmt addr", "I/O port read" },
303 2313086a Blue Swirl
STEXI
304 2313086a Blue Swirl
Read I/O port.
305 2313086a Blue Swirl
ETEXI
306 2313086a Blue Swirl
307 4d76d2ba Luiz Capitulino
    { "o", "fmt:/,addr:i,val:i", do_ioport_write,
308 f114784f Jan Kiszka
      "/fmt addr value", "I/O port write" },
309 f114784f Jan Kiszka
STEXI
310 f114784f Jan Kiszka
Write to I/O port.
311 f114784f Jan Kiszka
ETEXI
312 2313086a Blue Swirl
313 4d76d2ba Luiz Capitulino
    { "sendkey", "string:s,hold_time:i?", do_sendkey,
314 2313086a Blue Swirl
      "keys [hold_ms]", "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)" },
315 2313086a Blue Swirl
STEXI
316 2313086a Blue Swirl
@item sendkey @var{keys}
317 2313086a Blue Swirl
318 2313086a Blue Swirl
Send @var{keys} to the emulator. @var{keys} could be the name of the
319 2313086a Blue Swirl
key or @code{#} followed by the raw value in either decimal or hexadecimal
320 2313086a Blue Swirl
format. Use @code{-} to press several keys simultaneously. Example:
321 2313086a Blue Swirl
@example
322 2313086a Blue Swirl
sendkey ctrl-alt-f1
323 2313086a Blue Swirl
@end example
324 2313086a Blue Swirl
325 2313086a Blue Swirl
This command is useful to send keys that your graphical user interface
326 2313086a Blue Swirl
intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
327 2313086a Blue Swirl
ETEXI
328 2313086a Blue Swirl
329 2313086a Blue Swirl
    { "system_reset", "", do_system_reset,
330 2313086a Blue Swirl
      "", "reset the system" },
331 2313086a Blue Swirl
STEXI
332 2313086a Blue Swirl
@item system_reset
333 2313086a Blue Swirl
334 2313086a Blue Swirl
Reset the system.
335 2313086a Blue Swirl
ETEXI
336 2313086a Blue Swirl
337 2313086a Blue Swirl
    { "system_powerdown", "", do_system_powerdown,
338 2313086a Blue Swirl
      "", "send system power down event" },
339 2313086a Blue Swirl
STEXI
340 2313086a Blue Swirl
@item system_powerdown
341 2313086a Blue Swirl
342 2313086a Blue Swirl
Power down the system (if supported).
343 2313086a Blue Swirl
ETEXI
344 2313086a Blue Swirl
345 4d76d2ba Luiz Capitulino
    { "sum", "start:i,size:i", do_sum,
346 2313086a Blue Swirl
      "addr size", "compute the checksum of a memory region" },
347 2313086a Blue Swirl
STEXI
348 2313086a Blue Swirl
@item sum @var{addr} @var{size}
349 2313086a Blue Swirl
350 2313086a Blue Swirl
Compute the checksum of a memory region.
351 2313086a Blue Swirl
ETEXI
352 2313086a Blue Swirl
353 4d76d2ba Luiz Capitulino
    { "usb_add", "devname:s", do_usb_add,
354 2313086a Blue Swirl
      "device", "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')" },
355 2313086a Blue Swirl
STEXI
356 2313086a Blue Swirl
@item usb_add @var{devname}
357 2313086a Blue Swirl
358 2313086a Blue Swirl
Add the USB device @var{devname}.  For details of available devices see
359 2313086a Blue Swirl
@ref{usb_devices}
360 2313086a Blue Swirl
ETEXI
361 2313086a Blue Swirl
362 4d76d2ba Luiz Capitulino
    { "usb_del", "devname:s", do_usb_del,
363 2313086a Blue Swirl
      "device", "remove USB device 'bus.addr'" },
364 2313086a Blue Swirl
STEXI
365 2313086a Blue Swirl
@item usb_del @var{devname}
366 2313086a Blue Swirl
367 2313086a Blue Swirl
Remove the USB device @var{devname} from the QEMU virtual USB
368 2313086a Blue Swirl
hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
369 2313086a Blue Swirl
command @code{info usb} to see the devices you can remove.
370 2313086a Blue Swirl
ETEXI
371 2313086a Blue Swirl
372 4d76d2ba Luiz Capitulino
    { "cpu", "index:i", do_cpu_set,
373 2313086a Blue Swirl
      "index", "set the default CPU" },
374 2313086a Blue Swirl
STEXI
375 2313086a Blue Swirl
Set the default CPU.
376 2313086a Blue Swirl
ETEXI
377 2313086a Blue Swirl
378 4d76d2ba Luiz Capitulino
    { "mouse_move", "dx_str:s,dy_str:s,dz_str:s?", do_mouse_move,
379 2313086a Blue Swirl
      "dx dy [dz]", "send mouse move events" },
380 2313086a Blue Swirl
STEXI
381 2313086a Blue Swirl
@item mouse_move @var{dx} @var{dy} [@var{dz}]
382 2313086a Blue Swirl
Move the active mouse to the specified coordinates @var{dx} @var{dy}
383 2313086a Blue Swirl
with optional scroll axis @var{dz}.
384 2313086a Blue Swirl
ETEXI
385 2313086a Blue Swirl
386 4d76d2ba Luiz Capitulino
    { "mouse_button", "button_state:i", do_mouse_button,
387 2313086a Blue Swirl
      "state", "change mouse button state (1=L, 2=M, 4=R)" },
388 2313086a Blue Swirl
STEXI
389 2313086a Blue Swirl
@item mouse_button @var{val}
390 2313086a Blue Swirl
Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
391 2313086a Blue Swirl
ETEXI
392 2313086a Blue Swirl
393 4d76d2ba Luiz Capitulino
    { "mouse_set", "index:i", do_mouse_set,
394 2313086a Blue Swirl
      "index", "set which mouse device receives events" },
395 2313086a Blue Swirl
STEXI
396 2313086a Blue Swirl
@item mouse_set @var{index}
397 2313086a Blue Swirl
Set which mouse device receives events at given @var{index}, index
398 2313086a Blue Swirl
can be obtained with
399 2313086a Blue Swirl
@example
400 2313086a Blue Swirl
info mice
401 2313086a Blue Swirl
@end example
402 2313086a Blue Swirl
ETEXI
403 2313086a Blue Swirl
404 2313086a Blue Swirl
#ifdef HAS_AUDIO
405 e0fed6cc Luiz Capitulino
    { "wavcapture", "path:F,freq:i?,bits:i?,nchannels:i?", do_wav_capture,
406 2313086a Blue Swirl
      "path [frequency [bits [channels]]]",
407 2313086a Blue Swirl
      "capture audio to a wave file (default frequency=44100 bits=16 channels=2)" },
408 2313086a Blue Swirl
#endif
409 2313086a Blue Swirl
STEXI
410 2313086a Blue Swirl
@item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
411 2313086a Blue Swirl
Capture audio into @var{filename}. Using sample rate @var{frequency}
412 2313086a Blue Swirl
bits per sample @var{bits} and number of channels @var{channels}.
413 2313086a Blue Swirl
414 2313086a Blue Swirl
Defaults:
415 2313086a Blue Swirl
@itemize @minus
416 2313086a Blue Swirl
@item Sample rate = 44100 Hz - CD quality
417 2313086a Blue Swirl
@item Bits = 16
418 2313086a Blue Swirl
@item Number of channels = 2 - Stereo
419 2313086a Blue Swirl
@end itemize
420 2313086a Blue Swirl
ETEXI
421 2313086a Blue Swirl
422 2313086a Blue Swirl
#ifdef HAS_AUDIO
423 4d76d2ba Luiz Capitulino
    { "stopcapture", "n:i", do_stop_capture,
424 2313086a Blue Swirl
      "capture index", "stop capture" },
425 2313086a Blue Swirl
#endif
426 2313086a Blue Swirl
STEXI
427 2313086a Blue Swirl
@item stopcapture @var{index}
428 2313086a Blue Swirl
Stop capture with a given @var{index}, index can be obtained with
429 2313086a Blue Swirl
@example
430 2313086a Blue Swirl
info capture
431 2313086a Blue Swirl
@end example
432 2313086a Blue Swirl
ETEXI
433 2313086a Blue Swirl
434 4d76d2ba Luiz Capitulino
    { "memsave", "val:l,size:i,filename:s", do_memory_save,
435 2313086a Blue Swirl
      "addr size file", "save to disk virtual memory dump starting at 'addr' of size 'size'", },
436 2313086a Blue Swirl
STEXI
437 2313086a Blue Swirl
@item memsave @var{addr} @var{size} @var{file}
438 2313086a Blue Swirl
save to disk virtual memory dump starting at @var{addr} of size @var{size}.
439 2313086a Blue Swirl
ETEXI
440 2313086a Blue Swirl
441 4d76d2ba Luiz Capitulino
    { "pmemsave", "val:l,size:i,filename:s", do_physical_memory_save,
442 2313086a Blue Swirl
      "addr size file", "save to disk physical memory dump starting at 'addr' of size 'size'", },
443 2313086a Blue Swirl
STEXI
444 2313086a Blue Swirl
@item pmemsave @var{addr} @var{size} @var{file}
445 2313086a Blue Swirl
save to disk physical memory dump starting at @var{addr} of size @var{size}.
446 2313086a Blue Swirl
ETEXI
447 2313086a Blue Swirl
448 4d76d2ba Luiz Capitulino
    { "boot_set", "bootdevice:s", do_boot_set,
449 2313086a Blue Swirl
      "bootdevice", "define new values for the boot device list" },
450 2313086a Blue Swirl
STEXI
451 2313086a Blue Swirl
@item boot_set @var{bootdevicelist}
452 2313086a Blue Swirl
453 2313086a Blue Swirl
Define new values for the boot device list. Those values will override
454 2313086a Blue Swirl
the values specified on the command line through the @code{-boot} option.
455 2313086a Blue Swirl
456 2313086a Blue Swirl
The values that can be specified here depend on the machine type, but are
457 2313086a Blue Swirl
the same that can be specified in the @code{-boot} command line option.
458 2313086a Blue Swirl
ETEXI
459 2313086a Blue Swirl
460 2313086a Blue Swirl
#if defined(TARGET_I386)
461 4d76d2ba Luiz Capitulino
    { "nmi", "cpu_index:i", do_inject_nmi,
462 2313086a Blue Swirl
      "cpu", "inject an NMI on the given CPU", },
463 2313086a Blue Swirl
#endif
464 2313086a Blue Swirl
STEXI
465 2313086a Blue Swirl
@item nmi @var{cpu}
466 2313086a Blue Swirl
Inject an NMI on the given CPU (x86 only).
467 2313086a Blue Swirl
ETEXI
468 2313086a Blue Swirl
469 4d76d2ba Luiz Capitulino
    { "migrate", "detach:-d,uri:s", do_migrate,
470 2313086a Blue Swirl
      "[-d] uri", "migrate to URI (using -d to not wait for completion)" },
471 2313086a Blue Swirl
STEXI
472 2313086a Blue Swirl
@item migrate [-d] @var{uri}
473 2313086a Blue Swirl
Migrate to @var{uri} (using -d to not wait for completion).
474 2313086a Blue Swirl
ETEXI
475 2313086a Blue Swirl
476 2313086a Blue Swirl
    { "migrate_cancel", "", do_migrate_cancel,
477 2313086a Blue Swirl
      "", "cancel the current VM migration" },
478 2313086a Blue Swirl
STEXI
479 2313086a Blue Swirl
@item migrate_cancel
480 2313086a Blue Swirl
Cancel the current VM migration.
481 2313086a Blue Swirl
ETEXI
482 2313086a Blue Swirl
483 4d76d2ba Luiz Capitulino
    { "migrate_set_speed", "value:s", do_migrate_set_speed,
484 2313086a Blue Swirl
      "value", "set maximum speed (in bytes) for migrations" },
485 2313086a Blue Swirl
STEXI
486 2313086a Blue Swirl
@item migrate_set_speed @var{value}
487 2313086a Blue Swirl
Set maximum speed to @var{value} (in bytes) for migrations.
488 2313086a Blue Swirl
ETEXI
489 2313086a Blue Swirl
490 4d76d2ba Luiz Capitulino
    { "migrate_set_downtime", "value:s", do_migrate_set_downtime,
491 2ea42952 Glauber Costa
      "value", "set maximum tolerated downtime (in seconds) for migrations" },
492 2ea42952 Glauber Costa
493 2ea42952 Glauber Costa
STEXI
494 2ea42952 Glauber Costa
@item migrate_set_downtime @var{second}
495 2ea42952 Glauber Costa
Set maximum tolerated downtime (in seconds) for migration.
496 2ea42952 Glauber Costa
ETEXI
497 2ea42952 Glauber Costa
498 2313086a Blue Swirl
#if defined(TARGET_I386)
499 4d76d2ba Luiz Capitulino
    { "drive_add", "pci_addr:s,opts:s", drive_hot_add,
500 4d76d2ba Luiz Capitulino
                                        "[[<domain>:]<bus>:]<slot>\n"
501 4d76d2ba Luiz Capitulino
                                        "[file=file][,if=type][,bus=n]\n"
502 2313086a Blue Swirl
                                        "[,unit=m][,media=d][index=i]\n"
503 2313086a Blue Swirl
                                        "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
504 2313086a Blue Swirl
                                        "[snapshot=on|off][,cache=on|off]",
505 2313086a Blue Swirl
                                        "add drive to PCI storage controller" },
506 2313086a Blue Swirl
#endif
507 2313086a Blue Swirl
STEXI
508 2313086a Blue Swirl
@item drive_add
509 2313086a Blue Swirl
Add drive to PCI storage controller.
510 2313086a Blue Swirl
ETEXI
511 2313086a Blue Swirl
512 2313086a Blue Swirl
#if defined(TARGET_I386)
513 4d76d2ba Luiz Capitulino
    { "pci_add", "pci_addr:s,type:s,opts:s?", pci_device_hot_add, "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", "hot-add PCI device" },
514 2313086a Blue Swirl
#endif
515 2313086a Blue Swirl
STEXI
516 2313086a Blue Swirl
@item pci_add
517 2313086a Blue Swirl
Hot-add PCI device.
518 2313086a Blue Swirl
ETEXI
519 2313086a Blue Swirl
520 2313086a Blue Swirl
#if defined(TARGET_I386)
521 4d76d2ba Luiz Capitulino
    { "pci_del", "pci_addr:s", do_pci_device_hot_remove, "[[<domain>:]<bus>:]<slot>", "hot remove PCI device" },
522 2313086a Blue Swirl
#endif
523 2313086a Blue Swirl
STEXI
524 2313086a Blue Swirl
@item pci_del
525 2313086a Blue Swirl
Hot remove PCI device.
526 2313086a Blue Swirl
ETEXI
527 2313086a Blue Swirl
528 4d76d2ba Luiz Capitulino
    { "host_net_add", "device:s,opts:s?", net_host_device_add,
529 2313086a Blue Swirl
      "tap|user|socket|vde|dump [options]", "add host VLAN client" },
530 2313086a Blue Swirl
STEXI
531 2313086a Blue Swirl
@item host_net_add
532 2313086a Blue Swirl
Add host VLAN client.
533 2313086a Blue Swirl
ETEXI
534 2313086a Blue Swirl
535 4d76d2ba Luiz Capitulino
    { "host_net_remove", "vlan_id:i,device:s", net_host_device_remove,
536 2313086a Blue Swirl
      "vlan_id name", "remove host VLAN client" },
537 2313086a Blue Swirl
STEXI
538 2313086a Blue Swirl
@item host_net_remove
539 2313086a Blue Swirl
Remove host VLAN client.
540 2313086a Blue Swirl
ETEXI
541 2313086a Blue Swirl
542 2313086a Blue Swirl
#ifdef CONFIG_SLIRP
543 4d76d2ba Luiz Capitulino
    { "hostfwd_add", "arg1:s,arg2:s?,arg3:s?", net_slirp_hostfwd_add,
544 f13b572c Jan Kiszka
      "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
545 f3546deb Jan Kiszka
      "redirect TCP or UDP connections from host to guest (requires -net user)" },
546 4d76d2ba Luiz Capitulino
    { "hostfwd_remove", "arg1:s,arg2:s?,arg3:s?", net_slirp_hostfwd_remove,
547 f13b572c Jan Kiszka
      "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
548 3c6a0580 Jan Kiszka
      "remove host-to-guest TCP or UDP redirection" },
549 2313086a Blue Swirl
#endif
550 2313086a Blue Swirl
STEXI
551 2313086a Blue Swirl
@item host_net_redir
552 2313086a Blue Swirl
Redirect TCP or UDP connections from host to guest (requires -net user).
553 2313086a Blue Swirl
ETEXI
554 2313086a Blue Swirl
555 4d76d2ba Luiz Capitulino
    { "balloon", "value:i", do_balloon,
556 2313086a Blue Swirl
      "target", "request VM to change it's memory allocation (in MB)" },
557 2313086a Blue Swirl
STEXI
558 2313086a Blue Swirl
@item balloon @var{value}
559 2313086a Blue Swirl
Request VM to change its memory allocation to @var{value} (in MB).
560 2313086a Blue Swirl
ETEXI
561 2313086a Blue Swirl
562 4d76d2ba Luiz Capitulino
    { "set_link", "name:s,up_or_down:s", do_set_link,
563 2313086a Blue Swirl
      "name up|down", "change the link status of a network adapter" },
564 2313086a Blue Swirl
STEXI
565 2313086a Blue Swirl
@item set_link @var{name} [up|down]
566 2313086a Blue Swirl
Set link @var{name} up or down.
567 2313086a Blue Swirl
ETEXI
568 2313086a Blue Swirl
569 4d76d2ba Luiz Capitulino
    { "watchdog_action", "action:s", do_watchdog_action,
570 2313086a Blue Swirl
      "[reset|shutdown|poweroff|pause|debug|none]", "change watchdog action" },
571 2313086a Blue Swirl
STEXI
572 2313086a Blue Swirl
@item watchdog_action
573 2313086a Blue Swirl
Change watchdog action.
574 2313086a Blue Swirl
ETEXI
575 2313086a Blue Swirl
576 4d76d2ba Luiz Capitulino
    { "acl_show", "aclname:s", do_acl_show, "aclname",
577 15dfcd45 Jan Kiszka
      "list rules in the access control list" },
578 2313086a Blue Swirl
STEXI
579 15dfcd45 Jan Kiszka
@item acl_show @var{aclname}
580 15dfcd45 Jan Kiszka
List all the matching rules in the access control list, and the default
581 15dfcd45 Jan Kiszka
policy. There are currently two named access control lists,
582 15dfcd45 Jan Kiszka
@var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
583 15dfcd45 Jan Kiszka
certificate distinguished name, and SASL username respectively.
584 15dfcd45 Jan Kiszka
ETEXI
585 2313086a Blue Swirl
586 4d76d2ba Luiz Capitulino
    { "acl_policy", "aclname:s,policy:s", do_acl_policy, "aclname allow|deny",
587 15dfcd45 Jan Kiszka
      "set default access control list policy" },
588 15dfcd45 Jan Kiszka
STEXI
589 cbbfacc6 Jan Kiszka
@item acl_policy @var{aclname} @code{allow|deny}
590 15dfcd45 Jan Kiszka
Set the default access control list policy, used in the event that
591 2313086a Blue Swirl
none of the explicit rules match. The default policy at startup is
592 15dfcd45 Jan Kiszka
always @code{deny}.
593 15dfcd45 Jan Kiszka
ETEXI
594 15dfcd45 Jan Kiszka
595 4d76d2ba Luiz Capitulino
    { "acl_add", "aclname:s,match:s,policy:s,index:i?", do_acl_add, "aclname match allow|deny [index]",
596 15dfcd45 Jan Kiszka
      "add a match rule to the access control list" },
597 15dfcd45 Jan Kiszka
STEXI
598 15dfcd45 Jan Kiszka
@item acl_allow @var{aclname} @var{match} @code{allow|deny} [@var{index}]
599 15dfcd45 Jan Kiszka
Add a match rule to the access control list, allowing or denying access.
600 15dfcd45 Jan Kiszka
The match will normally be an exact username or x509 distinguished name,
601 15dfcd45 Jan Kiszka
but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
602 15dfcd45 Jan Kiszka
allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
603 2313086a Blue Swirl
normally be appended to the end of the ACL, but can be inserted
604 15dfcd45 Jan Kiszka
earlier in the list if the optional @var{index} parameter is supplied.
605 15dfcd45 Jan Kiszka
ETEXI
606 15dfcd45 Jan Kiszka
607 4d76d2ba Luiz Capitulino
    { "acl_remove", "aclname:s,match:s", do_acl_remove, "aclname match",
608 15dfcd45 Jan Kiszka
      "remove a match rule from the access control list" },
609 15dfcd45 Jan Kiszka
STEXI
610 15dfcd45 Jan Kiszka
@item acl_remove @var{aclname} @var{match}
611 15dfcd45 Jan Kiszka
Remove the specified match rule from the access control list.
612 15dfcd45 Jan Kiszka
ETEXI
613 15dfcd45 Jan Kiszka
614 4d76d2ba Luiz Capitulino
    { "acl_reset", "aclname:s", do_acl_reset, "aclname",
615 15dfcd45 Jan Kiszka
      "reset the access control list" },
616 15dfcd45 Jan Kiszka
STEXI
617 15dfcd45 Jan Kiszka
@item acl_remove @var{aclname} @var{match}
618 15dfcd45 Jan Kiszka
Remove all matches from the access control list, and set the default
619 2313086a Blue Swirl
policy back to @code{deny}.
620 2313086a Blue Swirl
ETEXI
621 2313086a Blue Swirl
622 79c4f6b0 Huang Ying
#if defined(TARGET_I386)
623 4d76d2ba Luiz Capitulino
    { "mce", "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", do_inject_mce, "cpu bank status mcgstatus addr misc", "inject a MCE on the given CPU"},
624 79c4f6b0 Huang Ying
#endif
625 79c4f6b0 Huang Ying
STEXI
626 79c4f6b0 Huang Ying
@item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
627 79c4f6b0 Huang Ying
Inject an MCE on the given CPU (x86 only).
628 79c4f6b0 Huang Ying
ETEXI
629 79c4f6b0 Huang Ying
630 4d76d2ba Luiz Capitulino
    { "getfd", "fdname:s", do_getfd, "getfd name",
631 f07918fd Mark McLoughlin
      "receive a file descriptor via SCM rights and assign it a name" },
632 f07918fd Mark McLoughlin
STEXI
633 f07918fd Mark McLoughlin
@item getfd @var{fdname}
634 f07918fd Mark McLoughlin
If a file descriptor is passed alongside this command using the SCM_RIGHTS
635 f07918fd Mark McLoughlin
mechanism on unix sockets, it is stored using the name @var{fdname} for
636 f07918fd Mark McLoughlin
later use by other monitor commands.
637 f07918fd Mark McLoughlin
ETEXI
638 f07918fd Mark McLoughlin
639 4d76d2ba Luiz Capitulino
    { "closefd", "fdname:s", do_closefd, "closefd name",
640 f07918fd Mark McLoughlin
      "close a file descriptor previously passed via SCM rights" },
641 f07918fd Mark McLoughlin
STEXI
642 f07918fd Mark McLoughlin
@item closefd @var{fdname}
643 f07918fd Mark McLoughlin
Close the file descriptor previously assigned to @var{fdname} using the
644 f07918fd Mark McLoughlin
@code{getfd} command. This is only needed if the file descriptor was never
645 f07918fd Mark McLoughlin
used by another monitor command.
646 f07918fd Mark McLoughlin
ETEXI
647 f07918fd Mark McLoughlin
648 2313086a Blue Swirl
STEXI
649 2313086a Blue Swirl
@end table
650 2313086a Blue Swirl
ETEXI