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