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
).
72 .args_type
= "device:B,target:F,arg:s?",
73 .params
= "device filename [format]",
74 .help
= "change a removable medium, optional format",
75 .user_print
= monitor_user_noop
,
76 .mhandler
.cmd_new
= do_change
,
80 @item change @
var{device
} @
var{setting
}
83 Change the configuration of a device
.
86 @item change @
var{diskdevice
} @
var{filename
} [@
var{format
}]
87 Change the medium
for a removable disk device to point to @
var{filename
}. eg
90 (qemu
) change ide1
-cd0
/path
/to
/some
.iso
93 @
var{format
} is optional
.
95 @item change vnc @
var{display
},@
var{options
}
96 Change the configuration of the VNC server
. The valid syntax
for @
var{display
}
97 and @
var{options
} are described at @ref
{sec_invocation
}. eg
100 (qemu
) change vnc localhost
:1
103 @item change vnc password
[@
var{password
}]
105 Change the password associated with the VNC server
. If the
new password is not
106 supplied
, the monitor will prompt
for it to be entered
. VNC passwords are only
107 significant up to
8 letters
. eg
110 (qemu
) change vnc password
118 .name
= "screendump",
119 .args_type
= "filename:F",
120 .params
= "filename",
121 .help
= "save screen into PPM image 'filename'",
122 .user_print
= monitor_user_noop
,
123 .mhandler
.cmd_new
= do_screen_dump
,
127 @item screendump @
var{filename
}
129 Save screen into PPM image @
var{filename
}.
134 .args_type
= "filename:F",
135 .params
= "filename",
136 .help
= "output logs to 'filename'",
137 .mhandler
.cmd
= do_logfile
,
141 @item logfile @
var{filename
}
143 Output logs to @
var{filename
}.
146 #ifdef CONFIG_SIMPLE_TRACE
148 .name
= "trace-event",
149 .args_type
= "name:s,option:b",
150 .params
= "name on|off",
151 .help
= "changes status of a specific trace event",
152 .mhandler
.cmd
= do_change_trace_event_state
,
158 changes status of a
trace event
162 .name
= "trace-file",
163 .args_type
= "op:s?,arg:F?",
164 .params
= "on|off|flush|set [arg]",
165 .help
= "open, close, or flush trace file, or set a new file name",
166 .mhandler
.cmd
= do_trace_file
,
170 @item
trace-file on|off|flush
172 Open
, close
, or flush the
trace file
. If no argument is given
, the status of the
trace file is displayed
.
178 .args_type
= "items:s",
179 .params
= "item1[,...]",
180 .help
= "activate logging of the specified items to '/tmp/qemu.log'",
181 .mhandler
.cmd
= do_log
,
185 @item log @
var{item1
}[,...]
187 Activate logging of the specified items to @file
{/tmp
/qemu
.log
}.
192 .args_type
= "name:s?",
193 .params
= "[tag|id]",
194 .help
= "save a VM snapshot. If no tag or id are provided, a new snapshot is created",
195 .mhandler
.cmd
= do_savevm
,
199 @item savevm
[@
var{tag
}|@
var{id
}]
201 Create a snapshot of the whole virtual machine
. If @
var{tag
} is
202 provided
, it is used as human readable identifier
. If there is already
203 a snapshot with the same tag or ID
, it is replaced
. More info at
209 .args_type
= "name:s",
211 .help
= "restore a VM snapshot from its tag or id",
212 .mhandler
.cmd
= do_loadvm
,
216 @item loadvm @
var{tag
}|@
var{id
}
218 Set the whole virtual machine to the snapshot identified by the tag
219 @
var{tag
} or the unique snapshot ID @
var{id
}.
224 .args_type
= "name:s",
226 .help
= "delete a VM snapshot from its tag or id",
227 .mhandler
.cmd
= do_delvm
,
231 @item delvm @
var{tag
}|@
var{id
}
233 Delete the snapshot identified by @
var{tag
} or @
var{id
}.
237 .name
= "singlestep",
238 .args_type
= "option:s?",
239 .params
= "[on|off]",
240 .help
= "run emulation in singlestep mode or switch to normal mode",
241 .mhandler
.cmd
= do_singlestep
,
245 @item singlestep
[off
]
247 Run the emulation
in single step mode
.
248 If called with option off
, the emulation returns to normal mode
.
255 .help
= "stop emulation",
256 .user_print
= monitor_user_noop
,
257 .mhandler
.cmd_new
= do_stop
,
270 .help
= "resume emulation",
271 .user_print
= monitor_user_noop
,
272 .mhandler
.cmd_new
= do_cont
,
283 .args_type
= "device:s?",
284 .params
= "[device]",
285 .help
= "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
286 .mhandler
.cmd
= do_gdbserver
,
290 @item gdbserver
[@
var{port
}]
292 Start gdbserver
session (default @
var{port
}=1234)
297 .args_type
= "fmt:/,addr:l",
298 .params
= "/fmt addr",
299 .help
= "virtual memory dump starting at 'addr'",
300 .mhandler
.cmd
= do_memory_dump
,
304 @item x
/fmt @
var{addr
}
306 Virtual memory dump starting at @
var{addr
}.
311 .args_type
= "fmt:/,addr:l",
312 .params
= "/fmt addr",
313 .help
= "physical memory dump starting at 'addr'",
314 .mhandler
.cmd
= do_physical_memory_dump
,
318 @item xp
/@
var{fmt
} @
var{addr
}
320 Physical memory dump starting at @
var{addr
}.
322 @
var{fmt
} is a format which tells the command how to format the
323 data
. Its syntax is
: @option
{/@
{count@
}@
{format@
}@
{size@
}}
327 is the number of items to be dumped
.
330 can be
x (hex
), d (signed decimal
), u (unsigned decimal
), o (octal
),
331 c (char
) or
i (asm instruction
).
334 can be
b (8 bits
), h (16 bits
), w (32 bits
) or
g (64 bits
). On x86
,
335 @code
{h
} or @code
{w
} can be specified with the @code
{i
} format to
336 respectively select
16 or
32 bit code instruction size
.
343 Dump
10 instructions at the current instruction pointer
:
348 0x90107065: lea
0x0(%esi
,1),%esi
349 0x90107069: lea
0x0(%edi
,1),%edi
351 0x90107071: jmp
0x90107080
359 Dump
80 16 bit values at the start of the video memory
.
361 (qemu
) xp
/80hx
0xb8000
362 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
363 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
364 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
365 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
366 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
367 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
368 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
369 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
370 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
371 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
378 .args_type
= "fmt:/,val:l",
379 .params
= "/fmt expr",
380 .help
= "print expression value (use $reg for CPU register access)",
381 .mhandler
.cmd
= do_print
,
385 @item p or print
/@
var{fmt
} @
var{expr
}
388 Print expression value
. Only the @
var{format
} part of @
var{fmt
} is
394 .args_type
= "fmt:/,addr:i,index:i.",
395 .params
= "/fmt addr",
396 .help
= "I/O port read",
397 .mhandler
.cmd
= do_ioport_read
,
406 .args_type
= "fmt:/,addr:i,val:i",
407 .params
= "/fmt addr value",
408 .help
= "I/O port write",
409 .mhandler
.cmd
= do_ioport_write
,
418 .args_type
= "string:s,hold_time:i?",
419 .params
= "keys [hold_ms]",
420 .help
= "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
421 .mhandler
.cmd
= do_sendkey
,
425 @item sendkey @
var{keys
}
428 Send @
var{keys
} to the emulator
. @
var{keys
} could be the name of the
429 key or @code
{#
} followed by the raw value
in either decimal or hexadecimal
430 format
. Use @code
{-} to press several keys simultaneously
. Example
:
435 This command is useful to send keys that your graphical user
interface
436 intercepts at low level
, such as @code
{ctrl
-alt
-f1
} in X Window
.
440 .name
= "system_reset",
443 .help
= "reset the system",
444 .user_print
= monitor_user_noop
,
445 .mhandler
.cmd_new
= do_system_reset
,
456 .name
= "system_powerdown",
459 .help
= "send system power down event",
460 .user_print
= monitor_user_noop
,
461 .mhandler
.cmd_new
= do_system_powerdown
,
465 @item system_powerdown
466 @findex system_powerdown
468 Power down the
system (if supported
).
473 .args_type
= "start:i,size:i",
474 .params
= "addr size",
475 .help
= "compute the checksum of a memory region",
476 .mhandler
.cmd
= do_sum
,
480 @item sum @
var{addr
} @
var{size
}
483 Compute the checksum of a memory region
.
488 .args_type
= "devname:s",
490 .help
= "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')",
491 .mhandler
.cmd
= do_usb_add
,
495 @item usb_add @
var{devname
}
498 Add the USB device @
var{devname
}. For details of available devices see
504 .args_type
= "devname:s",
506 .help
= "remove USB device 'bus.addr'",
507 .mhandler
.cmd
= do_usb_del
,
511 @item usb_del @
var{devname
}
514 Remove the USB device @
var{devname
} from the QEMU virtual USB
515 hub
. @
var{devname
} has the syntax @code
{bus
.addr
}. Use the monitor
516 command @code
{info usb
} to see the devices you can remove
.
520 .name
= "device_add",
521 .args_type
= "device:O",
522 .params
= "driver[,prop=value][,...]",
523 .help
= "add device, like -device on the command line",
524 .user_print
= monitor_user_noop
,
525 .mhandler
.cmd_new
= do_device_add
,
529 @item device_add @
var{config
}
536 .name
= "device_del",
539 .help
= "remove device",
540 .user_print
= monitor_user_noop
,
541 .mhandler
.cmd_new
= do_device_del
,
545 @item device_del @
var{id
}
548 Remove device @
var{id
}.
553 .args_type
= "index:i",
555 .help
= "set the default CPU",
556 .user_print
= monitor_user_noop
,
557 .mhandler
.cmd_new
= do_cpu_set
,
561 @item cpu @
var{index
}
567 .name
= "mouse_move",
568 .args_type
= "dx_str:s,dy_str:s,dz_str:s?",
569 .params
= "dx dy [dz]",
570 .help
= "send mouse move events",
571 .mhandler
.cmd
= do_mouse_move
,
575 @item mouse_move @
var{dx
} @
var{dy
} [@
var{dz
}]
577 Move the active mouse to the specified coordinates @
var{dx
} @
var{dy
}
578 with optional scroll axis @
var{dz
}.
582 .name
= "mouse_button",
583 .args_type
= "button_state:i",
585 .help
= "change mouse button state (1=L, 2=M, 4=R)",
586 .mhandler
.cmd
= do_mouse_button
,
590 @item mouse_button @
var{val
}
592 Change the active mouse button state @
var{val
} (1=L
, 2=M
, 4=R
).
597 .args_type
= "index:i",
599 .help
= "set which mouse device receives events",
600 .mhandler
.cmd
= do_mouse_set
,
604 @item mouse_set @
var{index
}
606 Set which mouse device receives events at given @
var{index
}, index
615 .name
= "wavcapture",
616 .args_type
= "path:F,freq:i?,bits:i?,nchannels:i?",
617 .params
= "path [frequency [bits [channels]]]",
618 .help
= "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
619 .mhandler
.cmd
= do_wav_capture
,
623 @item wavcapture @
var{filename
} [@
var{frequency
} [@
var{bits
} [@
var{channels
}]]]
625 Capture audio into @
var{filename
}. Using sample rate @
var{frequency
}
626 bits per sample @
var{bits
} and number of channels @
var{channels
}.
630 @item Sample rate
= 44100 Hz
- CD quality
632 @item Number of channels
= 2 - Stereo
638 .name
= "stopcapture",
640 .params
= "capture index",
641 .help
= "stop capture",
642 .mhandler
.cmd
= do_stop_capture
,
646 @item stopcapture @
var{index
}
648 Stop capture with a given @
var{index
}, index can be obtained with
656 .args_type
= "val:l,size:i,filename:s",
657 .params
= "addr size file",
658 .help
= "save to disk virtual memory dump starting at 'addr' of size 'size'",
659 .user_print
= monitor_user_noop
,
660 .mhandler
.cmd_new
= do_memory_save
,
664 @item memsave @
var{addr
} @
var{size
} @
var{file
}
666 save to disk virtual memory dump starting at @
var{addr
} of size @
var{size
}.
671 .args_type
= "val:l,size:i,filename:s",
672 .params
= "addr size file",
673 .help
= "save to disk physical memory dump starting at 'addr' of size 'size'",
674 .user_print
= monitor_user_noop
,
675 .mhandler
.cmd_new
= do_physical_memory_save
,
679 @item pmemsave @
var{addr
} @
var{size
} @
var{file
}
681 save to disk physical memory dump starting at @
var{addr
} of size @
var{size
}.
686 .args_type
= "bootdevice:s",
687 .params
= "bootdevice",
688 .help
= "define new values for the boot device list",
689 .mhandler
.cmd
= do_boot_set
,
693 @item boot_set @
var{bootdevicelist
}
696 Define
new values
for the boot device list
. Those values will
override
697 the values specified on the command line through the @code
{-boot
} option
.
699 The values that can be specified
here depend on the machine type
, but are
700 the same that can be specified
in the @code
{-boot
} command line option
.
703 #
if defined(TARGET_I386
)
706 .args_type
= "cpu_index:i",
708 .help
= "inject an NMI on the given CPU",
709 .mhandler
.cmd
= do_inject_nmi
,
715 Inject an NMI on the given
CPU (x86 only
).
720 .args_type
= "detach:-d,blk:-b,inc:-i,uri:s",
721 .params
= "[-d] [-b] [-i] uri",
722 .help
= "migrate to URI (using -d to not wait for completion)"
723 "\n\t\t\t -b for migration without shared storage with"
724 " full copy of disk\n\t\t\t -i for migration without "
725 "shared storage with incremental copy of disk "
726 "(base image shared between src and destination)",
727 .user_print
= monitor_user_noop
,
728 .mhandler
.cmd_new
= do_migrate
,
733 @item migrate
[-d
] [-b
] [-i
] @
var{uri
}
735 Migrate to @
var{uri
} (using -d to not wait
for completion
).
736 -b
for migration with full copy of disk
737 -i
for migration with incremental copy of
disk (base image is shared
)
741 .name
= "migrate_cancel",
744 .help
= "cancel the current VM migration",
745 .user_print
= monitor_user_noop
,
746 .mhandler
.cmd_new
= do_migrate_cancel
,
751 @findex migrate_cancel
752 Cancel the current VM migration
.
756 .name
= "migrate_set_speed",
757 .args_type
= "value:f",
759 .help
= "set maximum speed (in bytes) for migrations",
760 .user_print
= monitor_user_noop
,
761 .mhandler
.cmd_new
= do_migrate_set_speed
,
765 @item migrate_set_speed @
var{value
}
766 @findex migrate_set_speed
767 Set maximum speed to @
var{value
} (in bytes
) for migrations
.
771 .name
= "migrate_set_downtime",
772 .args_type
= "value:T",
774 .help
= "set maximum tolerated downtime (in seconds) for migrations",
775 .user_print
= monitor_user_noop
,
776 .mhandler
.cmd_new
= do_migrate_set_downtime
,
780 @item migrate_set_downtime @
var{second
}
781 @findex migrate_set_downtime
782 Set maximum tolerated
downtime (in seconds
) for migration
.
785 #
if defined(TARGET_I386
)
788 .args_type
= "pci_addr:s,opts:s",
789 .params
= "[[<domain>:]<bus>:]<slot>\n"
790 "[file=file][,if=type][,bus=n]\n"
791 "[,unit=m][,media=d][index=i]\n"
792 "[,cyls=c,heads=h,secs=s[,trans=t]]\n"
793 "[snapshot=on|off][,cache=on|off]",
794 .help
= "add drive to PCI storage controller",
795 .mhandler
.cmd
= drive_hot_add
,
802 Add drive to PCI storage controller
.
805 #
if defined(TARGET_I386
)
808 .args_type
= "pci_addr:s,type:s,opts:s?",
809 .params
= "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
810 .help
= "hot-add PCI device",
811 .mhandler
.cmd
= pci_device_hot_add
,
821 #
if defined(TARGET_I386
)
824 .args_type
= "pci_addr:s",
825 .params
= "[[<domain>:]<bus>:]<slot>",
826 .help
= "hot remove PCI device",
827 .mhandler
.cmd
= do_pci_device_hot_remove
,
834 Hot remove PCI device
.
838 .name
= "host_net_add",
839 .args_type
= "device:s,opts:s?",
840 .params
= "tap|user|socket|vde|dump [options]",
841 .help
= "add host VLAN client",
842 .mhandler
.cmd
= net_host_device_add
,
848 Add host VLAN client
.
852 .name
= "host_net_remove",
853 .args_type
= "vlan_id:i,device:s",
854 .params
= "vlan_id name",
855 .help
= "remove host VLAN client",
856 .mhandler
.cmd
= net_host_device_remove
,
860 @item host_net_remove
861 @findex host_net_remove
862 Remove host VLAN client
.
866 .name
= "netdev_add",
867 .args_type
= "netdev:O",
868 .params
= "[user|tap|socket],id=str[,prop=value][,...]",
869 .help
= "add host network device",
870 .user_print
= monitor_user_noop
,
871 .mhandler
.cmd_new
= do_netdev_add
,
877 Add host network device
.
881 .name
= "netdev_del",
884 .help
= "remove host network device",
885 .user_print
= monitor_user_noop
,
886 .mhandler
.cmd_new
= do_netdev_del
,
892 Remove host network device
.
897 .name
= "hostfwd_add",
898 .args_type
= "arg1:s,arg2:s?,arg3:s?",
899 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
900 .help
= "redirect TCP or UDP connections from host to guest (requires -net user)",
901 .mhandler
.cmd
= net_slirp_hostfwd_add
,
907 Redirect TCP or UDP connections from host to
guest (requires
-net user
).
912 .name
= "hostfwd_remove",
913 .args_type
= "arg1:s,arg2:s?,arg3:s?",
914 .params
= "[vlan_id name] [tcp|udp]:[hostaddr]:hostport",
915 .help
= "remove host-to-guest TCP or UDP redirection",
916 .mhandler
.cmd
= net_slirp_hostfwd_remove
,
922 @findex hostfwd_remove
923 Remove host
-to
-guest TCP or UDP redirection
.
928 .args_type
= "value:M",
930 .help
= "request VM to change its memory allocation (in MB)",
931 .user_print
= monitor_user_noop
,
932 .mhandler
.cmd_async
= do_balloon
,
933 .flags
= MONITOR_CMD_ASYNC
,
937 @item balloon @
var{value
}
939 Request VM to change its memory allocation to @
var{value
} (in MB
).
944 .args_type
= "name:s,up:b",
945 .params
= "name on|off",
946 .help
= "change the link status of a network adapter",
947 .user_print
= monitor_user_noop
,
948 .mhandler
.cmd_new
= do_set_link
,
952 @item set_link @
var{name
} [on|off
]
954 Switch link @
var{name
} on (i
.e
. up
) or
off (i
.e
. down
).
958 .name
= "watchdog_action",
959 .args_type
= "action:s",
960 .params
= "[reset|shutdown|poweroff|pause|debug|none]",
961 .help
= "change watchdog action",
962 .mhandler
.cmd
= do_watchdog_action
,
966 @item watchdog_action
967 @findex watchdog_action
968 Change watchdog action
.
973 .args_type
= "aclname:s",
975 .help
= "list rules in the access control list",
976 .mhandler
.cmd
= do_acl_show
,
980 @item acl_show @
var{aclname
}
982 List all the matching rules
in the access control list
, and the
default
983 policy
. There are currently two named access control lists
,
984 @
var{vnc
.x509dname
} and @
var{vnc
.username
} matching on the x509 client
985 certificate distinguished name
, and SASL username respectively
.
989 .name
= "acl_policy",
990 .args_type
= "aclname:s,policy:s",
991 .params
= "aclname allow|deny",
992 .help
= "set default access control list policy",
993 .mhandler
.cmd
= do_acl_policy
,
997 @item acl_policy @
var{aclname
} @code
{allow|deny
}
999 Set the
default access control list policy
, used
in the event that
1000 none of the explicit rules match
. The
default policy at startup is
1006 .args_type
= "aclname:s,match:s,policy:s,index:i?",
1007 .params
= "aclname match allow|deny [index]",
1008 .help
= "add a match rule to the access control list",
1009 .mhandler
.cmd
= do_acl_add
,
1013 @item acl_add @
var{aclname
} @
var{match
} @code
{allow|deny
} [@
var{index
}]
1015 Add a match rule to the access control list
, allowing or denying access
.
1016 The match will normally be an exact username or x509 distinguished name
,
1017 but can optionally include wildcard globs
. eg @code
{*@@EXAMPLE
.COM
} to
1018 allow all users
in the @code
{EXAMPLE
.COM
} kerberos realm
. The match will
1019 normally be appended to the end of the ACL
, but can be inserted
1020 earlier
in the list
if the optional @
var{index
} parameter is supplied
.
1024 .name
= "acl_remove",
1025 .args_type
= "aclname:s,match:s",
1026 .params
= "aclname match",
1027 .help
= "remove a match rule from the access control list",
1028 .mhandler
.cmd
= do_acl_remove
,
1032 @item acl_remove @
var{aclname
} @
var{match
}
1034 Remove the specified match rule from the access control list
.
1038 .name
= "acl_reset",
1039 .args_type
= "aclname:s",
1040 .params
= "aclname",
1041 .help
= "reset the access control list",
1042 .mhandler
.cmd
= do_acl_reset
,
1046 @item acl_reset @
var{aclname
}
1048 Remove all matches from the access control list
, and set the
default
1049 policy back to @code
{deny
}.
1052 #
if defined(TARGET_I386
)
1056 .args_type
= "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
1057 .params
= "cpu bank status mcgstatus addr misc",
1058 .help
= "inject a MCE on the given CPU",
1059 .mhandler
.cmd
= do_inject_mce
,
1064 @item mce @
var{cpu
} @
var{bank
} @
var{status
} @
var{mcgstatus
} @
var{addr
} @
var{misc
}
1066 Inject an MCE on the given
CPU (x86 only
).
1071 .args_type
= "fdname:s",
1072 .params
= "getfd name",
1073 .help
= "receive a file descriptor via SCM rights and assign it a name",
1074 .user_print
= monitor_user_noop
,
1075 .mhandler
.cmd_new
= do_getfd
,
1079 @item getfd @
var{fdname
}
1081 If a file descriptor is passed alongside
this command
using the SCM_RIGHTS
1082 mechanism on unix sockets
, it is stored
using the name @
var{fdname
} for
1083 later use by other monitor commands
.
1088 .args_type
= "fdname:s",
1089 .params
= "closefd name",
1090 .help
= "close a file descriptor previously passed via SCM rights",
1091 .user_print
= monitor_user_noop
,
1092 .mhandler
.cmd_new
= do_closefd
,
1096 @item closefd @
var{fdname
}
1098 Close the file descriptor previously assigned to @
var{fdname
} using the
1099 @code
{getfd
} command
. This is only needed
if the file descriptor was
never
1100 used by another monitor command
.
1104 .name
= "block_passwd",
1105 .args_type
= "device:B,password:s",
1106 .params
= "block_passwd device password",
1107 .help
= "set the password of encrypted block devices",
1108 .user_print
= monitor_user_noop
,
1109 .mhandler
.cmd_new
= do_block_set_passwd
,
1113 @item block_passwd @
var{device
} @
var{password
}
1114 @findex block_passwd
1115 Set the encrypted device @
var{device
} password to @
var{password
}
1120 .args_type
= "item:s?",
1121 .params
= "[subcommand]",
1122 .help
= "show various information about the system state",
1123 .mhandler
.cmd
= do_info
,
1127 @item info @
var{subcommand
}
1129 Show various information about the system state
.
1133 show the version of QEMU
1135 show the various VLANs and the associated devices
1137 show the character devices
1139 show the block devices
1140 @item info blockstats
1141 show block device statistics
1142 @item info registers
1143 show the cpu registers
1145 show infos
for each CPU
1147 show the command line history
1149 show the interrupts
statistics (if available
)
1151 show
i8259 (PIC
) state
1153 show emulated PCI device info
1155 show virtual to physical memory
mappings (i386 only
)
1157 show the active virtual memory
mappings (i386 only
)
1159 show
dynamic compiler info
1161 show KVM information
1163 show NUMA information
1165 show KVM information
1167 show USB devices plugged on the virtual USB hub
1169 show all USB host devices
1171 show profiling information
1173 show information about active capturing
1174 @item info snapshots
1175 show list of VM snapshots
1177 show the current VM
status (running|paused
)
1179 show guest PCMCIA status
1181 show which guest mouse is receiving events
1183 show the vnc server status
1185 show the current VM name
1187 show the current VM UUID
1191 show user network stack connection states
1193 show migration status
1195 show balloon information
1199 show qdev device model list
1205 #ifdef CONFIG_SIMPLE_TRACE
1208 show contents of
trace buffer
1209 @item info
trace-events
1210 show available
trace events and their state