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 .mhandler
.cmd
= hmp_block_resize
,
66 Resize a block image
while a guest is running
. Usually requires guest
67 action to see the updated size
. Resize to a lower size is supported
,
68 but should be used with extreme caution
. Note that
this command only
69 resizes image files
, it can not resize block devices like LVM volumes
.
75 .args_type
= "force:-f,device:B",
76 .params
= "[-f] device",
77 .help
= "eject a removable medium (use -f to force it)",
78 .user_print
= monitor_user_noop
,
79 .mhandler
.cmd_new
= do_eject
,
83 @item eject
[-f
] @
var{device
}
85 Eject a removable
medium (use
-f to force it
).
92 .help
= "remove host block device",
93 .user_print
= monitor_user_noop
,
94 .mhandler
.cmd_new
= do_drive_del
,
98 @item drive_del @
var{device
}
100 Remove host block device
. The result is that guest generated IO is no longer
101 submitted against the host device underlying the disk
. Once a drive has
102 been deleted
, the QEMU Block layer returns
-EIO which results
in IO
103 errors
in the guest
for applications that are reading
/writing to the device
.
108 .args_type
= "device:B,target:F,arg:s?",
109 .params
= "device filename [format]",
110 .help
= "change a removable medium, optional format",
111 .user_print
= monitor_user_noop
,
112 .mhandler
.cmd_new
= do_change
,
116 @item change @
var{device
} @
var{setting
}
119 Change the configuration of a device
.
122 @item change @
var{diskdevice
} @
var{filename
} [@
var{format
}]
123 Change the medium
for a removable disk device to point to @
var{filename
}. eg
126 (qemu
) change ide1
-cd0
/path
/to
/some
.iso
129 @
var{format
} is optional
.
131 @item change vnc @
var{display
},@
var{options
}
132 Change the configuration of the VNC server
. The valid syntax
for @
var{display
}
133 and @
var{options
} are described at @ref
{sec_invocation
}. eg
136 (qemu
) change vnc localhost
:1
139 @item change vnc password
[@
var{password
}]
141 Change the password associated with the VNC server
. If the
new password is not
142 supplied
, the monitor will prompt
for it to be entered
. VNC passwords are only
143 significant up to
8 letters
. eg
146 (qemu
) change vnc password
154 .name
= "screendump",
155 .args_type
= "filename:F",
156 .params
= "filename",
157 .help
= "save screen into PPM image 'filename'",
158 .user_print
= monitor_user_noop
,
159 .mhandler
.cmd_new
= do_screen_dump
,
163 @item screendump @
var{filename
}
165 Save screen into PPM image @
var{filename
}.
170 .args_type
= "filename:F",
171 .params
= "filename",
172 .help
= "output logs to 'filename'",
173 .mhandler
.cmd
= do_logfile
,
177 @item logfile @
var{filename
}
179 Output logs to @
var{filename
}.
183 .name
= "trace-event",
184 .args_type
= "name:s,option:b",
185 .params
= "name on|off",
186 .help
= "changes status of a specific trace event",
187 .mhandler
.cmd
= do_trace_event_set_state
,
193 changes status of a
trace event
196 #
if defined(CONFIG_TRACE_SIMPLE
)
198 .name
= "trace-file",
199 .args_type
= "op:s?,arg:F?",
200 .params
= "on|off|flush|set [arg]",
201 .help
= "open, close, or flush trace file, or set a new file name",
202 .mhandler
.cmd
= do_trace_file
,
206 @item
trace-file on|off|flush
208 Open
, close
, or flush the
trace file
. If no argument is given
, the status of the
trace file is displayed
.
214 .args_type
= "items:s",
215 .params
= "item1[,...]",
216 .help
= "activate logging of the specified items to '/tmp/qemu.log'",
217 .mhandler
.cmd
= do_log
,
221 @item log @
var{item1
}[,...]
223 Activate logging of the specified items to @file
{/tmp
/qemu
.log
}.
228 .args_type
= "name:s?",
229 .params
= "[tag|id]",
230 .help
= "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
231 .mhandler
.cmd
= do_savevm
,
235 @item savevm
[@
var{tag
}|@
var{id
}]
237 Create a snapshot of the whole virtual machine
. If @
var{tag
} is
238 provided
, it is used as human readable identifier
. If there is already
239 a snapshot with the same tag or ID
, it is replaced
. More info at
245 .args_type
= "name:s",
247 .help
= "restore a VM snapshot from its tag or id",
248 .mhandler
.cmd
= do_loadvm
,
252 @item loadvm @
var{tag
}|@
var{id
}
254 Set the whole virtual machine to the snapshot identified by the tag
255 @
var{tag
} or the unique snapshot ID @
var{id
}.
260 .args_type
= "name:s",
262 .help
= "delete a VM snapshot from its tag or id",
263 .mhandler
.cmd
= do_delvm
,
267 @item delvm @
var{tag
}|@
var{id
}
269 Delete the snapshot identified by @
var{tag
} or @
var{id
}.
273 .name
= "singlestep",
274 .args_type
= "option:s?",
275 .params
= "[on|off]",
276 .help
= "run emulation in singlestep mode or switch to normal mode",
277 .mhandler
.cmd
= do_singlestep
,
281 @item singlestep
[off
]
283 Run the emulation
in single step mode
.
284 If called with option off
, the emulation returns to normal mode
.
291 .help
= "stop emulation",
292 .mhandler
.cmd
= hmp_stop
,
305 .help
= "resume emulation",
306 .mhandler
.cmd
= hmp_cont
,
317 .args_type
= "device:s?",
318 .params
= "[device]",
319 .help
= "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
320 .mhandler
.cmd
= do_gdbserver
,
324 @item gdbserver
[@
var{port
}]
326 Start gdbserver
session (default @
var{port
}=1234)
331 .args_type
= "fmt:/,addr:l",
332 .params
= "/fmt addr",
333 .help
= "virtual memory dump starting at 'addr'",
334 .mhandler
.cmd
= do_memory_dump
,
338 @item x
/fmt @
var{addr
}
340 Virtual memory dump starting at @
var{addr
}.
345 .args_type
= "fmt:/,addr:l",
346 .params
= "/fmt addr",
347 .help
= "physical memory dump starting at 'addr'",
348 .mhandler
.cmd
= do_physical_memory_dump
,
352 @item xp
/@
var{fmt
} @
var{addr
}
354 Physical memory dump starting at @
var{addr
}.
356 @
var{fmt
} is a format which tells the command how to format the
357 data
. Its syntax is
: @option
{/@
{count@
}@
{format@
}@
{size@
}}
361 is the number of items to be dumped
.
364 can be
x (hex
), d (signed decimal
), u (unsigned decimal
), o (octal
),
365 c (char
) or
i (asm instruction
).
368 can be
b (8 bits
), h (16 bits
), w (32 bits
) or
g (64 bits
). On x86
,
369 @code
{h
} or @code
{w
} can be specified with the @code
{i
} format to
370 respectively select
16 or
32 bit code instruction size
.
377 Dump
10 instructions at the current instruction pointer
:
382 0x90107065: lea
0x0(%esi
,1),%esi
383 0x90107069: lea
0x0(%edi
,1),%edi
385 0x90107071: jmp
0x90107080
393 Dump
80 16 bit values at the start of the video memory
.
395 (qemu
) xp
/80hx
0xb8000
396 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
397 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
398 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
399 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
400 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
401 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
402 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
403 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
404 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
405 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
412 .args_type
= "fmt:/,val:l",
413 .params
= "/fmt expr",
414 .help
= "print expression value (use $reg for CPU register access)",
415 .mhandler
.cmd
= do_print
,
419 @item p or print
/@
var{fmt
} @
var{expr
}
422 Print expression value
. Only the @
var{format
} part of @
var{fmt
} is
428 .args_type
= "fmt:/,addr:i,index:i.",
429 .params
= "/fmt addr",
430 .help
= "I/O port read",
431 .mhandler
.cmd
= do_ioport_read
,
440 .args_type
= "fmt:/,addr:i,val:i",
441 .params
= "/fmt addr value",
442 .help
= "I/O port write",
443 .mhandler
.cmd
= do_ioport_write
,
452 .args_type
= "string:s,hold_time:i?",
453 .params
= "keys [hold_ms]",
454 .help
= "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
455 .mhandler
.cmd
= do_sendkey
,
459 @item sendkey @
var{keys
}
462 Send @
var{keys
} to the emulator
. @
var{keys
} could be the name of the
463 key or @code
{#
} followed by the raw value
in either decimal or hexadecimal
464 format
. Use @code
{-} to press several keys simultaneously
. Example
:
469 This command is useful to send keys that your graphical user
interface
470 intercepts at low level
, such as @code
{ctrl
-alt
-f1
} in X Window
.
474 .name
= "system_reset",
477 .help
= "reset the system",
478 .mhandler
.cmd
= hmp_system_reset
,
489 .name
= "system_powerdown",
492 .help
= "send system power down event",
493 .mhandler
.cmd
= hmp_system_powerdown
,
497 @item system_powerdown
498 @findex system_powerdown
500 Power down the
system (if supported
).
505 .args_type
= "start:i,size:i",
506 .params
= "addr size",
507 .help
= "compute the checksum of a memory region",
508 .mhandler
.cmd
= do_sum
,
512 @item sum @
var{addr
} @
var{size
}
515 Compute the checksum of a memory region
.
520 .args_type
= "devname:s",
522 .help
= "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
523 .mhandler
.cmd
= do_usb_add
,
527 @item usb_add @
var{devname
}
530 Add the USB device @
var{devname
}. For details of available devices see
536 .args_type
= "devname:s",
538 .help
= "remove USB device 'bus.addr'",
539 .mhandler
.cmd
= do_usb_del
,
543 @item usb_del @
var{devname
}
546 Remove the USB device @
var{devname
} from the QEMU virtual USB
547 hub
. @
var{devname
} has the syntax @code
{bus
.addr
}. Use the monitor
548 command @code
{info usb
} to see the devices you can remove
.
552 .name
= "device_add",
553 .args_type
= "device:O",
554 .params
= "driver[,prop=value][,...]",
555 .help
= "add device, like -device on the command line",
556 .user_print
= monitor_user_noop
,
557 .mhandler
.cmd_new
= do_device_add
,
561 @item device_add @
var{config
}
568 .name
= "device_del",
571 .help
= "remove device",
572 .user_print
= monitor_user_noop
,
573 .mhandler
.cmd_new
= do_device_del
,
577 @item device_del @
var{id
}
580 Remove device @
var{id
}.
585 .args_type
= "index:i",
587 .help
= "set the default CPU",
588 .mhandler
.cmd
= hmp_cpu
,
592 @item cpu @
var{index
}
598 .name
= "mouse_move",
599 .args_type
= "dx_str:s,dy_str:s,dz_str:s?",
600 .params
= "dx dy [dz]",
601 .help
= "send mouse move events",
602 .mhandler
.cmd
= do_mouse_move
,
606 @item mouse_move @
var{dx
} @
var{dy
} [@
var{dz
}]
608 Move the active mouse to the specified coordinates @
var{dx
} @
var{dy
}
609 with optional scroll axis @
var{dz
}.
613 .name
= "mouse_button",
614 .args_type
= "button_state:i",
616 .help
= "change mouse button state (1=L, 2=M, 4=R)",
617 .mhandler
.cmd
= do_mouse_button
,
621 @item mouse_button @
var{val
}
623 Change the active mouse button state @
var{val
} (1=L
, 2=M
, 4=R
).
628 .args_type
= "index:i",
630 .help
= "set which mouse device receives events",
631 .mhandler
.cmd
= do_mouse_set
,
635 @item mouse_set @
var{index
}
637 Set which mouse device receives events at given @
var{index
}, index
646 .name
= "wavcapture",
647 .args_type
= "path:F,freq:i?,bits:i?,nchannels:i?",
648 .params
= "path [frequency [bits [channels]]]",
649 .help
= "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
650 .mhandler
.cmd
= do_wav_capture
,
654 @item wavcapture @
var{filename
} [@
var{frequency
} [@
var{bits
} [@
var{channels
}]]]
656 Capture audio into @
var{filename
}. Using sample rate @
var{frequency
}
657 bits per sample @
var{bits
} and number of channels @
var{channels
}.
661 @item Sample rate
= 44100 Hz
- CD quality
663 @item Number of channels
= 2 - Stereo
669 .name
= "stopcapture",
671 .params
= "capture index",
672 .help
= "stop capture",
673 .mhandler
.cmd
= do_stop_capture
,
677 @item stopcapture @
var{index
}
679 Stop capture with a given @
var{index
}, index can be obtained with
687 .args_type
= "val:l,size:i,filename:s",
688 .params
= "addr size file",
689 .help
= "save to disk virtual memory dump starting at 'addr' of size 'size'",
690 .mhandler
.cmd
= hmp_memsave
,
694 @item memsave @
var{addr
} @
var{size
} @
var{file
}
696 save to disk virtual memory dump starting at @
var{addr
} of size @
var{size
}.
701 .args_type
= "val:l,size:i,filename:s",
702 .params
= "addr size file",
703 .help
= "save to disk physical memory dump starting at 'addr' of size 'size'",
704 .mhandler
.cmd
= hmp_pmemsave
,
708 @item pmemsave @
var{addr
} @
var{size
} @
var{file
}
710 save to disk physical memory dump starting at @
var{addr
} of size @
var{size
}.
715 .args_type
= "bootdevice:s",
716 .params
= "bootdevice",
717 .help
= "define new values for the boot device list",
718 .mhandler
.cmd
= do_boot_set
,
722 @item boot_set @
var{bootdevicelist
}
725 Define
new values
for the boot device list
. Those values will
override
726 the values specified on the command line through the @code
{-boot
} option
.
728 The values that can be specified
here depend on the machine type
, but are
729 the same that can be specified
in the @code
{-boot
} command line option
.
732 #
if defined(TARGET_I386
)
737 .help
= "inject an NMI on all guest's CPUs",
738 .mhandler
.cmd
= hmp_inject_nmi
,
744 Inject an NMI on the given
CPU (x86 only
).
749 .args_type
= "detach:-d,blk:-b,inc:-i,uri:s",
750 .params
= "[-d] [-b] [-i] uri",
751 .help
= "migrate to URI (using -d to not wait for completion)"
752 "\n\t\t\t -b for migration without shared storage with"
753 " full copy of disk\n\t\t\t -i for migration without "
754 "shared storage with incremental copy of disk "
755 "(base image shared between src and destination)",
756 .user_print
= monitor_user_noop
,
757 .mhandler
.cmd_new
= do_migrate
,
762 @item migrate
[-d
] [-b
] [-i
] @
var{uri
}
764 Migrate to @
var{uri
} (using -d to not wait
for completion
).
765 -b
for migration with full copy of disk
766 -i
for migration with incremental copy of
disk (base image is shared
)
770 .name
= "migrate_cancel",
773 .help
= "cancel the current VM migration",
774 .mhandler
.cmd
= hmp_migrate_cancel
,
779 @findex migrate_cancel
780 Cancel the current VM migration
.
784 .name
= "migrate_set_speed",
785 .args_type
= "value:o",
787 .help
= "set maximum speed (in bytes) for migrations. "
788 "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
789 .user_print
= monitor_user_noop
,
790 .mhandler
.cmd_new
= do_migrate_set_speed
,
794 @item migrate_set_speed @
var{value
}
795 @findex migrate_set_speed
796 Set maximum speed to @
var{value
} (in bytes
) for migrations
.
800 .name
= "migrate_set_downtime",
801 .args_type
= "value:T",
803 .help
= "set maximum tolerated downtime (in seconds) for migrations",
804 .mhandler
.cmd
= hmp_migrate_set_downtime
,
808 @item migrate_set_downtime @
var{second
}
809 @findex migrate_set_downtime
810 Set maximum tolerated
downtime (in seconds
) for migration
.
814 .name
= "client_migrate_info",
815 .args_type
= "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
816 .params
= "protocol hostname port tls-port cert-subject",
817 .help
= "send migration info to spice/vnc client",
818 .user_print
= monitor_user_noop
,
819 .mhandler
.cmd_async
= client_migrate_info
,
820 .flags
= MONITOR_CMD_ASYNC
,
824 @item client_migrate_info @
var{protocol
} @
var{hostname
} @
var{port
} @
var{tls
-port
} @
var{cert
-subject
}
825 @findex client_migrate_info
826 Set the spice
/vnc connection info
for the migration target
. The spice
/vnc
827 server will ask the spice
/vnc client to automatically reconnect
using the
828 new parameters (if specified
) once the vm migration finished successfully
.
832 .name
= "snapshot_blkdev",
833 .args_type
= "device:B,snapshot-file:s?,format:s?",
834 .params
= "device [new-image-file] [format]",
835 .help
= "initiates a live snapshot\n\t\t\t"
836 "of device. If a new image file is specified, the\n\t\t\t"
837 "new image file will become the new root image.\n\t\t\t"
838 "If format is specified, the snapshot file will\n\t\t\t"
839 "be created in that format. Otherwise the\n\t\t\t"
840 "snapshot will be internal! (currently unsupported)",
841 .mhandler
.cmd
= hmp_snapshot_blkdev
,
845 @item snapshot_blkdev
846 @findex snapshot_blkdev
847 Snapshot device
, using snapshot file as target
if provided
850 #
if defined(TARGET_I386
)
853 .args_type
= "pci_addr:s,opts:s",
854 .params
= "[[<domain>:]<bus>:]<slot>\n"
855 "[file=file][,if=type][,bus=n]\n"
856 "[,unit=m][,media=d][,index=i]\n"
857 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
858 "[,snapshot=on|off][,cache=on|off]\n"
859 "[,readonly=on|off][,copy-on-read=on|off]",
860 .help
= "add drive to PCI storage controller",
861 .mhandler
.cmd
= drive_hot_add
,
868 Add drive to PCI storage controller
.
871 #
if defined(TARGET_I386
)
874 .args_type
= "pci_addr:s,type:s,opts:s?",
875 .params
= "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
876 .help
= "hot-add PCI device",
877 .mhandler
.cmd
= pci_device_hot_add
,
887 #
if defined(TARGET_I386
)
890 .args_type
= "pci_addr:s",
891 .params
= "[[<domain>:]<bus>:]<slot>",
892 .help
= "hot remove PCI device",
893 .mhandler
.cmd
= do_pci_device_hot_remove
,
900 Hot remove PCI device
.
904 .name
= "pcie_aer_inject_error",
905 .args_type
= "advisory_non_fatal:-a,correctable:-c,"
906 "id:s,error_status:s,"
907 "header0:i?,header1:i?,header2:i?,header3:i?,"
908 "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?",
909 .params
= "[-a] [-c] id "
910 "<error_status> [<tlp header> [<tlp header prefix>]]",
911 .help
= "inject pcie aer error\n\t\t\t"
912 " -a for advisory non fatal error\n\t\t\t"
913 " -c for correctable error\n\t\t\t"
914 "<id> = qdev device id\n\t\t\t"
915 "<error_status> = error string or 32bit\n\t\t\t"
916 "<tlb header> = 32bit x 4\n\t\t\t"
917 "<tlb header prefix> = 32bit x 4",
918 .user_print
= pcie_aer_inject_error_print
,
919 .mhandler
.cmd_new
= do_pcie_aer_inejct_error
,
923 @item pcie_aer_inject_error
924 @findex pcie_aer_inject_error
925 Inject PCIe AER error
929 .name
= "host_net_add",
930 .args_type
= "device:s,opts:s?",
931 .params
= "tap|user|socket|vde|dump [options]",
932 .help
= "add host VLAN client",
933 .mhandler
.cmd
= net_host_device_add
,
939 Add host VLAN client
.
943 .name
= "host_net_remove",
944 .args_type
= "vlan_id:i,device:s",
945 .params
= "vlan_id name",
946 .help
= "remove host VLAN client",
947 .mhandler
.cmd
= net_host_device_remove
,
951 @item host_net_remove
952 @findex host_net_remove
953 Remove host VLAN client
.
957 .name
= "netdev_add",
958 .args_type
= "netdev:O",
959 .params
= "[user|tap|socket],id=str[,prop=value][,...]",
960 .help
= "add host network device",
961 .user_print
= monitor_user_noop
,
962 .mhandler
.cmd_new
= do_netdev_add
,
968 Add host network device
.
972 .name
= "netdev_del",
975 .help
= "remove host network device",
976 .user_print
= monitor_user_noop
,
977 .mhandler
.cmd_new
= do_netdev_del
,
983 Remove host network device
.
988 .name
= "hostfwd_add",
989 .args_type
= "arg1:s,arg2:s?,arg3:s?",
990 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
991 .help
= "redirect TCP or UDP connections from host to guest (requires -net user)",
992 .mhandler
.cmd
= net_slirp_hostfwd_add
,
998 Redirect TCP or UDP connections from host to
guest (requires
-net user
).
1003 .name
= "hostfwd_remove",
1004 .args_type
= "arg1:s,arg2:s?,arg3:s?",
1005 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
1006 .help
= "remove host-to-guest TCP or UDP redirection",
1007 .mhandler
.cmd
= net_slirp_hostfwd_remove
,
1012 @item hostfwd_remove
1013 @findex hostfwd_remove
1014 Remove host
-to
-guest TCP or UDP redirection
.
1019 .args_type
= "value:M",
1021 .help
= "request VM to change its memory allocation (in MB)",
1022 .mhandler
.cmd
= hmp_balloon
,
1026 @item balloon @
var{value
}
1028 Request VM to change its memory allocation to @
var{value
} (in MB
).
1033 .args_type
= "name:s,up:b",
1034 .params
= "name on|off",
1035 .help
= "change the link status of a network adapter",
1036 .mhandler
.cmd
= hmp_set_link
,
1040 @item set_link @
var{name
} [on|off
]
1042 Switch link @
var{name
} on (i
.e
. up
) or
off (i
.e
. down
).
1046 .name
= "watchdog_action",
1047 .args_type
= "action:s",
1048 .params
= "[reset|shutdown|poweroff|pause|debug|none]",
1049 .help
= "change watchdog action",
1050 .mhandler
.cmd
= do_watchdog_action
,
1054 @item watchdog_action
1055 @findex watchdog_action
1056 Change watchdog action
.
1061 .args_type
= "aclname:s",
1062 .params
= "aclname",
1063 .help
= "list rules in the access control list",
1064 .mhandler
.cmd
= do_acl_show
,
1068 @item acl_show @
var{aclname
}
1070 List all the matching rules
in the access control list
, and the
default
1071 policy
. There are currently two named access control lists
,
1072 @
var{vnc
.x509dname
} and @
var{vnc
.username
} matching on the x509 client
1073 certificate distinguished name
, and SASL username respectively
.
1077 .name
= "acl_policy",
1078 .args_type
= "aclname:s,policy:s",
1079 .params
= "aclname allow|deny",
1080 .help
= "set default access control list policy",
1081 .mhandler
.cmd
= do_acl_policy
,
1085 @item acl_policy @
var{aclname
} @code
{allow|deny
}
1087 Set the
default access control list policy
, used
in the event that
1088 none of the explicit rules match
. The
default policy at startup is
1094 .args_type
= "aclname:s,match:s,policy:s,index:i?",
1095 .params
= "aclname match allow|deny [index]",
1096 .help
= "add a match rule to the access control list",
1097 .mhandler
.cmd
= do_acl_add
,
1101 @item acl_add @
var{aclname
} @
var{match
} @code
{allow|deny
} [@
var{index
}]
1103 Add a match rule to the access control list
, allowing or denying access
.
1104 The match will normally be an exact username or x509 distinguished name
,
1105 but can optionally include wildcard globs
. eg @code
{*@@EXAMPLE
.COM
} to
1106 allow all users
in the @code
{EXAMPLE
.COM
} kerberos realm
. The match will
1107 normally be appended to the end of the ACL
, but can be inserted
1108 earlier
in the list
if the optional @
var{index
} parameter is supplied
.
1112 .name
= "acl_remove",
1113 .args_type
= "aclname:s,match:s",
1114 .params
= "aclname match",
1115 .help
= "remove a match rule from the access control list",
1116 .mhandler
.cmd
= do_acl_remove
,
1120 @item acl_remove @
var{aclname
} @
var{match
}
1122 Remove the specified match rule from the access control list
.
1126 .name
= "acl_reset",
1127 .args_type
= "aclname:s",
1128 .params
= "aclname",
1129 .help
= "reset the access control list",
1130 .mhandler
.cmd
= do_acl_reset
,
1134 @item acl_reset @
var{aclname
}
1136 Remove all matches from the access control list
, and set the
default
1137 policy back to @code
{deny
}.
1140 #
if defined(TARGET_I386
)
1144 .args_type
= "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1145 .params
= "[-b] cpu bank status mcgstatus addr misc",
1146 .help
= "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
1147 .mhandler
.cmd
= do_inject_mce
,
1152 @item mce @
var{cpu
} @
var{bank
} @
var{status
} @
var{mcgstatus
} @
var{addr
} @
var{misc
}
1154 Inject an MCE on the given
CPU (x86 only
).
1159 .args_type
= "fdname:s",
1160 .params
= "getfd name",
1161 .help
= "receive a file descriptor via SCM rights and assign it a name",
1162 .user_print
= monitor_user_noop
,
1163 .mhandler
.cmd_new
= do_getfd
,
1167 @item getfd @
var{fdname
}
1169 If a file descriptor is passed alongside
this command
using the SCM_RIGHTS
1170 mechanism on unix sockets
, it is stored
using the name @
var{fdname
} for
1171 later use by other monitor commands
.
1176 .args_type
= "fdname:s",
1177 .params
= "closefd name",
1178 .help
= "close a file descriptor previously passed via SCM rights",
1179 .user_print
= monitor_user_noop
,
1180 .mhandler
.cmd_new
= do_closefd
,
1184 @item closefd @
var{fdname
}
1186 Close the file descriptor previously assigned to @
var{fdname
} using the
1187 @code
{getfd
} command
. This is only needed
if the file descriptor was
never
1188 used by another monitor command
.
1192 .name
= "block_passwd",
1193 .args_type
= "device:B,password:s",
1194 .params
= "block_passwd device password",
1195 .help
= "set the password of encrypted block devices",
1196 .mhandler
.cmd
= hmp_block_passwd
,
1200 @item block_set_io_throttle @
var{device
} @
var{bps
} @
var{bps_rd
} @
var{bps_wr
} @
var{iops
} @
var{iops_rd
} @
var{iops_wr
}
1201 @findex block_set_io_throttle
1202 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
}
1206 .name
= "block_set_io_throttle",
1207 .args_type
= "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
1208 .params
= "device bps bps_rd bps_wr iops iops_rd iops_wr",
1209 .help
= "change I/O throttle limits for a block drive",
1210 .user_print
= monitor_user_noop
,
1211 .mhandler
.cmd_new
= do_block_set_io_throttle
,
1215 @item block_passwd @
var{device
} @
var{password
}
1216 @findex block_passwd
1217 Set the encrypted device @
var{device
} password to @
var{password
}
1221 .name
= "set_password",
1222 .args_type
= "protocol:s,password:s,connected:s?",
1223 .params
= "protocol password action-if-connected",
1224 .help
= "set spice/vnc password",
1225 .user_print
= monitor_user_noop
,
1226 .mhandler
.cmd_new
= set_password
,
1230 @item set_password
[ vnc | spice
] password
[ action
-if-connected
]
1231 @findex set_password
1233 Change spice
/vnc password
. Use zero to make the password stay valid
1234 forever
. @
var{action
-if-connected
} specifies what should happen
in
1235 case a connection is established
: @
var{fail
} makes the password change
1236 fail
. @
var{disconnect
} changes the password and disconnects the
1237 client
. @
var{keep
} changes the password and keeps the connection up
.
1238 @
var{keep
} is the
default.
1242 .name
= "expire_password",
1243 .args_type
= "protocol:s,time:s",
1244 .params
= "protocol time",
1245 .help
= "set spice/vnc password expire-time",
1246 .user_print
= monitor_user_noop
,
1247 .mhandler
.cmd_new
= expire_password
,
1251 @item expire_password
[ vnc | spice
] expire
-time
1252 @findex expire_password
1254 Specify when a password
for spice
/vnc becomes
1255 invalid
. @
var{expire
-time
} accepts
:
1259 Invalidate password instantly
.
1262 Password stays valid forever
.
1265 Password stays valid
for @
var{nsec
} seconds starting now
.
1268 Password is invalidated at the given time
. @
var{nsec
} are the seconds
1269 passed since
1970, i
.e
. unix epoch
.
1276 .args_type
= "item:s?",
1277 .params
= "[subcommand]",
1278 .help
= "show various information about the system state",
1279 .mhandler
.cmd
= do_info
,
1283 @item info @
var{subcommand
}
1285 Show various information about the system state
.
1289 show the version of QEMU
1291 show the various VLANs and the associated devices
1293 show the character devices
1295 show the block devices
1296 @item info blockstats
1297 show block device statistics
1298 @item info registers
1299 show the cpu registers
1301 show infos
for each CPU
1303 show the command line history
1305 show the interrupts
statistics (if available
)
1307 show
i8259 (PIC
) state
1309 show emulated PCI device info
1311 show virtual to physical memory
mappings (i386
, SH4
, SPARC
, and PPC only
)
1313 show the active virtual memory
mappings (i386 only
)
1315 show
dynamic compiler info
1317 show NUMA information
1319 show KVM information
1321 show USB devices plugged on the virtual USB hub
1323 show all USB host devices
1325 show profiling information
1327 show information about active capturing
1328 @item info snapshots
1329 show list of VM snapshots
1331 show the current VM
status (running|paused
)
1333 show guest PCMCIA status
1335 show which guest mouse is receiving events
1337 show the vnc server status
1339 show the current VM name
1341 show the current VM UUID
1345 show user network stack connection states
1347 show migration status
1349 show balloon information
1353 show qdev device model list
1359 #ifdef CONFIG_TRACE_SIMPLE
1362 show contents of
trace buffer
1367 @item info
trace-events
1368 show available
trace events and their state