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
.
42 .args_type
= "item:s?",
43 .params
= "[subcommand]",
44 .help
= "show various information about the system state",
45 .user_print
= monitor_user_noop
,
46 .mhandler
.cmd_new
= do_info
,
50 @item info @
var{subcommand
}
52 Show various information about the system state
.
56 show the version of QEMU
58 show the various VLANs and the associated devices
60 show the character devices
62 show the block devices
64 show block device statistics
66 show the cpu registers
68 show infos
for each CPU
70 show the command line history
72 show the interrupts
statistics (if available
)
74 show
i8259 (PIC
) state
76 show emulated PCI device info
78 show virtual to physical memory
mappings (i386 only
)
80 show the active virtual memory
mappings (i386 only
)
82 show state of
HPET (i386 only
)
86 show USB devices plugged on the virtual USB hub
88 show all USB host devices
90 show profiling information
92 show information about active capturing
94 show list of VM snapshots
96 show the current VM
status (running|paused
)
98 show guest PCMCIA status
100 show which guest mouse is receiving events
102 show the vnc server status
104 show the current VM name
106 show the current VM UUID
110 show user network stack connection states
112 show migration status
114 show balloon information
124 .help
= "quit the emulator",
125 .user_print
= monitor_user_noop
,
126 .mhandler
.cmd_new
= do_quit
,
137 .args_type
= "force:-f,device:B",
138 .params
= "[-f] device",
139 .help
= "eject a removable medium (use -f to force it)",
140 .user_print
= monitor_user_noop
,
141 .mhandler
.cmd_new
= do_eject
,
145 @item eject
[-f
] @
var{device
}
147 Eject a removable
medium (use
-f to force it
).
152 .args_type
= "device:B,target:F,arg:s?",
153 .params
= "device filename [format]",
154 .help
= "change a removable medium, optional format",
155 .user_print
= monitor_user_noop
,
156 .mhandler
.cmd_new
= do_change
,
160 @item change @
var{device
} @
var{setting
}
163 Change the configuration of a device
.
166 @item change @
var{diskdevice
} @
var{filename
} [@
var{format
}]
167 Change the medium
for a removable disk device to point to @
var{filename
}. eg
170 (qemu
) change ide1
-cd0
/path
/to
/some
.iso
173 @
var{format
} is optional
.
175 @item change vnc @
var{display
},@
var{options
}
176 Change the configuration of the VNC server
. The valid syntax
for @
var{display
}
177 and @
var{options
} are described at @ref
{sec_invocation
}. eg
180 (qemu
) change vnc localhost
:1
183 @item change vnc password
[@
var{password
}]
185 Change the password associated with the VNC server
. If the
new password is not
186 supplied
, the monitor will prompt
for it to be entered
. VNC passwords are only
187 significant up to
8 letters
. eg
190 (qemu
) change vnc password
198 .name
= "screendump",
199 .args_type
= "filename:F",
200 .params
= "filename",
201 .help
= "save screen into PPM image 'filename'",
202 .mhandler
.cmd
= do_screen_dump
,
206 @item screendump @
var{filename
}
208 Save screen into PPM image @
var{filename
}.
213 .args_type
= "filename:F",
214 .params
= "filename",
215 .help
= "output logs to 'filename'",
216 .mhandler
.cmd
= do_logfile
,
220 @item logfile @
var{filename
}
222 Output logs to @
var{filename
}.
227 .args_type
= "items:s",
228 .params
= "item1[,...]",
229 .help
= "activate logging of the specified items to '/tmp/qemu.log'",
230 .mhandler
.cmd
= do_log
,
234 @item log @
var{item1
}[,...]
236 Activate logging of the specified items to @file
{/tmp
/qemu
.log
}.
241 .args_type
= "name:s?",
242 .params
= "[tag|id]",
243 .help
= "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
244 .mhandler
.cmd
= do_savevm
,
248 @item savevm
[@
var{tag
}|@
var{id
}]
250 Create a snapshot of the whole virtual machine
. If @
var{tag
} is
251 provided
, it is used as human readable identifier
. If there is already
252 a snapshot with the same tag or ID
, it is replaced
. More info at
258 .args_type
= "name:s",
260 .help
= "restore a VM snapshot from its tag or id",
261 .mhandler
.cmd
= do_loadvm
,
265 @item loadvm @
var{tag
}|@
var{id
}
267 Set the whole virtual machine to the snapshot identified by the tag
268 @
var{tag
} or the unique snapshot ID @
var{id
}.
273 .args_type
= "name:s",
275 .help
= "delete a VM snapshot from its tag or id",
276 .mhandler
.cmd
= do_delvm
,
280 @item delvm @
var{tag
}|@
var{id
}
282 Delete the snapshot identified by @
var{tag
} or @
var{id
}.
286 .name
= "singlestep",
287 .args_type
= "option:s?",
288 .params
= "[on|off]",
289 .help
= "run emulation in singlestep mode or switch to normal mode",
290 .mhandler
.cmd
= do_singlestep
,
294 @item singlestep
[off
]
296 Run the emulation
in single step mode
.
297 If called with option off
, the emulation returns to normal mode
.
304 .help
= "stop emulation",
305 .user_print
= monitor_user_noop
,
306 .mhandler
.cmd_new
= do_stop
,
319 .help
= "resume emulation",
320 .user_print
= monitor_user_noop
,
321 .mhandler
.cmd_new
= do_cont
,
332 .args_type
= "device:s?",
333 .params
= "[device]",
334 .help
= "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
335 .mhandler
.cmd
= do_gdbserver
,
339 @item gdbserver
[@
var{port
}]
341 Start gdbserver
session (default @
var{port
}=1234)
346 .args_type
= "fmt:/,addr:l",
347 .params
= "/fmt addr",
348 .help
= "virtual memory dump starting at 'addr'",
349 .mhandler
.cmd
= do_memory_dump
,
353 @item x
/fmt @
var{addr
}
355 Virtual memory dump starting at @
var{addr
}.
360 .args_type
= "fmt:/,addr:l",
361 .params
= "/fmt addr",
362 .help
= "physical memory dump starting at 'addr'",
363 .mhandler
.cmd
= do_physical_memory_dump
,
367 @item xp
/@
var{fmt
} @
var{addr
}
369 Physical memory dump starting at @
var{addr
}.
371 @
var{fmt
} is a format which tells the command how to format the
372 data
. Its syntax is
: @option
{/@
{count@
}@
{format@
}@
{size@
}}
377 is the number of items to be dumped
.
381 can be
x (hex
), d (signed decimal
), u (unsigned decimal
), o (octal
),
382 c (char
) or
i (asm instruction
).
386 can be
b (8 bits
), h (16 bits
), w (32 bits
) or
g (64 bits
). On x86
,
387 @code
{h
} or @code
{w
} can be specified with the @code
{i
} format to
388 respectively select
16 or
32 bit code instruction size
.
395 Dump
10 instructions at the current instruction pointer
:
400 0x90107065: lea
0x0(%esi
,1),%esi
401 0x90107069: lea
0x0(%edi
,1),%edi
403 0x90107071: jmp
0x90107080
411 Dump
80 16 bit values at the start of the video memory
.
413 (qemu
) xp
/80hx
0xb8000
414 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
415 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
416 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
417 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
418 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
419 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
420 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
421 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
422 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
423 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
430 .args_type
= "fmt:/,val:l",
431 .params
= "/fmt expr",
432 .help
= "print expression value (use $reg for CPU register access)",
433 .mhandler
.cmd
= do_print
,
437 @item p or print
/@
var{fmt
} @
var{expr
}
440 Print expression value
. Only the @
var{format
} part of @
var{fmt
} is
446 .args_type
= "fmt:/,addr:i,index:i.",
447 .params
= "/fmt addr",
448 .help
= "I/O port read",
449 .mhandler
.cmd
= do_ioport_read
,
458 .args_type
= "fmt:/,addr:i,val:i",
459 .params
= "/fmt addr value",
460 .help
= "I/O port write",
461 .mhandler
.cmd
= do_ioport_write
,
470 .args_type
= "string:s,hold_time:i?",
471 .params
= "keys [hold_ms]",
472 .help
= "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
473 .mhandler
.cmd
= do_sendkey
,
477 @item sendkey @
var{keys
}
480 Send @
var{keys
} to the emulator
. @
var{keys
} could be the name of the
481 key or @code
{#
} followed by the raw value
in either decimal or hexadecimal
482 format
. Use @code
{-} to press several keys simultaneously
. Example
:
487 This command is useful to send keys that your graphical user
interface
488 intercepts at low level
, such as @code
{ctrl
-alt
-f1
} in X Window
.
492 .name
= "system_reset",
495 .help
= "reset the system",
496 .user_print
= monitor_user_noop
,
497 .mhandler
.cmd_new
= do_system_reset
,
508 .name
= "system_powerdown",
511 .help
= "send system power down event",
512 .user_print
= monitor_user_noop
,
513 .mhandler
.cmd_new
= do_system_powerdown
,
517 @item system_powerdown
518 @findex system_powerdown
520 Power down the
system (if supported
).
525 .args_type
= "start:i,size:i",
526 .params
= "addr size",
527 .help
= "compute the checksum of a memory region",
528 .mhandler
.cmd
= do_sum
,
532 @item sum @
var{addr
} @
var{size
}
535 Compute the checksum of a memory region
.
540 .args_type
= "devname:s",
542 .help
= "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
543 .mhandler
.cmd
= do_usb_add
,
547 @item usb_add @
var{devname
}
550 Add the USB device @
var{devname
}. For details of available devices see
556 .args_type
= "devname:s",
558 .help
= "remove USB device 'bus.addr'",
559 .mhandler
.cmd
= do_usb_del
,
563 @item usb_del @
var{devname
}
566 Remove the USB device @
var{devname
} from the QEMU virtual USB
567 hub
. @
var{devname
} has the syntax @code
{bus
.addr
}. Use the monitor
568 command @code
{info usb
} to see the devices you can remove
.
572 .name
= "device_add",
573 .args_type
= "device:O",
574 .params
= "driver[,prop=value][,...]",
575 .help
= "add device, like -device on the command line",
576 .user_print
= monitor_user_noop
,
577 .mhandler
.cmd_new
= do_device_add
,
581 @item device_add @
var{config
}
588 .name
= "device_del",
591 .help
= "remove device",
592 .mhandler
.cmd
= do_device_del
,
596 @item device_del @
var{id
}
599 Remove device @
var{id
}.
604 .args_type
= "index:i",
606 .help
= "set the default CPU",
607 .user_print
= monitor_user_noop
,
608 .mhandler
.cmd_new
= do_cpu_set
,
616 .name
= "mouse_move",
617 .args_type
= "dx_str:s,dy_str:s,dz_str:s?",
618 .params
= "dx dy [dz]",
619 .help
= "send mouse move events",
620 .mhandler
.cmd
= do_mouse_move
,
624 @item mouse_move @
var{dx
} @
var{dy
} [@
var{dz
}]
626 Move the active mouse to the specified coordinates @
var{dx
} @
var{dy
}
627 with optional scroll axis @
var{dz
}.
631 .name
= "mouse_button",
632 .args_type
= "button_state:i",
634 .help
= "change mouse button state (1=L, 2=M, 4=R)",
635 .mhandler
.cmd
= do_mouse_button
,
639 @item mouse_button @
var{val
}
641 Change the active mouse button state @
var{val
} (1=L
, 2=M
, 4=R
).
646 .args_type
= "index:i",
648 .help
= "set which mouse device receives events",
649 .mhandler
.cmd
= do_mouse_set
,
653 @item mouse_set @
var{index
}
655 Set which mouse device receives events at given @
var{index
}, index
664 .name
= "wavcapture",
665 .args_type
= "path:F,freq:i?,bits:i?,nchannels:i?",
666 .params
= "path [frequency [bits [channels]]]",
667 .help
= "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
668 .mhandler
.cmd
= do_wav_capture
,
672 @item wavcapture @
var{filename
} [@
var{frequency
} [@
var{bits
} [@
var{channels
}]]]
674 Capture audio into @
var{filename
}. Using sample rate @
var{frequency
}
675 bits per sample @
var{bits
} and number of channels @
var{channels
}.
679 @item Sample rate
= 44100 Hz
- CD quality
681 @item Number of channels
= 2 - Stereo
687 .name
= "stopcapture",
689 .params
= "capture index",
690 .help
= "stop capture",
691 .mhandler
.cmd
= do_stop_capture
,
695 @item stopcapture @
var{index
}
697 Stop capture with a given @
var{index
}, index can be obtained with
705 .args_type
= "val:l,size:i,filename:s",
706 .params
= "addr size file",
707 .help
= "save to disk virtual memory dump starting at 'addr' of size 'size'",
708 .user_print
= monitor_user_noop
,
709 .mhandler
.cmd_new
= do_memory_save
,
713 @item memsave @
var{addr
} @
var{size
} @
var{file
}
715 save to disk virtual memory dump starting at @
var{addr
} of size @
var{size
}.
720 .args_type
= "val:l,size:i,filename:s",
721 .params
= "addr size file",
722 .help
= "save to disk physical memory dump starting at 'addr' of size 'size'",
723 .user_print
= monitor_user_noop
,
724 .mhandler
.cmd_new
= do_physical_memory_save
,
728 @item pmemsave @
var{addr
} @
var{size
} @
var{file
}
730 save to disk physical memory dump starting at @
var{addr
} of size @
var{size
}.
735 .args_type
= "bootdevice:s",
736 .params
= "bootdevice",
737 .help
= "define new values for the boot device list",
738 .mhandler
.cmd
= do_boot_set
,
742 @item boot_set @
var{bootdevicelist
}
745 Define
new values
for the boot device list
. Those values will
override
746 the values specified on the command line through the @code
{-boot
} option
.
748 The values that can be specified
here depend on the machine type
, but are
749 the same that can be specified
in the @code
{-boot
} command line option
.
752 #
if defined(TARGET_I386
)
755 .args_type
= "cpu_index:i",
757 .help
= "inject an NMI on the given CPU",
758 .mhandler
.cmd
= do_inject_nmi
,
764 Inject an NMI on the given
CPU (x86 only
).
769 .args_type
= "detach:-d,blk:-b,inc:-i,uri:s",
770 .params
= "[-d] [-b] [-i] uri",
771 .help
= "migrate to URI (using -d to not wait for completion)"
772 "\n\t\t\t -b for migration without shared storage with"
773 " full copy of disk\n\t\t\t -i for migration without "
774 "shared storage with incremental copy of disk "
775 "(base image shared between src and destination)",
776 .user_print
= monitor_user_noop
,
777 .mhandler
.cmd_new
= do_migrate
,
782 @item migrate
[-d
] [-b
] [-i
] @
var{uri
}
784 Migrate to @
var{uri
} (using -d to not wait
for completion
).
785 -b
for migration with full copy of disk
786 -i
for migration with incremental copy of
disk (base image is shared
)
790 .name
= "migrate_cancel",
793 .help
= "cancel the current VM migration",
794 .user_print
= monitor_user_noop
,
795 .mhandler
.cmd_new
= do_migrate_cancel
,
800 @findex migrate_cancel
801 Cancel the current VM migration
.
805 .name
= "migrate_set_speed",
806 .args_type
= "value:b",
808 .help
= "set maximum speed (in bytes) for migrations",
809 .user_print
= monitor_user_noop
,
810 .mhandler
.cmd_new
= do_migrate_set_speed
,
814 @item migrate_set_speed @
var{value
}
815 @findex migrate_set_speed
816 Set maximum speed to @
var{value
} (in bytes
) for migrations
.
820 .name
= "migrate_set_downtime",
821 .args_type
= "value:T",
823 .help
= "set maximum tolerated downtime (in seconds) for migrations",
824 .user_print
= monitor_user_noop
,
825 .mhandler
.cmd_new
= do_migrate_set_downtime
,
829 @item migrate_set_downtime @
var{second
}
830 @findex migrate_set_downtime
831 Set maximum tolerated
downtime (in seconds
) for migration
.
834 #
if defined(TARGET_I386
)
837 .args_type
= "pci_addr:s,opts:s",
838 .params
= "[[<domain>:]<bus>:]<slot>\n"
839 "[file=file][,if=type][,bus=n]\n"
840 "[,unit=m][,media=d][index=i]\n"
841 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
842 "[snapshot=on|off][,cache=on|off]",
843 .help
= "add drive to PCI storage controller",
844 .mhandler
.cmd
= drive_hot_add
,
851 Add drive to PCI storage controller
.
854 #
if defined(TARGET_I386
)
857 .args_type
= "pci_addr:s,type:s,opts:s?",
858 .params
= "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
859 .help
= "hot-add PCI device",
860 .user_print
= pci_device_hot_add_print
,
861 .mhandler
.cmd_new
= pci_device_hot_add
,
871 #
if defined(TARGET_I386
)
874 .args_type
= "pci_addr:s",
875 .params
= "[[<domain>:]<bus>:]<slot>",
876 .help
= "hot remove PCI device",
877 .user_print
= monitor_user_noop
,
878 .mhandler
.cmd_new
= do_pci_device_hot_remove
,
885 Hot remove PCI device
.
889 .name
= "host_net_add",
890 .args_type
= "device:s,opts:s?",
891 .params
= "tap|user|socket|vde|dump [options]",
892 .help
= "add host VLAN client",
893 .mhandler
.cmd
= net_host_device_add
,
899 Add host VLAN client
.
903 .name
= "host_net_remove",
904 .args_type
= "vlan_id:i,device:s",
905 .params
= "vlan_id name",
906 .help
= "remove host VLAN client",
907 .mhandler
.cmd
= net_host_device_remove
,
911 @item host_net_remove
912 @findex host_net_remove
913 Remove host VLAN client
.
918 .name
= "hostfwd_add",
919 .args_type
= "arg1:s,arg2:s?,arg3:s?",
920 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
921 .help
= "redirect TCP or UDP connections from host to guest (requires -net user)",
922 .mhandler
.cmd
= net_slirp_hostfwd_add
,
926 .name
= "hostfwd_remove",
927 .args_type
= "arg1:s,arg2:s?,arg3:s?",
928 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
929 .help
= "remove host-to-guest TCP or UDP redirection",
930 .mhandler
.cmd
= net_slirp_hostfwd_remove
,
936 @findex host_net_redir
937 Redirect TCP or UDP connections from host to
guest (requires
-net user
).
942 .args_type
= "value:M",
944 .help
= "request VM to change it's memory allocation (in MB)",
945 .user_print
= monitor_user_noop
,
946 .mhandler
.cmd_async
= do_balloon
,
951 @item balloon @
var{value
}
953 Request VM to change its memory allocation to @
var{value
} (in MB
).
958 .args_type
= "name:s,up_or_down:s",
959 .params
= "name up|down",
960 .help
= "change the link status of a network adapter",
961 .mhandler
.cmd
= do_set_link
,
965 @item set_link @
var{name
} [up|down
]
967 Set link @
var{name
} up or down
.
971 .name
= "watchdog_action",
972 .args_type
= "action:s",
973 .params
= "[reset|shutdown|poweroff|pause|debug|none]",
974 .help
= "change watchdog action",
975 .mhandler
.cmd
= do_watchdog_action
,
979 @item watchdog_action
980 @findex watchdog_action
981 Change watchdog action
.
986 .args_type
= "aclname:s",
988 .help
= "list rules in the access control list",
989 .mhandler
.cmd
= do_acl_show
,
993 @item acl_show @
var{aclname
}
995 List all the matching rules
in the access control list
, and the
default
996 policy
. There are currently two named access control lists
,
997 @
var{vnc
.x509dname
} and @
var{vnc
.username
} matching on the x509 client
998 certificate distinguished name
, and SASL username respectively
.
1002 .name
= "acl_policy",
1003 .args_type
= "aclname:s,policy:s",
1004 .params
= "aclname allow|deny",
1005 .help
= "set default access control list policy",
1006 .mhandler
.cmd
= do_acl_policy
,
1010 @item acl_policy @
var{aclname
} @code
{allow|deny
}
1012 Set the
default access control list policy
, used
in the event that
1013 none of the explicit rules match
. The
default policy at startup is
1019 .args_type
= "aclname:s,match:s,policy:s,index:i?",
1020 .params
= "aclname match allow|deny [index]",
1021 .help
= "add a match rule to the access control list",
1022 .mhandler
.cmd
= do_acl_add
,
1026 @item acl_allow @
var{aclname
} @
var{match
} @code
{allow|deny
} [@
var{index
}]
1028 Add a match rule to the access control list
, allowing or denying access
.
1029 The match will normally be an exact username or x509 distinguished name
,
1030 but can optionally include wildcard globs
. eg @code
{*@@EXAMPLE
.COM
} to
1031 allow all users
in the @code
{EXAMPLE
.COM
} kerberos realm
. The match will
1032 normally be appended to the end of the ACL
, but can be inserted
1033 earlier
in the list
if the optional @
var{index
} parameter is supplied
.
1037 .name
= "acl_remove",
1038 .args_type
= "aclname:s,match:s",
1039 .params
= "aclname match",
1040 .help
= "remove a match rule from the access control list",
1041 .mhandler
.cmd
= do_acl_remove
,
1045 @item acl_remove @
var{aclname
} @
var{match
}
1047 Remove the specified match rule from the access control list
.
1051 .name
= "acl_reset",
1052 .args_type
= "aclname:s",
1053 .params
= "aclname",
1054 .help
= "reset the access control list",
1055 .mhandler
.cmd
= do_acl_reset
,
1059 @item acl_remove @
var{aclname
}
1060 Remove all matches from the access control list
, and set the
default
1061 policy back to @code
{deny
}.
1064 #
if defined(TARGET_I386
)
1068 .args_type
= "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1069 .params
= "cpu bank status mcgstatus addr misc",
1070 .help
= "inject a MCE on the given CPU",
1071 .mhandler
.cmd
= do_inject_mce
,
1076 @item mce @
var{cpu
} @
var{bank
} @
var{status
} @
var{mcgstatus
} @
var{addr
} @
var{misc
}
1078 Inject an MCE on the given
CPU (x86 only
).
1083 .args_type
= "fdname:s",
1084 .params
= "getfd name",
1085 .help
= "receive a file descriptor via SCM rights and assign it a name",
1086 .user_print
= monitor_user_noop
,
1087 .mhandler
.cmd_new
= do_getfd
,
1091 @item getfd @
var{fdname
}
1093 If a file descriptor is passed alongside
this command
using the SCM_RIGHTS
1094 mechanism on unix sockets
, it is stored
using the name @
var{fdname
} for
1095 later use by other monitor commands
.
1100 .args_type
= "fdname:s",
1101 .params
= "closefd name",
1102 .help
= "close a file descriptor previously passed via SCM rights",
1103 .user_print
= monitor_user_noop
,
1104 .mhandler
.cmd_new
= do_closefd
,
1108 @item closefd @
var{fdname
}
1110 Close the file descriptor previously assigned to @
var{fdname
} using the
1111 @code
{getfd
} command
. This is only needed
if the file descriptor was
never
1112 used by another monitor command
.
1116 .name
= "block_passwd",
1117 .args_type
= "device:B,password:s",
1118 .params
= "block_passwd device password",
1119 .help
= "set the password of encrypted block devices",
1120 .user_print
= monitor_user_noop
,
1121 .mhandler
.cmd_new
= do_block_set_passwd
,
1125 @item block_passwd @
var{device
} @
var{password
}
1126 @findex block_passwd
1127 Set the encrypted device @
var{device
} password to @
var{password
}
1131 .name
= "qmp_capabilities",
1134 .help
= "enable QMP capabilities",
1135 .user_print
= monitor_user_noop
,
1136 .mhandler
.cmd_new
= do_qmp_capabilities
,
1140 @item qmp_capabilities
1141 Enable the specified QMP capabilities