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
134 .help
= "show infos for each CPU",
135 .cmd
= hmp_info_cpus
,
140 Show infos
for each CPU
.
147 .help
= "show the command line history",
148 .cmd
= hmp_info_history
,
154 Show the command line history
.
161 .help
= "show the interrupts statistics (if available)",
162 .cmd_info_hrt
= qmp_x_query_irq
,
167 Show the interrupts
statistics (if available
).
174 .help
= "show PIC state",
187 .help
= "show RDMA state",
188 .cmd_info_hrt
= qmp_x_query_rdma
,
200 .help
= "show PCI info",
206 Show PCI information
.
209 #
if defined(TARGET_I386
) ||
defined(TARGET_SH4
) ||
defined(TARGET_SPARC
) || \
210 defined(TARGET_PPC
) ||
defined(TARGET_XTENSA
) ||
defined(TARGET_M68K
)
215 .help
= "show virtual to physical memory mappings",
222 Show virtual to physical memory mappings
.
225 #
if defined(TARGET_I386
) ||
defined(TARGET_RISCV
)
230 .help
= "show the active virtual memory mappings",
237 Show the active virtual memory mappings
.
242 .args_type
= "flatview:-f,dispatch_tree:-d,owner:-o,disabled:-D",
243 .params
= "[-f][-d][-o][-D]",
244 .help
= "show memory tree (-f: dump flat view for address spaces;"
245 "-d: dump dispatch tree, valid with -f only);"
246 "-o: dump region owners/parents;"
247 "-D: dump disabled regions",
248 .cmd
= hmp_info_mtree
,
256 #
if defined(CONFIG_TCG
)
261 .help
= "show dynamic compiler info",
267 Show
dynamic compiler info
.
270 #
if defined(CONFIG_TCG
)
275 .help
= "show dynamic compiler opcode counters",
281 Show
dynamic compiler opcode counters
285 .name
= "sync-profile",
286 .args_type
= "mean:-m,no_coalesce:-n,max:i?",
287 .params
= "[-m] [-n] [max]",
288 .help
= "show synchronization profiling info, up to max entries "
289 "(default: 10), sorted by total wait time. (-m: sort by "
290 "mean wait time; -n: do not coalesce objects with the "
292 .cmd
= hmp_info_sync_profile
,
296 ``info sync
-profile
[-m|
-n
]``
[*max
*]
297 Show synchronization profiling info
, up to
*max
* entries (default: 10),
298 sorted by total wait time
.
301 sort by mean wait time
303 do not coalesce objects with the same call site
305 When different objects that share the same call site are coalesced
,
306 the
"Object" field shows
---enclosed
in brackets
---the number of objects
314 .help
= "show KVM information",
320 Show KVM information
.
327 .help
= "show NUMA information",
328 .cmd_info_hrt
= qmp_x_query_numa
,
333 Show NUMA information
.
340 .help
= "show guest USB devices",
341 .cmd_info_hrt
= qmp_x_query_usb
,
346 Show guest USB devices
.
353 .help
= "show host USB devices",
358 Show host USB devices
.
361 #
if defined(CONFIG_TCG
)
366 .help
= "show profiling information",
367 .cmd_info_hrt
= qmp_x_query_profile
,
373 Show profiling information
.
380 .help
= "show capture information",
381 .cmd
= hmp_info_capture
,
386 Show capture information
.
393 .help
= "show the currently saved VM snapshots",
394 .cmd
= hmp_info_snapshots
,
399 Show the currently saved VM snapshots
.
406 .help
= "show the current VM status (running|paused)",
407 .cmd
= hmp_info_status
,
413 Show the current VM
status (running|paused
).
420 .help
= "show which guest mouse is receiving events",
421 .cmd
= hmp_info_mice
,
426 Show which guest mouse is receiving events
.
429 #
if defined(CONFIG_VNC
)
434 .help
= "show the vnc server status",
441 Show the vnc server status
.
444 #
if defined(CONFIG_SPICE
)
449 .help
= "show the spice server status",
450 .cmd
= hmp_info_spice
,
456 Show the spice server status
.
463 .help
= "show the current VM name",
464 .cmd
= hmp_info_name
,
470 Show the current VM name
.
477 .help
= "show the current VM UUID",
478 .cmd
= hmp_info_uuid
,
484 Show the current VM UUID
.
487 #
if defined(CONFIG_SLIRP
)
492 .help
= "show user network stack connection states",
493 .cmd
= hmp_info_usernet
,
499 Show user network stack connection states
.
506 .help
= "show migration status",
507 .cmd
= hmp_info_migrate
,
512 Show migration status
.
516 .name
= "migrate_capabilities",
519 .help
= "show current migration capabilities",
520 .cmd
= hmp_info_migrate_capabilities
,
524 ``info migrate_capabilities``
525 Show current migration capabilities
.
529 .name
= "migrate_parameters",
532 .help
= "show current migration parameters",
533 .cmd
= hmp_info_migrate_parameters
,
537 ``info migrate_parameters``
538 Show current migration parameters
.
545 .help
= "show balloon information",
546 .cmd
= hmp_info_balloon
,
551 Show balloon information
.
558 .help
= "show device tree",
559 .cmd
= hmp_info_qtree
,
571 .help
= "show qdev device model list",
577 Show qdev device model list
.
582 .args_type
= "path:s?",
584 .help
= "show QOM composition tree",
585 .cmd
= hmp_info_qom_tree
,
591 Show QOM composition tree
.
599 .cmd_info_hrt
= qmp_x_query_roms
,
608 .name
= "trace-events",
609 .args_type
= "name:s?,vcpu:i?",
610 .params
= "[name] [vcpu]",
611 .help
= "show available trace-events & their state "
612 "(name: event name pattern; vcpu: vCPU to query, default is any)",
613 .cmd
= hmp_info_trace_events
,
614 .command_completion
= info_trace_events_completion
,
618 ``info
trace-events``
619 Show available
trace-events
& their state
.
626 .help
= "show the TPM device",
639 .help
= "show memory backends",
640 .cmd
= hmp_info_memdev
,
650 .name
= "memory-devices",
653 .help
= "show memory devices",
654 .cmd
= hmp_info_memory_devices
,
658 ``info memory
-devices``
666 .help
= "show iothreads",
667 .cmd
= hmp_info_iothreads
,
673 Show iothread
's identifiers.
678 .args_type = "name:s",
680 .help = "Show rocker switch",
685 ``info rocker`` *name*
690 .name = "rocker-ports",
691 .args_type = "name:s",
693 .help = "Show rocker ports",
694 .cmd = hmp_rocker_ports,
698 ``info rocker-ports`` *name*-ports
703 .name = "rocker-of-dpa-flows",
704 .args_type = "name:s,tbl_id:i?",
705 .params = "name [tbl_id]",
706 .help = "Show rocker OF-DPA flow tables",
707 .cmd = hmp_rocker_of_dpa_flows,
711 ``info rocker-of-dpa-flows`` *name* [*tbl_id*]
712 Show rocker OF-DPA flow tables.
716 .name = "rocker-of-dpa-groups",
717 .args_type = "name:s,type:i?",
718 .params = "name [type]",
719 .help = "Show rocker OF-DPA groups",
720 .cmd = hmp_rocker_of_dpa_groups,
724 ``info rocker-of-dpa-groups`` *name* [*type*]
725 Show rocker OF-DPA groups.
728 #if defined(TARGET_S390X)
731 .args_type = "addr:l",
733 .help = "Display the value of a storage key",
734 .cmd = hmp_info_skeys,
739 ``info skeys`` *address*
740 Display the value of a storage key (s390 only)
743 #if defined(TARGET_S390X)
746 .args_type = "addr:l,count:l?",
747 .params = "address [count]",
748 .help = "Display the values of the CMMA storage attributes for a range of pages",
749 .cmd = hmp_info_cmma,
754 ``info cmma`` *address*
755 Display the values of the CMMA storage attributes for a range of
763 .help = "Display the latest dump status",
764 .cmd = hmp_info_dump,
769 Display the latest dump status.
776 .help = "Display system ramblock information",
777 .cmd_info_hrt = qmp_x_query_ramblock,
782 Dump all the ramblocks of the system.
786 .name = "hotpluggable-cpus",
789 .help = "Show information about hotpluggable CPUs",
790 .cmd = hmp_hotpluggable_cpus,
795 ``info hotpluggable-cpus``
796 Show information about hotpluggable CPUs
800 .name = "vm-generation-id",
803 .help = "Show Virtual Machine Generation ID",
804 .cmd = hmp_info_vm_generation_id,
808 ``info vm-generation-id``
809 Show Virtual Machine Generation ID
813 .name = "memory_size_summary",
816 .help = "show the amount of initially allocated and "
817 "present hotpluggable (if enabled) memory in bytes.",
818 .cmd = hmp_info_memory_size_summary,
822 ``info memory_size_summary``
823 Display the amount of initially allocated and present hotpluggable (if
824 enabled) memory in bytes.
827 #if defined(TARGET_I386)
832 .help = "show SEV information",
839 Show SEV information.
846 .help = "show record/replay information",
847 .cmd = hmp_info_replay,
852 Display the record/replay information: mode and the current icount.
856 .name = "dirty_rate",
859 .help = "show dirty rate information",
860 .cmd = hmp_info_dirty_rate,
865 Display the vcpu dirty rate information.
868 #if defined(TARGET_I386)
873 .help = "show intel SGX information",
880 Show intel SGX information.
883 #if defined(TARGET_M68K) || defined(TARGET_PPC)
888 .help = "show guest mos6522 VIA devices",
895 Show guest mos6522 VIA devices.