1 HXCOMM Use
DEFHEADING() to define headings
in both help text and rST
.
2 HXCOMM Text between SRST and ERST is copied to the rST version and
3 HXCOMM discarded from C version
.
4 HXCOMM
DEF(command
, args
, callback, arg_string
, help
) is used to construct
5 HXCOMM monitor info commands
6 HXCOMM HXCOMM can be used
for comments
, discarded from both rST and C
.
8 HXCOMM In
this file
, generally SRST fragments should have two extra
9 HXCOMM spaces of indent
, so that the documentation list item
for "info foo"
10 HXCOMM appears inside the documentation list item
for the top level
11 HXCOMM
"info" documentation entry
. The exception is the first SRST
12 HXCOMM fragment that defines that top level entry
.
16 Show various information about the system state
.
24 .help
= "show the version of QEMU",
25 .cmd
= hmp_info_version
,
31 Show the version of QEMU
.
38 .help
= "show the network state",
39 .cmd
= hmp_info_network
,
44 Show the network state
.
51 .help
= "show the character devices",
52 .cmd
= hmp_info_chardev
,
58 Show the character devices
.
63 .args_type
= "nodes:-n,verbose:-v,device:B?",
64 .params
= "[-n] [-v] [device]",
65 .help
= "show info of one block device or all block devices "
66 "(-n: show named nodes; -v: show details)",
67 .cmd
= hmp_info_block
,
72 Show info of one block device or all block devices
.
79 .help
= "show block device statistics",
80 .cmd
= hmp_info_blockstats
,
85 Show block device statistics
.
92 .help
= "show progress of ongoing block device operations",
93 .cmd
= hmp_info_block_jobs
,
98 Show progress of ongoing block device operations
.
103 .args_type
= "cpustate_all:-a",
105 .help
= "show the cpu registers (-a: all - show register info for all cpus)",
106 .cmd
= hmp_info_registers
,
111 Show the cpu registers
.
114 #
if defined(TARGET_I386
)
117 .args_type
= "apic-id:i?",
118 .params
= "[apic-id]",
119 .help
= "show local apic state (apic-id: local apic to read, default is which of current CPU)",
121 .cmd
= hmp_info_local_apic
,
127 Show local APIC state
130 #
if defined(TARGET_I386
)
135 .help
= "show io apic state",
136 .cmd
= hmp_info_io_apic
,
149 .help
= "show infos for each CPU",
150 .cmd
= hmp_info_cpus
,
155 Show infos
for each CPU
.
162 .help
= "show the command line history",
163 .cmd
= hmp_info_history
,
169 Show the command line history
.
176 .help
= "show the interrupts statistics (if available)",
182 Show the interrupts
statistics (if available
).
189 .help
= "show PIC state",
202 .help
= "show RDMA state",
203 .cmd
= hmp_info_rdma
,
215 .help
= "show PCI info",
221 Show PCI information
.
224 #
if defined(TARGET_I386
) ||
defined(TARGET_SH4
) ||
defined(TARGET_SPARC
) || \
225 defined(TARGET_PPC
) ||
defined(TARGET_XTENSA
) ||
defined(TARGET_M68K
)
230 .help
= "show virtual to physical memory mappings",
237 Show virtual to physical memory mappings
.
240 #
if defined(TARGET_I386
) ||
defined(TARGET_RISCV
)
245 .help
= "show the active virtual memory mappings",
252 Show the active virtual memory mappings
.
257 .args_type
= "flatview:-f,dispatch_tree:-d,owner:-o,disabled:-D",
258 .params
= "[-f][-d][-o][-D]",
259 .help
= "show memory tree (-f: dump flat view for address spaces;"
260 "-d: dump dispatch tree, valid with -f only);"
261 "-o: dump region owners/parents;"
262 "-D: dump disabled regions",
263 .cmd
= hmp_info_mtree
,
271 #
if defined(CONFIG_TCG
)
276 .help
= "show dynamic compiler info",
282 Show
dynamic compiler info
.
285 #
if defined(CONFIG_TCG
)
290 .help
= "show dynamic compiler opcode counters",
296 Show
dynamic compiler opcode counters
300 .name
= "sync-profile",
301 .args_type
= "mean:-m,no_coalesce:-n,max:i?",
302 .params
= "[-m] [-n] [max]",
303 .help
= "show synchronization profiling info, up to max entries "
304 "(default: 10), sorted by total wait time. (-m: sort by "
305 "mean wait time; -n: do not coalesce objects with the "
307 .cmd
= hmp_info_sync_profile
,
311 ``info sync
-profile
[-m|
-n
]``
[*max
*]
312 Show synchronization profiling info
, up to
*max
* entries (default: 10),
313 sorted by total wait time
.
316 sort by mean wait time
318 do not coalesce objects with the same call site
320 When different objects that share the same call site are coalesced
,
321 the
"Object" field shows
---enclosed
in brackets
---the number of objects
329 .help
= "show KVM information",
335 Show KVM information
.
342 .help
= "show NUMA information",
343 .cmd
= hmp_info_numa
,
348 Show NUMA information
.
355 .help
= "show guest USB devices",
361 Show guest USB devices
.
368 .help
= "show host USB devices",
373 Show host USB devices
.
380 .help
= "show profiling information",
381 .cmd
= hmp_info_profile
,
386 Show profiling information
.
393 .help
= "show capture information",
394 .cmd
= hmp_info_capture
,
399 Show capture information
.
406 .help
= "show the currently saved VM snapshots",
407 .cmd
= hmp_info_snapshots
,
412 Show the currently saved VM snapshots
.
419 .help
= "show the current VM status (running|paused)",
420 .cmd
= hmp_info_status
,
426 Show the current VM
status (running|paused
).
433 .help
= "show which guest mouse is receiving events",
434 .cmd
= hmp_info_mice
,
439 Show which guest mouse is receiving events
.
442 #
if defined(CONFIG_VNC
)
447 .help
= "show the vnc server status",
454 Show the vnc server status
.
457 #
if defined(CONFIG_SPICE
)
462 .help
= "show the spice server status",
463 .cmd
= hmp_info_spice
,
469 Show the spice server status
.
476 .help
= "show the current VM name",
477 .cmd
= hmp_info_name
,
483 Show the current VM name
.
490 .help
= "show the current VM UUID",
491 .cmd
= hmp_info_uuid
,
497 Show the current VM UUID
.
500 #
if defined(CONFIG_SLIRP
)
505 .help
= "show user network stack connection states",
506 .cmd
= hmp_info_usernet
,
512 Show user network stack connection states
.
519 .help
= "show migration status",
520 .cmd
= hmp_info_migrate
,
525 Show migration status
.
529 .name
= "migrate_capabilities",
532 .help
= "show current migration capabilities",
533 .cmd
= hmp_info_migrate_capabilities
,
537 ``info migrate_capabilities``
538 Show current migration capabilities
.
542 .name
= "migrate_parameters",
545 .help
= "show current migration parameters",
546 .cmd
= hmp_info_migrate_parameters
,
550 ``info migrate_parameters``
551 Show current migration parameters
.
558 .help
= "show balloon information",
559 .cmd
= hmp_info_balloon
,
564 Show balloon information
.
571 .help
= "show device tree",
572 .cmd
= hmp_info_qtree
,
584 .help
= "show qdev device model list",
590 Show qdev device model list
.
595 .args_type
= "path:s?",
597 .help
= "show QOM composition tree",
598 .cmd
= hmp_info_qom_tree
,
604 Show QOM composition tree
.
612 .cmd
= hmp_info_roms
,
621 .name
= "trace-events",
622 .args_type
= "name:s?,vcpu:i?",
623 .params
= "[name] [vcpu]",
624 .help
= "show available trace-events & their state "
625 "(name: event name pattern; vcpu: vCPU to query, default is any)",
626 .cmd
= hmp_info_trace_events
,
627 .command_completion
= info_trace_events_completion
,
631 ``info
trace-events``
632 Show available
trace-events
& their state
.
639 .help
= "show the TPM device",
652 .help
= "show memory backends",
653 .cmd
= hmp_info_memdev
,
663 .name
= "memory-devices",
666 .help
= "show memory devices",
667 .cmd
= hmp_info_memory_devices
,
671 ``info memory
-devices``
679 .help
= "show iothreads",
680 .cmd
= hmp_info_iothreads
,
686 Show iothread
's identifiers.
691 .args_type = "name:s",
693 .help = "Show rocker switch",
698 ``info rocker`` *name*
703 .name = "rocker-ports",
704 .args_type = "name:s",
706 .help = "Show rocker ports",
707 .cmd = hmp_rocker_ports,
711 ``info rocker-ports`` *name*-ports
716 .name = "rocker-of-dpa-flows",
717 .args_type = "name:s,tbl_id:i?",
718 .params = "name [tbl_id]",
719 .help = "Show rocker OF-DPA flow tables",
720 .cmd = hmp_rocker_of_dpa_flows,
724 ``info rocker-of-dpa-flows`` *name* [*tbl_id*]
725 Show rocker OF-DPA flow tables.
729 .name = "rocker-of-dpa-groups",
730 .args_type = "name:s,type:i?",
731 .params = "name [type]",
732 .help = "Show rocker OF-DPA groups",
733 .cmd = hmp_rocker_of_dpa_groups,
737 ``info rocker-of-dpa-groups`` *name* [*type*]
738 Show rocker OF-DPA groups.
741 #if defined(TARGET_S390X)
744 .args_type = "addr:l",
746 .help = "Display the value of a storage key",
747 .cmd = hmp_info_skeys,
752 ``info skeys`` *address*
753 Display the value of a storage key (s390 only)
756 #if defined(TARGET_S390X)
759 .args_type = "addr:l,count:l?",
760 .params = "address [count]",
761 .help = "Display the values of the CMMA storage attributes for a range of pages",
762 .cmd = hmp_info_cmma,
767 ``info cmma`` *address*
768 Display the values of the CMMA storage attributes for a range of
776 .help = "Display the latest dump status",
777 .cmd = hmp_info_dump,
782 Display the latest dump status.
789 .help = "Display system ramblock information",
790 .cmd = hmp_info_ramblock,
795 Dump all the ramblocks of the system.
799 .name = "hotpluggable-cpus",
802 .help = "Show information about hotpluggable CPUs",
803 .cmd = hmp_hotpluggable_cpus,
808 ``info hotpluggable-cpus``
809 Show information about hotpluggable CPUs
813 .name = "vm-generation-id",
816 .help = "Show Virtual Machine Generation ID",
817 .cmd = hmp_info_vm_generation_id,
821 ``info vm-generation-id``
822 Show Virtual Machine Generation ID
826 .name = "memory_size_summary",
829 .help = "show the amount of initially allocated and "
830 "present hotpluggable (if enabled) memory in bytes.",
831 .cmd = hmp_info_memory_size_summary,
835 ``info memory_size_summary``
836 Display the amount of initially allocated and present hotpluggable (if
837 enabled) memory in bytes.
840 #if defined(TARGET_I386)
845 .help = "show SEV information",
852 Show SEV information.
859 .help = "show record/replay information",
860 .cmd = hmp_info_replay,
865 Display the record/replay information: mode and the current icount.
869 .name = "dirty_rate",
872 .help = "show dirty rate information",
873 .cmd = hmp_info_dirty_rate,
878 Display the vcpu dirty rate information.
881 #if defined(TARGET_I386)
886 .help = "show intel SGX information",
893 Show intel SGX information.