1 HXCOMM Use DEFHEADING() to define headings in both help text and texi
2 HXCOMM Text between STEXI and ETEXI are copied to texi version and
3 HXCOMM discarded from C version
4 HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
5 HXCOMM monitor commands
6 HXCOMM HXCOMM can be used for comments, discarded from both texi and C
14 .args_type = "name:s?",
16 .help = "show the help",
17 .mhandler.cmd = do_help_cmd,
21 @item help or ? [@var{cmd}]
23 Show the help for all commands or just for command @var{cmd}.
28 .args_type = "device:B",
29 .params = "device|all",
30 .help = "commit changes to the disk images (if -snapshot is used) or backing files",
31 .mhandler.cmd = do_commit,
37 Commit changes to the disk images (if -snapshot is used) or backing files.
44 .help = "quit the emulator",
45 .user_print = monitor_user_noop,
46 .mhandler.cmd = hmp_quit,
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,
67 Resize a block image while a guest is running. Usually requires guest
68 action to see the updated size. Resize to a lower size is supported,
69 but should be used with extreme caution. Note that this command only
70 resizes image files, it can not resize block devices like LVM volumes.
76 .args_type = "force:-f,device:B",
77 .params = "[-f] device",
78 .help = "eject a removable medium (use -f to force it)",
79 .user_print = monitor_user_noop,
80 .mhandler.cmd_new = do_eject,
84 @item eject [-f] @var{device}
86 Eject a removable medium (use -f to force it).
93 .help = "remove host block device",
94 .user_print = monitor_user_noop,
95 .mhandler.cmd_new = do_drive_del,
99 @item drive_del @var{device}
101 Remove host block device. The result is that guest generated IO is no longer
102 submitted against the host device underlying the disk. Once a drive has
103 been deleted, the QEMU Block layer returns -EIO which results in IO
104 errors in the guest for applications that are reading/writing to the device.
109 .args_type = "device:B,target:F,arg:s?",
110 .params = "device filename [format]",
111 .help = "change a removable medium, optional format",
112 .user_print = monitor_user_noop,
113 .mhandler.cmd_new = do_change,
117 @item change @var{device} @var{setting}
120 Change the configuration of a device.
123 @item change @var{diskdevice} @var{filename} [@var{format}]
124 Change the medium for a removable disk device to point to @var{filename}. eg
127 (qemu) change ide1-cd0 /path/to/some.iso
130 @var{format} is optional.
132 @item change vnc @var{display},@var{options}
133 Change the configuration of the VNC server. The valid syntax for @var{display}
134 and @var{options} are described at @ref{sec_invocation}. eg
137 (qemu) change vnc localhost:1
140 @item change vnc password [@var{password}]
142 Change the password associated with the VNC server. If the new password is not
143 supplied, the monitor will prompt for it to be entered. VNC passwords are only
144 significant up to 8 letters. eg
147 (qemu) change vnc password
155 .name = "screendump",
156 .args_type = "filename:F",
157 .params = "filename",
158 .help = "save screen into PPM image 'filename'",
159 .user_print = monitor_user_noop,
160 .mhandler.cmd_new = do_screen_dump,
164 @item screendump @var{filename}
166 Save screen into PPM image @var{filename}.
171 .args_type = "filename:F",
172 .params = "filename",
173 .help = "output logs to 'filename'",
174 .mhandler.cmd = do_logfile,
178 @item logfile @var{filename}
180 Output logs to @var{filename}.
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",
188 .mhandler.cmd = do_trace_event_set_state,
194 changes status of a trace event
197 #if defined(CONFIG_TRACE_SIMPLE)
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,
207 @item trace-file on|off|flush
209 Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed.
215 .args_type = "items:s",
216 .params = "item1[,...]",
217 .help = "activate logging of the specified items to '/tmp/qemu.log'",
218 .mhandler.cmd = do_log,
222 @item log @var{item1}[,...]
224 Activate logging of the specified items to @file{/tmp/qemu.log}.
229 .args_type = "name:s?",
230 .params = "[tag|id]",
231 .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
232 .mhandler.cmd = do_savevm,
236 @item savevm [@var{tag}|@var{id}]
238 Create a snapshot of the whole virtual machine. If @var{tag} is
239 provided, it is used as human readable identifier. If there is already
240 a snapshot with the same tag or ID, it is replaced. More info at
246 .args_type = "name:s",
248 .help = "restore a VM snapshot from its tag or id",
249 .mhandler.cmd = do_loadvm,
253 @item loadvm @var{tag}|@var{id}
255 Set the whole virtual machine to the snapshot identified by the tag
256 @var{tag} or the unique snapshot ID @var{id}.
261 .args_type = "name:s",
263 .help = "delete a VM snapshot from its tag or id",
264 .mhandler.cmd = do_delvm,
268 @item delvm @var{tag}|@var{id}
270 Delete the snapshot identified by @var{tag} or @var{id}.
274 .name = "singlestep",
275 .args_type = "option:s?",
276 .params = "[on|off]",
277 .help = "run emulation in singlestep mode or switch to normal mode",
278 .mhandler.cmd = do_singlestep,
282 @item singlestep [off]
284 Run the emulation in single step mode.
285 If called with option off, the emulation returns to normal mode.
292 .help = "stop emulation",
293 .mhandler.cmd = hmp_stop,
306 .help = "resume emulation",
307 .mhandler.cmd = hmp_cont,
318 .args_type = "device:s?",
319 .params = "[device]",
320 .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
321 .mhandler.cmd = do_gdbserver,
325 @item gdbserver [@var{port}]
327 Start gdbserver session (default @var{port}=1234)
332 .args_type = "fmt:/,addr:l",
333 .params = "/fmt addr",
334 .help = "virtual memory dump starting at 'addr'",
335 .mhandler.cmd = do_memory_dump,
339 @item x/fmt @var{addr}
341 Virtual memory dump starting at @var{addr}.
346 .args_type = "fmt:/,addr:l",
347 .params = "/fmt addr",
348 .help = "physical memory dump starting at 'addr'",
349 .mhandler.cmd = do_physical_memory_dump,
353 @item xp /@var{fmt} @var{addr}
355 Physical memory dump starting at @var{addr}.
357 @var{fmt} is a format which tells the command how to format the
358 data. Its syntax is: @option{/@{count@}@{format@}@{size@}}
362 is the number of items to be dumped.
365 can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
366 c (char) or i (asm instruction).
369 can 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
371 respectively select 16 or 32 bit code instruction size.
378 Dump 10 instructions at the current instruction pointer:
383 0x90107065: lea 0x0(%esi,1),%esi
384 0x90107069: lea 0x0(%edi,1),%edi
386 0x90107071: jmp 0x90107080
394 Dump 80 16 bit values at the start of the video memory.
396 (qemu) xp/80hx 0xb8000
397 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
398 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
399 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
400 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
401 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
402 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
403 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
404 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
405 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
406 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
413 .args_type = "fmt:/,val:l",
414 .params = "/fmt expr",
415 .help = "print expression value (use $reg for CPU register access)",
416 .mhandler.cmd = do_print,
420 @item p or print/@var{fmt} @var{expr}
423 Print expression value. Only the @var{format} part of @var{fmt} is
429 .args_type = "fmt:/,addr:i,index:i.",
430 .params = "/fmt addr",
431 .help = "I/O port read",
432 .mhandler.cmd = do_ioport_read,
441 .args_type = "fmt:/,addr:i,val:i",
442 .params = "/fmt addr value",
443 .help = "I/O port write",
444 .mhandler.cmd = do_ioport_write,
453 .args_type = "string:s,hold_time:i?",
454 .params = "keys [hold_ms]",
455 .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
456 .mhandler.cmd = do_sendkey,
460 @item sendkey @var{keys}
463 Send @var{keys} to the emulator. @var{keys} could be the name of the
464 key or @code{#} followed by the raw value in either decimal or hexadecimal
465 format. Use @code{-} to press several keys simultaneously. Example:
470 This command is useful to send keys that your graphical user interface
471 intercepts at low level, such as @code{ctrl-alt-f1} in X Window.
475 .name = "system_reset",
478 .help = "reset the system",
479 .mhandler.cmd = hmp_system_reset,
490 .name = "system_powerdown",
493 .help = "send system power down event",
494 .mhandler.cmd = hmp_system_powerdown,
498 @item system_powerdown
499 @findex system_powerdown
501 Power down the system (if supported).
506 .args_type = "start:i,size:i",
507 .params = "addr size",
508 .help = "compute the checksum of a memory region",
509 .mhandler.cmd = do_sum,
513 @item sum @var{addr} @var{size}
516 Compute the checksum of a memory region.
521 .args_type = "devname:s",
523 .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
524 .mhandler.cmd = do_usb_add,
528 @item usb_add @var{devname}
531 Add the USB device @var{devname}. For details of available devices see
537 .args_type = "devname:s",
539 .help = "remove USB device 'bus.addr'",
540 .mhandler.cmd = do_usb_del,
544 @item usb_del @var{devname}
547 Remove the USB device @var{devname} from the QEMU virtual USB
548 hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
549 command @code{info usb} to see the devices you can remove.
553 .name = "device_add",
554 .args_type = "device:O",
555 .params = "driver[,prop=value][,...]",
556 .help = "add device, like -device on the command line",
557 .user_print = monitor_user_noop,
558 .mhandler.cmd_new = do_device_add,
562 @item device_add @var{config}
569 .name = "device_del",
572 .help = "remove device",
573 .user_print = monitor_user_noop,
574 .mhandler.cmd_new = do_device_del,
578 @item device_del @var{id}
581 Remove device @var{id}.
586 .args_type = "index:i",
588 .help = "set the default CPU",
589 .mhandler.cmd = hmp_cpu,
593 @item cpu @var{index}
599 .name = "mouse_move",
600 .args_type = "dx_str:s,dy_str:s,dz_str:s?",
601 .params = "dx dy [dz]",
602 .help = "send mouse move events",
603 .mhandler.cmd = do_mouse_move,
607 @item mouse_move @var{dx} @var{dy} [@var{dz}]
609 Move the active mouse to the specified coordinates @var{dx} @var{dy}
610 with optional scroll axis @var{dz}.
614 .name = "mouse_button",
615 .args_type = "button_state:i",
617 .help = "change mouse button state (1=L, 2=M, 4=R)",
618 .mhandler.cmd = do_mouse_button,
622 @item mouse_button @var{val}
624 Change the active mouse button state @var{val} (1=L, 2=M, 4=R).
629 .args_type = "index:i",
631 .help = "set which mouse device receives events",
632 .mhandler.cmd = do_mouse_set,
636 @item mouse_set @var{index}
638 Set which mouse device receives events at given @var{index}, index
647 .name = "wavcapture",
648 .args_type = "path:F,freq:i?,bits:i?,nchannels:i?",
649 .params = "path [frequency [bits [channels]]]",
650 .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
651 .mhandler.cmd = do_wav_capture,
655 @item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]]
657 Capture audio into @var{filename}. Using sample rate @var{frequency}
658 bits per sample @var{bits} and number of channels @var{channels}.
662 @item Sample rate = 44100 Hz - CD quality
664 @item Number of channels = 2 - Stereo
670 .name = "stopcapture",
672 .params = "capture index",
673 .help = "stop capture",
674 .mhandler.cmd = do_stop_capture,
678 @item stopcapture @var{index}
680 Stop capture with a given @var{index}, index can be obtained with
688 .args_type = "val:l,size:i,filename:s",
689 .params = "addr size file",
690 .help = "save to disk virtual memory dump starting at 'addr' of size 'size'",
691 .mhandler.cmd = hmp_memsave,
695 @item memsave @var{addr} @var{size} @var{file}
697 save to disk virtual memory dump starting at @var{addr} of size @var{size}.
702 .args_type = "val:l,size:i,filename:s",
703 .params = "addr size file",
704 .help = "save to disk physical memory dump starting at 'addr' of size 'size'",
705 .mhandler.cmd = hmp_pmemsave,
709 @item pmemsave @var{addr} @var{size} @var{file}
711 save to disk physical memory dump starting at @var{addr} of size @var{size}.
716 .args_type = "bootdevice:s",
717 .params = "bootdevice",
718 .help = "define new values for the boot device list",
719 .mhandler.cmd = do_boot_set,
723 @item boot_set @var{bootdevicelist}
726 Define new values for the boot device list. Those values will override
727 the values specified on the command line through the @code{-boot} option.
729 The values that can be specified here depend on the machine type, but are
730 the same that can be specified in the @code{-boot} command line option.
733 #if defined(TARGET_I386)
738 .help = "inject an NMI on all guest's CPUs",
739 .mhandler.cmd = hmp_inject_nmi,
745 Inject an NMI on the given CPU (x86 only).
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,
758 .mhandler.cmd_new = do_migrate,
763 @item migrate [-d] [-b] [-i] @var{uri}
765 Migrate to @var{uri} (using -d to not wait for completion).
766 -b for migration with full copy of disk
767 -i for migration with incremental copy of disk (base image is shared)
771 .name = "migrate_cancel",
774 .help = "cancel the current VM migration",
775 .user_print = monitor_user_noop,
776 .mhandler.cmd_new = do_migrate_cancel,
781 @findex migrate_cancel
782 Cancel the current VM migration.
786 .name = "migrate_set_speed",
787 .args_type = "value:o",
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",
791 .user_print = monitor_user_noop,
792 .mhandler.cmd_new = do_migrate_set_speed,
796 @item migrate_set_speed @var{value}
797 @findex migrate_set_speed
798 Set maximum speed to @var{value} (in bytes) for migrations.
802 .name = "migrate_set_downtime",
803 .args_type = "value:T",
805 .help = "set maximum tolerated downtime (in seconds) for migrations",
806 .user_print = monitor_user_noop,
807 .mhandler.cmd_new = do_migrate_set_downtime,
811 @item migrate_set_downtime @var{second}
812 @findex migrate_set_downtime
813 Set maximum tolerated downtime (in seconds) for migration.
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,
822 .mhandler.cmd_async = client_migrate_info,
823 .flags = MONITOR_CMD_ASYNC,
827 @item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject}
828 @findex client_migrate_info
829 Set the spice/vnc connection info for the migration target. The spice/vnc
830 server will ask the spice/vnc client to automatically reconnect using the
831 new parameters (if specified) once the vm migration finished successfully.
835 .name = "snapshot_blkdev",
836 .args_type = "device:B,snapshot-file:s?,format:s?",
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,
848 @item snapshot_blkdev
849 @findex snapshot_blkdev
850 Snapshot device, using snapshot file as target if provided
853 #if defined(TARGET_I386)
856 .args_type = "pci_addr:s,opts:s",
857 .params = "[[<domain>:]<bus>:]<slot>\n"
858 "[file=file][,if=type][,bus=n]\n"
859 "[,unit=m][,media=d][,index=i]\n"
860 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
861 "[,snapshot=on|off][,cache=on|off]\n"
862 "[,readonly=on|off][,copy-on-read=on|off]",
863 .help = "add drive to PCI storage controller",
864 .mhandler.cmd = drive_hot_add,
871 Add drive to PCI storage controller.
874 #if defined(TARGET_I386)
877 .args_type = "pci_addr:s,type:s,opts:s?",
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",
880 .mhandler.cmd = pci_device_hot_add,
890 #if defined(TARGET_I386)
893 .args_type = "pci_addr:s",
894 .params = "[[<domain>:]<bus>:]<slot>",
895 .help = "hot remove PCI device",
896 .mhandler.cmd = do_pci_device_hot_remove,
903 Hot remove PCI device.
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,
926 @item pcie_aer_inject_error
927 @findex pcie_aer_inject_error
928 Inject PCIe AER error
932 .name = "host_net_add",
933 .args_type = "device:s,opts:s?",
934 .params = "tap|user|socket|vde|dump [options]",
935 .help = "add host VLAN client",
936 .mhandler.cmd = net_host_device_add,
942 Add host VLAN client.
946 .name = "host_net_remove",
947 .args_type = "vlan_id:i,device:s",
948 .params = "vlan_id name",
949 .help = "remove host VLAN client",
950 .mhandler.cmd = net_host_device_remove,
954 @item host_net_remove
955 @findex host_net_remove
956 Remove host VLAN client.
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,
971 Add host network device.
975 .name = "netdev_del",
978 .help = "remove host network device",
979 .user_print = monitor_user_noop,
980 .mhandler.cmd_new = do_netdev_del,
986 Remove host network device.
991 .name = "hostfwd_add",
992 .args_type = "arg1:s,arg2:s?,arg3:s?",
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)",
995 .mhandler.cmd = net_slirp_hostfwd_add,
1001 Redirect TCP or UDP connections from host to guest (requires -net user).
1006 .name = "hostfwd_remove",
1007 .args_type = "arg1:s,arg2:s?,arg3:s?",
1008 .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
1009 .help = "remove host-to-guest TCP or UDP redirection",
1010 .mhandler.cmd = net_slirp_hostfwd_remove,
1015 @item hostfwd_remove
1016 @findex hostfwd_remove
1017 Remove host-to-guest TCP or UDP redirection.
1022 .args_type = "value:M",
1024 .help = "request VM to change its memory allocation (in MB)",
1025 .user_print = monitor_user_noop,
1026 .mhandler.cmd_async = do_balloon,
1027 .flags = MONITOR_CMD_ASYNC,
1031 @item balloon @var{value}
1033 Request VM to change its memory allocation to @var{value} (in MB).
1038 .args_type = "name:s,up:b",
1039 .params = "name on|off",
1040 .help = "change the link status of a network adapter",
1041 .mhandler.cmd = hmp_set_link,
1045 @item set_link @var{name} [on|off]
1047 Switch link @var{name} on (i.e. up) or off (i.e. down).
1051 .name = "watchdog_action",
1052 .args_type = "action:s",
1053 .params = "[reset|shutdown|poweroff|pause|debug|none]",
1054 .help = "change watchdog action",
1055 .mhandler.cmd = do_watchdog_action,
1059 @item watchdog_action
1060 @findex watchdog_action
1061 Change watchdog action.
1066 .args_type = "aclname:s",
1067 .params = "aclname",
1068 .help = "list rules in the access control list",
1069 .mhandler.cmd = do_acl_show,
1073 @item acl_show @var{aclname}
1075 List all the matching rules in the access control list, and the default
1076 policy. There are currently two named access control lists,
1077 @var{vnc.x509dname} and @var{vnc.username} matching on the x509 client
1078 certificate distinguished name, and SASL username respectively.
1082 .name = "acl_policy",
1083 .args_type = "aclname:s,policy:s",
1084 .params = "aclname allow|deny",
1085 .help = "set default access control list policy",
1086 .mhandler.cmd = do_acl_policy,
1090 @item acl_policy @var{aclname} @code{allow|deny}
1092 Set the default access control list policy, used in the event that
1093 none of the explicit rules match. The default policy at startup is
1099 .args_type = "aclname:s,match:s,policy:s,index:i?",
1100 .params = "aclname match allow|deny [index]",
1101 .help = "add a match rule to the access control list",
1102 .mhandler.cmd = do_acl_add,
1106 @item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}]
1108 Add a match rule to the access control list, allowing or denying access.
1109 The match will normally be an exact username or x509 distinguished name,
1110 but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
1111 allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will
1112 normally be appended to the end of the ACL, but can be inserted
1113 earlier in the list if the optional @var{index} parameter is supplied.
1117 .name = "acl_remove",
1118 .args_type = "aclname:s,match:s",
1119 .params = "aclname match",
1120 .help = "remove a match rule from the access control list",
1121 .mhandler.cmd = do_acl_remove,
1125 @item acl_remove @var{aclname} @var{match}
1127 Remove the specified match rule from the access control list.
1131 .name = "acl_reset",
1132 .args_type = "aclname:s",
1133 .params = "aclname",
1134 .help = "reset the access control list",
1135 .mhandler.cmd = do_acl_reset,
1139 @item acl_reset @var{aclname}
1141 Remove all matches from the access control list, and set the default
1142 policy back to @code{deny}.
1145 #if defined(TARGET_I386)
1149 .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1150 .params = "[-b] cpu bank status mcgstatus addr misc",
1151 .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
1152 .mhandler.cmd = do_inject_mce,
1157 @item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc}
1159 Inject an MCE on the given CPU (x86 only).
1164 .args_type = "fdname:s",
1165 .params = "getfd name",
1166 .help = "receive a file descriptor via SCM rights and assign it a name",
1167 .user_print = monitor_user_noop,
1168 .mhandler.cmd_new = do_getfd,
1172 @item getfd @var{fdname}
1174 If a file descriptor is passed alongside this command using the SCM_RIGHTS
1175 mechanism on unix sockets, it is stored using the name @var{fdname} for
1176 later use by other monitor commands.
1181 .args_type = "fdname:s",
1182 .params = "closefd name",
1183 .help = "close a file descriptor previously passed via SCM rights",
1184 .user_print = monitor_user_noop,
1185 .mhandler.cmd_new = do_closefd,
1189 @item closefd @var{fdname}
1191 Close the file descriptor previously assigned to @var{fdname} using the
1192 @code{getfd} command. This is only needed if the file descriptor was never
1193 used by another monitor command.
1197 .name = "block_passwd",
1198 .args_type = "device:B,password:s",
1199 .params = "block_passwd device password",
1200 .help = "set the password of encrypted block devices",
1201 .user_print = monitor_user_noop,
1202 .mhandler.cmd_new = do_block_set_passwd,
1206 @item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1207 @findex block_set_io_throttle
1208 Change I/O throttle limits for a block drive to @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
1212 .name = "block_set_io_throttle",
1213 .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
1214 .params = "device bps bps_rd bps_wr iops iops_rd iops_wr",
1215 .help = "change I/O throttle limits for a block drive",
1216 .user_print = monitor_user_noop,
1217 .mhandler.cmd_new = do_block_set_io_throttle,
1221 @item block_passwd @var{device} @var{password}
1222 @findex block_passwd
1223 Set the encrypted device @var{device} password to @var{password}
1227 .name = "set_password",
1228 .args_type = "protocol:s,password:s,connected:s?",
1229 .params = "protocol password action-if-connected",
1230 .help = "set spice/vnc password",
1231 .user_print = monitor_user_noop,
1232 .mhandler.cmd_new = set_password,
1236 @item set_password [ vnc | spice ] password [ action-if-connected ]
1237 @findex set_password
1239 Change spice/vnc password. Use zero to make the password stay valid
1240 forever. @var{action-if-connected} specifies what should happen in
1241 case a connection is established: @var{fail} makes the password change
1242 fail. @var{disconnect} changes the password and disconnects the
1243 client. @var{keep} changes the password and keeps the connection up.
1244 @var{keep} is the default.
1248 .name = "expire_password",
1249 .args_type = "protocol:s,time:s",
1250 .params = "protocol time",
1251 .help = "set spice/vnc password expire-time",
1252 .user_print = monitor_user_noop,
1253 .mhandler.cmd_new = expire_password,
1257 @item expire_password [ vnc | spice ] expire-time
1258 @findex expire_password
1260 Specify when a password for spice/vnc becomes
1261 invalid. @var{expire-time} accepts:
1265 Invalidate password instantly.
1268 Password stays valid forever.
1271 Password stays valid for @var{nsec} seconds starting now.
1274 Password is invalidated at the given time. @var{nsec} are the seconds
1275 passed since 1970, i.e. unix epoch.
1282 .args_type = "item:s?",
1283 .params = "[subcommand]",
1284 .help = "show various information about the system state",
1285 .mhandler.cmd = do_info,
1289 @item info @var{subcommand}
1291 Show various information about the system state.
1295 show the version of QEMU
1297 show the various VLANs and the associated devices
1299 show the character devices
1301 show the block devices
1302 @item info blockstats
1303 show block device statistics
1304 @item info registers
1305 show the cpu registers
1307 show infos for each CPU
1309 show the command line history
1311 show the interrupts statistics (if available)
1313 show i8259 (PIC) state
1315 show emulated PCI device info
1317 show virtual to physical memory mappings (i386, SH4, SPARC, and PPC only)
1319 show the active virtual memory mappings (i386 only)
1321 show dynamic compiler info
1323 show NUMA information
1325 show KVM information
1327 show USB devices plugged on the virtual USB hub
1329 show all USB host devices
1331 show profiling information
1333 show information about active capturing
1334 @item info snapshots
1335 show list of VM snapshots
1337 show the current VM status (running|paused)
1339 show guest PCMCIA status
1341 show which guest mouse is receiving events
1343 show the vnc server status
1345 show the current VM name
1347 show the current VM UUID
1351 show user network stack connection states
1353 show migration status
1355 show balloon information
1359 show qdev device model list
1365 #ifdef CONFIG_TRACE_SIMPLE
1368 show contents of trace buffer
1373 @item info trace-events
1374 show available trace events and their state