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_new
= do_quit
,
57 .args_type
= "force:-f,device:B",
58 .params
= "[-f] device",
59 .help
= "eject a removable medium (use -f to force it)",
60 .user_print
= monitor_user_noop
,
61 .mhandler
.cmd_new
= do_eject
,
65 @item eject
[-f
] @
var{device
}
67 Eject a removable
medium (use
-f to force it
).
74 .help
= "remove host block device",
75 .user_print
= monitor_user_noop
,
76 .mhandler
.cmd_new
= do_drive_del
,
80 @item drive_del @
var{device
}
82 Remove host block device
. The result is that guest generated IO is no longer
83 submitted against the host device underlying the disk
. Once a drive has
84 been deleted
, the QEMU Block layer returns
-EIO which results
in IO
85 errors
in the guest
for applications that are reading
/writing to the device
.
90 .args_type
= "device:B,target:F,arg:s?",
91 .params
= "device filename [format]",
92 .help
= "change a removable medium, optional format",
93 .user_print
= monitor_user_noop
,
94 .mhandler
.cmd_new
= do_change
,
98 @item change @
var{device
} @
var{setting
}
101 Change the configuration of a device
.
104 @item change @
var{diskdevice
} @
var{filename
} [@
var{format
}]
105 Change the medium
for a removable disk device to point to @
var{filename
}. eg
108 (qemu
) change ide1
-cd0
/path
/to
/some
.iso
111 @
var{format
} is optional
.
113 @item change vnc @
var{display
},@
var{options
}
114 Change the configuration of the VNC server
. The valid syntax
for @
var{display
}
115 and @
var{options
} are described at @ref
{sec_invocation
}. eg
118 (qemu
) change vnc localhost
:1
121 @item change vnc password
[@
var{password
}]
123 Change the password associated with the VNC server
. If the
new password is not
124 supplied
, the monitor will prompt
for it to be entered
. VNC passwords are only
125 significant up to
8 letters
. eg
128 (qemu
) change vnc password
136 .name
= "screendump",
137 .args_type
= "filename:F",
138 .params
= "filename",
139 .help
= "save screen into PPM image 'filename'",
140 .user_print
= monitor_user_noop
,
141 .mhandler
.cmd_new
= do_screen_dump
,
145 @item screendump @
var{filename
}
147 Save screen into PPM image @
var{filename
}.
152 .args_type
= "filename:F",
153 .params
= "filename",
154 .help
= "output logs to 'filename'",
155 .mhandler
.cmd
= do_logfile
,
159 @item logfile @
var{filename
}
161 Output logs to @
var{filename
}.
164 #ifdef CONFIG_SIMPLE_TRACE
166 .name
= "trace-event",
167 .args_type
= "name:s,option:b",
168 .params
= "name on|off",
169 .help
= "changes status of a specific trace event",
170 .mhandler
.cmd
= do_change_trace_event_state
,
176 changes status of a
trace event
180 .name
= "trace-file",
181 .args_type
= "op:s?,arg:F?",
182 .params
= "on|off|flush|set [arg]",
183 .help
= "open, close, or flush trace file, or set a new file name",
184 .mhandler
.cmd
= do_trace_file
,
188 @item
trace-file on|off|flush
190 Open
, close
, or flush the
trace file
. If no argument is given
, the status of the
trace file is displayed
.
196 .args_type
= "items:s",
197 .params
= "item1[,...]",
198 .help
= "activate logging of the specified items to '/tmp/qemu.log'",
199 .mhandler
.cmd
= do_log
,
203 @item log @
var{item1
}[,...]
205 Activate logging of the specified items to @file
{/tmp
/qemu
.log
}.
210 .args_type
= "name:s?",
211 .params
= "[tag|id]",
212 .help
= "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
213 .mhandler
.cmd
= do_savevm
,
217 @item savevm
[@
var{tag
}|@
var{id
}]
219 Create a snapshot of the whole virtual machine
. If @
var{tag
} is
220 provided
, it is used as human readable identifier
. If there is already
221 a snapshot with the same tag or ID
, it is replaced
. More info at
227 .args_type
= "name:s",
229 .help
= "restore a VM snapshot from its tag or id",
230 .mhandler
.cmd
= do_loadvm
,
234 @item loadvm @
var{tag
}|@
var{id
}
236 Set the whole virtual machine to the snapshot identified by the tag
237 @
var{tag
} or the unique snapshot ID @
var{id
}.
242 .args_type
= "name:s",
244 .help
= "delete a VM snapshot from its tag or id",
245 .mhandler
.cmd
= do_delvm
,
249 @item delvm @
var{tag
}|@
var{id
}
251 Delete the snapshot identified by @
var{tag
} or @
var{id
}.
255 .name
= "singlestep",
256 .args_type
= "option:s?",
257 .params
= "[on|off]",
258 .help
= "run emulation in singlestep mode or switch to normal mode",
259 .mhandler
.cmd
= do_singlestep
,
263 @item singlestep
[off
]
265 Run the emulation
in single step mode
.
266 If called with option off
, the emulation returns to normal mode
.
273 .help
= "stop emulation",
274 .user_print
= monitor_user_noop
,
275 .mhandler
.cmd_new
= do_stop
,
288 .help
= "resume emulation",
289 .user_print
= monitor_user_noop
,
290 .mhandler
.cmd_new
= do_cont
,
301 .args_type
= "device:s?",
302 .params
= "[device]",
303 .help
= "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
304 .mhandler
.cmd
= do_gdbserver
,
308 @item gdbserver
[@
var{port
}]
310 Start gdbserver
session (default @
var{port
}=1234)
315 .args_type
= "fmt:/,addr:l",
316 .params
= "/fmt addr",
317 .help
= "virtual memory dump starting at 'addr'",
318 .mhandler
.cmd
= do_memory_dump
,
322 @item x
/fmt @
var{addr
}
324 Virtual memory dump starting at @
var{addr
}.
329 .args_type
= "fmt:/,addr:l",
330 .params
= "/fmt addr",
331 .help
= "physical memory dump starting at 'addr'",
332 .mhandler
.cmd
= do_physical_memory_dump
,
336 @item xp
/@
var{fmt
} @
var{addr
}
338 Physical memory dump starting at @
var{addr
}.
340 @
var{fmt
} is a format which tells the command how to format the
341 data
. Its syntax is
: @option
{/@
{count@
}@
{format@
}@
{size@
}}
345 is the number of items to be dumped
.
348 can be
x (hex
), d (signed decimal
), u (unsigned decimal
), o (octal
),
349 c (char
) or
i (asm instruction
).
352 can be
b (8 bits
), h (16 bits
), w (32 bits
) or
g (64 bits
). On x86
,
353 @code
{h
} or @code
{w
} can be specified with the @code
{i
} format to
354 respectively select
16 or
32 bit code instruction size
.
361 Dump
10 instructions at the current instruction pointer
:
366 0x90107065: lea
0x0(%esi
,1),%esi
367 0x90107069: lea
0x0(%edi
,1),%edi
369 0x90107071: jmp
0x90107080
377 Dump
80 16 bit values at the start of the video memory
.
379 (qemu
) xp
/80hx
0xb8000
380 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
381 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
382 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
383 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
384 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
385 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
386 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
387 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
388 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
389 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
396 .args_type
= "fmt:/,val:l",
397 .params
= "/fmt expr",
398 .help
= "print expression value (use $reg for CPU register access)",
399 .mhandler
.cmd
= do_print
,
403 @item p or print
/@
var{fmt
} @
var{expr
}
406 Print expression value
. Only the @
var{format
} part of @
var{fmt
} is
412 .args_type
= "fmt:/,addr:i,index:i.",
413 .params
= "/fmt addr",
414 .help
= "I/O port read",
415 .mhandler
.cmd
= do_ioport_read
,
424 .args_type
= "fmt:/,addr:i,val:i",
425 .params
= "/fmt addr value",
426 .help
= "I/O port write",
427 .mhandler
.cmd
= do_ioport_write
,
436 .args_type
= "string:s,hold_time:i?",
437 .params
= "keys [hold_ms]",
438 .help
= "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
439 .mhandler
.cmd
= do_sendkey
,
443 @item sendkey @
var{keys
}
446 Send @
var{keys
} to the emulator
. @
var{keys
} could be the name of the
447 key or @code
{#
} followed by the raw value
in either decimal or hexadecimal
448 format
. Use @code
{-} to press several keys simultaneously
. Example
:
453 This command is useful to send keys that your graphical user
interface
454 intercepts at low level
, such as @code
{ctrl
-alt
-f1
} in X Window
.
458 .name
= "system_reset",
461 .help
= "reset the system",
462 .user_print
= monitor_user_noop
,
463 .mhandler
.cmd_new
= do_system_reset
,
474 .name
= "system_powerdown",
477 .help
= "send system power down event",
478 .user_print
= monitor_user_noop
,
479 .mhandler
.cmd_new
= do_system_powerdown
,
483 @item system_powerdown
484 @findex system_powerdown
486 Power down the
system (if supported
).
491 .args_type
= "start:i,size:i",
492 .params
= "addr size",
493 .help
= "compute the checksum of a memory region",
494 .mhandler
.cmd
= do_sum
,
498 @item sum @
var{addr
} @
var{size
}
501 Compute the checksum of a memory region
.
506 .args_type
= "devname:s",
508 .help
= "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
509 .mhandler
.cmd
= do_usb_add
,
513 @item usb_add @
var{devname
}
516 Add the USB device @
var{devname
}. For details of available devices see
522 .args_type
= "devname:s",
524 .help
= "remove USB device 'bus.addr'",
525 .mhandler
.cmd
= do_usb_del
,
529 @item usb_del @
var{devname
}
532 Remove the USB device @
var{devname
} from the QEMU virtual USB
533 hub
. @
var{devname
} has the syntax @code
{bus
.addr
}. Use the monitor
534 command @code
{info usb
} to see the devices you can remove
.
538 .name
= "device_add",
539 .args_type
= "device:O",
540 .params
= "driver[,prop=value][,...]",
541 .help
= "add device, like -device on the command line",
542 .user_print
= monitor_user_noop
,
543 .mhandler
.cmd_new
= do_device_add
,
547 @item device_add @
var{config
}
554 .name
= "device_del",
557 .help
= "remove device",
558 .user_print
= monitor_user_noop
,
559 .mhandler
.cmd_new
= do_device_del
,
563 @item device_del @
var{id
}
566 Remove device @
var{id
}.
571 .args_type
= "index:i",
573 .help
= "set the default CPU",
574 .user_print
= monitor_user_noop
,
575 .mhandler
.cmd_new
= do_cpu_set
,
579 @item cpu @
var{index
}
585 .name
= "mouse_move",
586 .args_type
= "dx_str:s,dy_str:s,dz_str:s?",
587 .params
= "dx dy [dz]",
588 .help
= "send mouse move events",
589 .mhandler
.cmd
= do_mouse_move
,
593 @item mouse_move @
var{dx
} @
var{dy
} [@
var{dz
}]
595 Move the active mouse to the specified coordinates @
var{dx
} @
var{dy
}
596 with optional scroll axis @
var{dz
}.
600 .name
= "mouse_button",
601 .args_type
= "button_state:i",
603 .help
= "change mouse button state (1=L, 2=M, 4=R)",
604 .mhandler
.cmd
= do_mouse_button
,
608 @item mouse_button @
var{val
}
610 Change the active mouse button state @
var{val
} (1=L
, 2=M
, 4=R
).
615 .args_type
= "index:i",
617 .help
= "set which mouse device receives events",
618 .mhandler
.cmd
= do_mouse_set
,
622 @item mouse_set @
var{index
}
624 Set which mouse device receives events at given @
var{index
}, index
633 .name
= "wavcapture",
634 .args_type
= "path:F,freq:i?,bits:i?,nchannels:i?",
635 .params
= "path [frequency [bits [channels]]]",
636 .help
= "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
637 .mhandler
.cmd
= do_wav_capture
,
641 @item wavcapture @
var{filename
} [@
var{frequency
} [@
var{bits
} [@
var{channels
}]]]
643 Capture audio into @
var{filename
}. Using sample rate @
var{frequency
}
644 bits per sample @
var{bits
} and number of channels @
var{channels
}.
648 @item Sample rate
= 44100 Hz
- CD quality
650 @item Number of channels
= 2 - Stereo
656 .name
= "stopcapture",
658 .params
= "capture index",
659 .help
= "stop capture",
660 .mhandler
.cmd
= do_stop_capture
,
664 @item stopcapture @
var{index
}
666 Stop capture with a given @
var{index
}, index can be obtained with
674 .args_type
= "val:l,size:i,filename:s",
675 .params
= "addr size file",
676 .help
= "save to disk virtual memory dump starting at 'addr' of size 'size'",
677 .user_print
= monitor_user_noop
,
678 .mhandler
.cmd_new
= do_memory_save
,
682 @item memsave @
var{addr
} @
var{size
} @
var{file
}
684 save to disk virtual memory dump starting at @
var{addr
} of size @
var{size
}.
689 .args_type
= "val:l,size:i,filename:s",
690 .params
= "addr size file",
691 .help
= "save to disk physical memory dump starting at 'addr' of size 'size'",
692 .user_print
= monitor_user_noop
,
693 .mhandler
.cmd_new
= do_physical_memory_save
,
697 @item pmemsave @
var{addr
} @
var{size
} @
var{file
}
699 save to disk physical memory dump starting at @
var{addr
} of size @
var{size
}.
704 .args_type
= "bootdevice:s",
705 .params
= "bootdevice",
706 .help
= "define new values for the boot device list",
707 .mhandler
.cmd
= do_boot_set
,
711 @item boot_set @
var{bootdevicelist
}
714 Define
new values
for the boot device list
. Those values will
override
715 the values specified on the command line through the @code
{-boot
} option
.
717 The values that can be specified
here depend on the machine type
, but are
718 the same that can be specified
in the @code
{-boot
} command line option
.
721 #
if defined(TARGET_I386
)
724 .args_type
= "cpu_index:i",
726 .help
= "inject an NMI on the given CPU",
727 .mhandler
.cmd
= do_inject_nmi
,
733 Inject an NMI on the given
CPU (x86 only
).
738 .args_type
= "detach:-d,blk:-b,inc:-i,uri:s",
739 .params
= "[-d] [-b] [-i] uri",
740 .help
= "migrate to URI (using -d to not wait for completion)"
741 "\n\t\t\t -b for migration without shared storage with"
742 " full copy of disk\n\t\t\t -i for migration without "
743 "shared storage with incremental copy of disk "
744 "(base image shared between src and destination)",
745 .user_print
= monitor_user_noop
,
746 .mhandler
.cmd_new
= do_migrate
,
751 @item migrate
[-d
] [-b
] [-i
] @
var{uri
}
753 Migrate to @
var{uri
} (using -d to not wait
for completion
).
754 -b
for migration with full copy of disk
755 -i
for migration with incremental copy of
disk (base image is shared
)
759 .name
= "migrate_cancel",
762 .help
= "cancel the current VM migration",
763 .user_print
= monitor_user_noop
,
764 .mhandler
.cmd_new
= do_migrate_cancel
,
769 @findex migrate_cancel
770 Cancel the current VM migration
.
774 .name
= "migrate_set_speed",
775 .args_type
= "value:o",
777 .help
= "set maximum speed (in bytes) for migrations. "
778 "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
779 .user_print
= monitor_user_noop
,
780 .mhandler
.cmd_new
= do_migrate_set_speed
,
784 @item migrate_set_speed @
var{value
}
785 @findex migrate_set_speed
786 Set maximum speed to @
var{value
} (in bytes
) for migrations
.
790 .name
= "migrate_set_downtime",
791 .args_type
= "value:T",
793 .help
= "set maximum tolerated downtime (in seconds) for migrations",
794 .user_print
= monitor_user_noop
,
795 .mhandler
.cmd_new
= do_migrate_set_downtime
,
799 @item migrate_set_downtime @
var{second
}
800 @findex migrate_set_downtime
801 Set maximum tolerated
downtime (in seconds
) for migration
.
805 .name
= "snapshot_blkdev",
806 .args_type
= "device:s,snapshot_file:s?,format:s?",
807 .params
= "device [new-image-file] [format]",
808 .help
= "initiates a live snapshot\n\t\t\t"
809 "of device. If a new image file is specified, the\n\t\t\t"
810 "new image file will become the new root image.\n\t\t\t"
811 "If format is specified, the snapshot file will\n\t\t\t"
812 "be created in that format. Otherwise the\n\t\t\t"
813 "snapshot will be internal! (currently unsupported)",
814 .mhandler
.cmd_new
= do_snapshot_blkdev
,
818 @item snapshot_blkdev
819 @findex snapshot_blkdev
820 Snapshot device
, using snapshot file as target
if provided
823 #
if defined(TARGET_I386
)
826 .args_type
= "pci_addr:s,opts:s",
827 .params
= "[[<domain>:]<bus>:]<slot>\n"
828 "[file=file][,if=type][,bus=n]\n"
829 "[,unit=m][,media=d][index=i]\n"
830 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
831 "[snapshot=on|off][,cache=on|off]",
832 .help
= "add drive to PCI storage controller",
833 .mhandler
.cmd
= drive_hot_add
,
840 Add drive to PCI storage controller
.
843 #
if defined(TARGET_I386
)
846 .args_type
= "pci_addr:s,type:s,opts:s?",
847 .params
= "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
848 .help
= "hot-add PCI device",
849 .mhandler
.cmd
= pci_device_hot_add
,
859 #
if defined(TARGET_I386
)
862 .args_type
= "pci_addr:s",
863 .params
= "[[<domain>:]<bus>:]<slot>",
864 .help
= "hot remove PCI device",
865 .mhandler
.cmd
= do_pci_device_hot_remove
,
872 Hot remove PCI device
.
876 .name
= "host_net_add",
877 .args_type
= "device:s,opts:s?",
878 .params
= "tap|user|socket|vde|dump [options]",
879 .help
= "add host VLAN client",
880 .mhandler
.cmd
= net_host_device_add
,
886 Add host VLAN client
.
890 .name
= "host_net_remove",
891 .args_type
= "vlan_id:i,device:s",
892 .params
= "vlan_id name",
893 .help
= "remove host VLAN client",
894 .mhandler
.cmd
= net_host_device_remove
,
898 @item host_net_remove
899 @findex host_net_remove
900 Remove host VLAN client
.
904 .name
= "netdev_add",
905 .args_type
= "netdev:O",
906 .params
= "[user|tap|socket],id=str[,prop=value][,...]",
907 .help
= "add host network device",
908 .user_print
= monitor_user_noop
,
909 .mhandler
.cmd_new
= do_netdev_add
,
915 Add host network device
.
919 .name
= "netdev_del",
922 .help
= "remove host network device",
923 .user_print
= monitor_user_noop
,
924 .mhandler
.cmd_new
= do_netdev_del
,
930 Remove host network device
.
935 .name
= "hostfwd_add",
936 .args_type
= "arg1:s,arg2:s?,arg3:s?",
937 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
938 .help
= "redirect TCP or UDP connections from host to guest (requires -net user)",
939 .mhandler
.cmd
= net_slirp_hostfwd_add
,
945 Redirect TCP or UDP connections from host to
guest (requires
-net user
).
950 .name
= "hostfwd_remove",
951 .args_type
= "arg1:s,arg2:s?,arg3:s?",
952 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
953 .help
= "remove host-to-guest TCP or UDP redirection",
954 .mhandler
.cmd
= net_slirp_hostfwd_remove
,
960 @findex hostfwd_remove
961 Remove host
-to
-guest TCP or UDP redirection
.
966 .args_type
= "value:M",
968 .help
= "request VM to change its memory allocation (in MB)",
969 .user_print
= monitor_user_noop
,
970 .mhandler
.cmd_async
= do_balloon
,
971 .flags
= MONITOR_CMD_ASYNC
,
975 @item balloon @
var{value
}
977 Request VM to change its memory allocation to @
var{value
} (in MB
).
982 .args_type
= "name:s,up:b",
983 .params
= "name on|off",
984 .help
= "change the link status of a network adapter",
985 .user_print
= monitor_user_noop
,
986 .mhandler
.cmd_new
= do_set_link
,
990 @item set_link @
var{name
} [on|off
]
992 Switch link @
var{name
} on (i
.e
. up
) or
off (i
.e
. down
).
996 .name
= "watchdog_action",
997 .args_type
= "action:s",
998 .params
= "[reset|shutdown|poweroff|pause|debug|none]",
999 .help
= "change watchdog action",
1000 .mhandler
.cmd
= do_watchdog_action
,
1004 @item watchdog_action
1005 @findex watchdog_action
1006 Change watchdog action
.
1011 .args_type
= "aclname:s",
1012 .params
= "aclname",
1013 .help
= "list rules in the access control list",
1014 .mhandler
.cmd
= do_acl_show
,
1018 @item acl_show @
var{aclname
}
1020 List all the matching rules
in the access control list
, and the
default
1021 policy
. There are currently two named access control lists
,
1022 @
var{vnc
.x509dname
} and @
var{vnc
.username
} matching on the x509 client
1023 certificate distinguished name
, and SASL username respectively
.
1027 .name
= "acl_policy",
1028 .args_type
= "aclname:s,policy:s",
1029 .params
= "aclname allow|deny",
1030 .help
= "set default access control list policy",
1031 .mhandler
.cmd
= do_acl_policy
,
1035 @item acl_policy @
var{aclname
} @code
{allow|deny
}
1037 Set the
default access control list policy
, used
in the event that
1038 none of the explicit rules match
. The
default policy at startup is
1044 .args_type
= "aclname:s,match:s,policy:s,index:i?",
1045 .params
= "aclname match allow|deny [index]",
1046 .help
= "add a match rule to the access control list",
1047 .mhandler
.cmd
= do_acl_add
,
1051 @item acl_add @
var{aclname
} @
var{match
} @code
{allow|deny
} [@
var{index
}]
1053 Add a match rule to the access control list
, allowing or denying access
.
1054 The match will normally be an exact username or x509 distinguished name
,
1055 but can optionally include wildcard globs
. eg @code
{*@@EXAMPLE
.COM
} to
1056 allow all users
in the @code
{EXAMPLE
.COM
} kerberos realm
. The match will
1057 normally be appended to the end of the ACL
, but can be inserted
1058 earlier
in the list
if the optional @
var{index
} parameter is supplied
.
1062 .name
= "acl_remove",
1063 .args_type
= "aclname:s,match:s",
1064 .params
= "aclname match",
1065 .help
= "remove a match rule from the access control list",
1066 .mhandler
.cmd
= do_acl_remove
,
1070 @item acl_remove @
var{aclname
} @
var{match
}
1072 Remove the specified match rule from the access control list
.
1076 .name
= "acl_reset",
1077 .args_type
= "aclname:s",
1078 .params
= "aclname",
1079 .help
= "reset the access control list",
1080 .mhandler
.cmd
= do_acl_reset
,
1084 @item acl_reset @
var{aclname
}
1086 Remove all matches from the access control list
, and set the
default
1087 policy back to @code
{deny
}.
1090 #
if defined(TARGET_I386
)
1094 .args_type
= "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1095 .params
= "cpu bank status mcgstatus addr misc",
1096 .help
= "inject a MCE on the given CPU",
1097 .mhandler
.cmd
= do_inject_mce
,
1102 @item mce @
var{cpu
} @
var{bank
} @
var{status
} @
var{mcgstatus
} @
var{addr
} @
var{misc
}
1104 Inject an MCE on the given
CPU (x86 only
).
1109 .args_type
= "fdname:s",
1110 .params
= "getfd name",
1111 .help
= "receive a file descriptor via SCM rights and assign it a name",
1112 .user_print
= monitor_user_noop
,
1113 .mhandler
.cmd_new
= do_getfd
,
1117 @item getfd @
var{fdname
}
1119 If a file descriptor is passed alongside
this command
using the SCM_RIGHTS
1120 mechanism on unix sockets
, it is stored
using the name @
var{fdname
} for
1121 later use by other monitor commands
.
1126 .args_type
= "fdname:s",
1127 .params
= "closefd name",
1128 .help
= "close a file descriptor previously passed via SCM rights",
1129 .user_print
= monitor_user_noop
,
1130 .mhandler
.cmd_new
= do_closefd
,
1134 @item closefd @
var{fdname
}
1136 Close the file descriptor previously assigned to @
var{fdname
} using the
1137 @code
{getfd
} command
. This is only needed
if the file descriptor was
never
1138 used by another monitor command
.
1142 .name
= "block_passwd",
1143 .args_type
= "device:B,password:s",
1144 .params
= "block_passwd device password",
1145 .help
= "set the password of encrypted block devices",
1146 .user_print
= monitor_user_noop
,
1147 .mhandler
.cmd_new
= do_block_set_passwd
,
1151 @item block_passwd @
var{device
} @
var{password
}
1152 @findex block_passwd
1153 Set the encrypted device @
var{device
} password to @
var{password
}
1157 .name
= "set_password",
1158 .args_type
= "protocol:s,password:s,connected:s?",
1159 .params
= "protocol password action-if-connected",
1160 .help
= "set spice/vnc password",
1161 .user_print
= monitor_user_noop
,
1162 .mhandler
.cmd_new
= set_password
,
1166 @item set_password
[ vnc | spice
] password
[ action
-if-connected
]
1167 @findex set_password
1169 Change spice
/vnc password
. Use zero to make the password stay valid
1170 forever
. @
var{action
-if-connected
} specifies what should happen
in
1171 case a connection is established
: @
var{fail
} makes the password change
1172 fail
. @
var{disconnect
} changes the password and disconnects the
1173 client
. @
var{keep
} changes the password and keeps the connection up
.
1174 @
var{keep
} is the
default.
1178 .name
= "expire_password",
1179 .args_type
= "protocol:s,time:s",
1180 .params
= "protocol time",
1181 .help
= "set spice/vnc password expire-time",
1182 .user_print
= monitor_user_noop
,
1183 .mhandler
.cmd_new
= expire_password
,
1187 @item expire_password
[ vnc | spice
] expire
-time
1188 @findex expire_password
1190 Specify when a password
for spice
/vnc becomes
1191 invalid
. @
var{expire
-time
} accepts
:
1195 Invalidate password instantly
.
1198 Password stays valid forever
.
1201 Password stays valid
for @
var{nsec
} seconds starting now
.
1204 Password is invalidated at the given time
. @
var{nsec
} are the seconds
1205 passed since
1970, i
.e
. unix epoch
.
1212 .args_type
= "item:s?",
1213 .params
= "[subcommand]",
1214 .help
= "show various information about the system state",
1215 .mhandler
.cmd
= do_info
,
1219 @item info @
var{subcommand
}
1221 Show various information about the system state
.
1225 show the version of QEMU
1227 show the various VLANs and the associated devices
1229 show the character devices
1231 show the block devices
1232 @item info blockstats
1233 show block device statistics
1234 @item info registers
1235 show the cpu registers
1237 show infos
for each CPU
1239 show the command line history
1241 show the interrupts
statistics (if available
)
1243 show
i8259 (PIC
) state
1245 show emulated PCI device info
1247 show virtual to physical memory
mappings (i386
, SH4 and SPARC only
)
1249 show the active virtual memory
mappings (i386 only
)
1251 show
dynamic compiler info
1253 show KVM information
1255 show NUMA information
1257 show KVM information
1259 show USB devices plugged on the virtual USB hub
1261 show all USB host devices
1263 show profiling information
1265 show information about active capturing
1266 @item info snapshots
1267 show list of VM snapshots
1269 show the current VM
status (running|paused
)
1271 show guest PCMCIA status
1273 show which guest mouse is receiving events
1275 show the vnc server status
1277 show the current VM name
1279 show the current VM UUID
1283 show user network stack connection states
1285 show migration status
1287 show balloon information
1291 show qdev device model list
1297 #ifdef CONFIG_SIMPLE_TRACE
1300 show contents of
trace buffer
1301 @item info
trace-events
1302 show available
trace events and their state