hmp-commands-info.hx: Add rST documentation fragments

Add the rST versions of the documentation fragments.  Once we've
converted fully from Texinfo to rST we can remove the ETEXI
fragments; for the moment we need both.

Note that most of the SRST fragments are 2-space indented so that the
'info foo' documentation entries appear as a sublist under the 'info'
entry in the top level list.

Again, all we need to do to put the documentation in the Sphinx manual
is a one-line hxtool-doc invocation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200228153619.9906-22-peter.maydell@linaro.org
This commit is contained in:
Peter Maydell 2020-02-28 15:36:07 +00:00
parent a6b30bcae6
commit a12e74cc52
3 changed files with 273 additions and 4 deletions

View File

@ -1071,7 +1071,7 @@ $(MANUAL_BUILDDIR)/interop/index.html: $(call manual-deps,interop)
$(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs) $(MANUAL_BUILDDIR)/specs/index.html: $(call manual-deps,specs)
$(call build-manual,specs,html) $(call build-manual,specs,html)
$(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(SRC_PATH)/hmp-commands.hx $(MANUAL_BUILDDIR)/system/index.html: $(call manual-deps,system) $(SRC_PATH)/hmp-commands.hx $(SRC_PATH)/hmp-commands-info.hx
$(call build-manual,system,html) $(call build-manual,system,html)
$(MANUAL_BUILDDIR)/tools/index.html: $(call manual-deps,tools) $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/docs/qemu-option-trace.rst.inc $(MANUAL_BUILDDIR)/tools/index.html: $(call manual-deps,tools) $(SRC_PATH)/qemu-img-cmds.hx $(SRC_PATH)/docs/qemu-option-trace.rst.inc

View File

@ -21,9 +21,7 @@ The following commands are available:
.. hxtool-doc:: hmp-commands.hx .. hxtool-doc:: hmp-commands.hx
.. .. hxtool-doc:: hmp-commands-info.hx
TODO: convert and reference hmp-commands-info.hx
Integer expressions Integer expressions
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~

View File

@ -4,6 +4,12 @@ HXCOMM discarded from C version
HXCOMM DEF(command, args, callback, arg_string, help) is used to construct HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
HXCOMM monitor info commands HXCOMM monitor info commands
HXCOMM HXCOMM can be used for comments, discarded from both texi and C HXCOMM HXCOMM can be used for comments, discarded from both texi and C
HXCOMM
HXCOMM In this file, generally SRST fragments should have two extra
HXCOMM spaces of indent, so that the documentation list item for "info foo"
HXCOMM appears inside the documentation list item for the top level
HXCOMM "info" documentation entry. The exception is the first SRST
HXCOMM fragment that defines that top level entry.
STEXI STEXI
@table @option @table @option
@ -12,6 +18,11 @@ STEXI
Show various information about the system state. Show various information about the system state.
@table @option @table @option
ETEXI ETEXI
SRST
``info`` *subcommand*
Show various information about the system state.
ERST
{ {
.name = "version", .name = "version",
@ -27,6 +38,10 @@ STEXI
@findex info version @findex info version
Show the version of QEMU. Show the version of QEMU.
ETEXI ETEXI
SRST
``info version``
Show the version of QEMU.
ERST
{ {
.name = "network", .name = "network",
@ -41,6 +56,10 @@ STEXI
@findex info network @findex info network
Show the network state. Show the network state.
ETEXI ETEXI
SRST
``info network``
Show the network state.
ERST
{ {
.name = "chardev", .name = "chardev",
@ -56,6 +75,10 @@ STEXI
@findex info chardev @findex info chardev
Show the character devices. Show the character devices.
ETEXI ETEXI
SRST
``info chardev``
Show the character devices.
ERST
{ {
.name = "block", .name = "block",
@ -71,6 +94,10 @@ STEXI
@findex info block @findex info block
Show info of one block device or all block devices. Show info of one block device or all block devices.
ETEXI ETEXI
SRST
``info block``
Show info of one block device or all block devices.
ERST
{ {
.name = "blockstats", .name = "blockstats",
@ -85,6 +112,10 @@ STEXI
@findex info blockstats @findex info blockstats
Show block device statistics. Show block device statistics.
ETEXI ETEXI
SRST
``info blockstats``
Show block device statistics.
ERST
{ {
.name = "block-jobs", .name = "block-jobs",
@ -99,6 +130,10 @@ STEXI
@findex info block-jobs @findex info block-jobs
Show progress of ongoing block device operations. Show progress of ongoing block device operations.
ETEXI ETEXI
SRST
``info block-jobs``
Show progress of ongoing block device operations.
ERST
{ {
.name = "registers", .name = "registers",
@ -113,6 +148,10 @@ STEXI
@findex info registers @findex info registers
Show the cpu registers. Show the cpu registers.
ETEXI ETEXI
SRST
``info registers``
Show the cpu registers.
ERST
#if defined(TARGET_I386) #if defined(TARGET_I386)
{ {
@ -130,6 +169,10 @@ STEXI
@findex info lapic @findex info lapic
Show local APIC state Show local APIC state
ETEXI ETEXI
SRST
``info lapic``
Show local APIC state
ERST
#if defined(TARGET_I386) #if defined(TARGET_I386)
{ {
@ -146,6 +189,10 @@ STEXI
@findex info ioapic @findex info ioapic
Show io APIC state Show io APIC state
ETEXI ETEXI
SRST
``info ioapic``
Show io APIC state
ERST
{ {
.name = "cpus", .name = "cpus",
@ -160,6 +207,10 @@ STEXI
@findex info cpus @findex info cpus
Show infos for each CPU. Show infos for each CPU.
ETEXI ETEXI
SRST
``info cpus``
Show infos for each CPU.
ERST
{ {
.name = "history", .name = "history",
@ -175,6 +226,10 @@ STEXI
@findex info history @findex info history
Show the command line history. Show the command line history.
ETEXI ETEXI
SRST
``info history``
Show the command line history.
ERST
{ {
.name = "irq", .name = "irq",
@ -189,6 +244,10 @@ STEXI
@findex info irq @findex info irq
Show the interrupts statistics (if available). Show the interrupts statistics (if available).
ETEXI ETEXI
SRST
``info irq``
Show the interrupts statistics (if available).
ERST
{ {
.name = "pic", .name = "pic",
@ -203,6 +262,10 @@ STEXI
@findex info pic @findex info pic
Show PIC state. Show PIC state.
ETEXI ETEXI
SRST
``info pic``
Show PIC state.
ERST
{ {
.name = "rdma", .name = "rdma",
@ -217,6 +280,10 @@ STEXI
@findex info rdma @findex info rdma
Show RDMA state. Show RDMA state.
ETEXI ETEXI
SRST
``info rdma``
Show RDMA state.
ERST
{ {
.name = "pci", .name = "pci",
@ -231,6 +298,10 @@ STEXI
@findex info pci @findex info pci
Show PCI information. Show PCI information.
ETEXI ETEXI
SRST
``info pci``
Show PCI information.
ERST
#if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \ #if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \
defined(TARGET_PPC) || defined(TARGET_XTENSA) || defined(TARGET_M68K) defined(TARGET_PPC) || defined(TARGET_XTENSA) || defined(TARGET_M68K)
@ -248,6 +319,10 @@ STEXI
@findex info tlb @findex info tlb
Show virtual to physical memory mappings. Show virtual to physical memory mappings.
ETEXI ETEXI
SRST
``info tlb``
Show virtual to physical memory mappings.
ERST
#if defined(TARGET_I386) || defined(TARGET_RISCV) #if defined(TARGET_I386) || defined(TARGET_RISCV)
{ {
@ -264,6 +339,10 @@ STEXI
@findex info mem @findex info mem
Show the active virtual memory mappings. Show the active virtual memory mappings.
ETEXI ETEXI
SRST
``info mem``
Show the active virtual memory mappings.
ERST
{ {
.name = "mtree", .name = "mtree",
@ -280,6 +359,10 @@ STEXI
@findex info mtree @findex info mtree
Show memory tree. Show memory tree.
ETEXI ETEXI
SRST
``info mtree``
Show memory tree.
ERST
#if defined(CONFIG_TCG) #if defined(CONFIG_TCG)
{ {
@ -296,6 +379,10 @@ STEXI
@findex info jit @findex info jit
Show dynamic compiler info. Show dynamic compiler info.
ETEXI ETEXI
SRST
``info jit``
Show dynamic compiler info.
ERST
#if defined(CONFIG_TCG) #if defined(CONFIG_TCG)
{ {
@ -312,6 +399,10 @@ STEXI
@findex info opcount @findex info opcount
Show dynamic compiler opcode counters Show dynamic compiler opcode counters
ETEXI ETEXI
SRST
``info opcount``
Show dynamic compiler opcode counters
ERST
{ {
.name = "sync-profile", .name = "sync-profile",
@ -334,6 +425,20 @@ sorted by total wait time.
When different objects that share the same call site are coalesced, the "Object" When different objects that share the same call site are coalesced, the "Object"
field shows---enclosed in brackets---the number of objects being coalesced. field shows---enclosed in brackets---the number of objects being coalesced.
ETEXI ETEXI
SRST
``info sync-profile [-m|-n]`` [*max*]
Show synchronization profiling info, up to *max* entries (default: 10),
sorted by total wait time.
``-m``
sort by mean wait time
``-n``
do not coalesce objects with the same call site
When different objects that share the same call site are coalesced,
the "Object" field shows---enclosed in brackets---the number of objects
being coalesced.
ERST
{ {
.name = "kvm", .name = "kvm",
@ -348,6 +453,10 @@ STEXI
@findex info kvm @findex info kvm
Show KVM information. Show KVM information.
ETEXI ETEXI
SRST
``info kvm``
Show KVM information.
ERST
{ {
.name = "numa", .name = "numa",
@ -362,6 +471,10 @@ STEXI
@findex info numa @findex info numa
Show NUMA information. Show NUMA information.
ETEXI ETEXI
SRST
``info numa``
Show NUMA information.
ERST
{ {
.name = "usb", .name = "usb",
@ -376,6 +489,10 @@ STEXI
@findex info usb @findex info usb
Show guest USB devices. Show guest USB devices.
ETEXI ETEXI
SRST
``info usb``
Show guest USB devices.
ERST
{ {
.name = "usbhost", .name = "usbhost",
@ -390,6 +507,10 @@ STEXI
@findex info usbhost @findex info usbhost
Show host USB devices. Show host USB devices.
ETEXI ETEXI
SRST
``info usbhost``
Show host USB devices.
ERST
{ {
.name = "profile", .name = "profile",
@ -404,6 +525,10 @@ STEXI
@findex info profile @findex info profile
Show profiling information. Show profiling information.
ETEXI ETEXI
SRST
``info profile``
Show profiling information.
ERST
{ {
.name = "capture", .name = "capture",
@ -418,6 +543,10 @@ STEXI
@findex info capture @findex info capture
Show capture information. Show capture information.
ETEXI ETEXI
SRST
``info capture``
Show capture information.
ERST
{ {
.name = "snapshots", .name = "snapshots",
@ -432,6 +561,10 @@ STEXI
@findex info snapshots @findex info snapshots
Show the currently saved VM snapshots. Show the currently saved VM snapshots.
ETEXI ETEXI
SRST
``info snapshots``
Show the currently saved VM snapshots.
ERST
{ {
.name = "status", .name = "status",
@ -447,6 +580,10 @@ STEXI
@findex info status @findex info status
Show the current VM status (running|paused). Show the current VM status (running|paused).
ETEXI ETEXI
SRST
``info status``
Show the current VM status (running|paused).
ERST
{ {
.name = "mice", .name = "mice",
@ -461,6 +598,10 @@ STEXI
@findex info mice @findex info mice
Show which guest mouse is receiving events. Show which guest mouse is receiving events.
ETEXI ETEXI
SRST
``info mice``
Show which guest mouse is receiving events.
ERST
#if defined(CONFIG_VNC) #if defined(CONFIG_VNC)
{ {
@ -477,6 +618,10 @@ STEXI
@findex info vnc @findex info vnc
Show the vnc server status. Show the vnc server status.
ETEXI ETEXI
SRST
``info vnc``
Show the vnc server status.
ERST
#if defined(CONFIG_SPICE) #if defined(CONFIG_SPICE)
{ {
@ -493,6 +638,10 @@ STEXI
@findex info spice @findex info spice
Show the spice server status. Show the spice server status.
ETEXI ETEXI
SRST
``info spice``
Show the spice server status.
ERST
{ {
.name = "name", .name = "name",
@ -508,6 +657,10 @@ STEXI
@findex info name @findex info name
Show the current VM name. Show the current VM name.
ETEXI ETEXI
SRST
``info name``
Show the current VM name.
ERST
{ {
.name = "uuid", .name = "uuid",
@ -523,6 +676,10 @@ STEXI
@findex info uuid @findex info uuid
Show the current VM UUID. Show the current VM UUID.
ETEXI ETEXI
SRST
``info uuid``
Show the current VM UUID.
ERST
{ {
.name = "cpustats", .name = "cpustats",
@ -537,6 +694,10 @@ STEXI
@findex info cpustats @findex info cpustats
Show CPU statistics. Show CPU statistics.
ETEXI ETEXI
SRST
``info cpustats``
Show CPU statistics.
ERST
#if defined(CONFIG_SLIRP) #if defined(CONFIG_SLIRP)
{ {
@ -553,6 +714,10 @@ STEXI
@findex info usernet @findex info usernet
Show user network stack connection states. Show user network stack connection states.
ETEXI ETEXI
SRST
``info usernet``
Show user network stack connection states.
ERST
{ {
.name = "migrate", .name = "migrate",
@ -567,6 +732,10 @@ STEXI
@findex info migrate @findex info migrate
Show migration status. Show migration status.
ETEXI ETEXI
SRST
``info migrate``
Show migration status.
ERST
{ {
.name = "migrate_capabilities", .name = "migrate_capabilities",
@ -581,6 +750,10 @@ STEXI
@findex info migrate_capabilities @findex info migrate_capabilities
Show current migration capabilities. Show current migration capabilities.
ETEXI ETEXI
SRST
``info migrate_capabilities``
Show current migration capabilities.
ERST
{ {
.name = "migrate_parameters", .name = "migrate_parameters",
@ -595,6 +768,10 @@ STEXI
@findex info migrate_parameters @findex info migrate_parameters
Show current migration parameters. Show current migration parameters.
ETEXI ETEXI
SRST
``info migrate_parameters``
Show current migration parameters.
ERST
{ {
.name = "migrate_cache_size", .name = "migrate_cache_size",
@ -609,6 +786,10 @@ STEXI
@findex info migrate_cache_size @findex info migrate_cache_size
Show current migration xbzrle cache size. Show current migration xbzrle cache size.
ETEXI ETEXI
SRST
``info migrate_cache_size``
Show current migration xbzrle cache size.
ERST
{ {
.name = "balloon", .name = "balloon",
@ -623,6 +804,10 @@ STEXI
@findex info balloon @findex info balloon
Show balloon information. Show balloon information.
ETEXI ETEXI
SRST
``info balloon``
Show balloon information.
ERST
{ {
.name = "qtree", .name = "qtree",
@ -637,6 +822,10 @@ STEXI
@findex info qtree @findex info qtree
Show device tree. Show device tree.
ETEXI ETEXI
SRST
``info qtree``
Show device tree.
ERST
{ {
.name = "qdm", .name = "qdm",
@ -651,6 +840,10 @@ STEXI
@findex info qdm @findex info qdm
Show qdev device model list. Show qdev device model list.
ETEXI ETEXI
SRST
``info qdm``
Show qdev device model list.
ERST
{ {
.name = "qom-tree", .name = "qom-tree",
@ -666,6 +859,10 @@ STEXI
@findex info qom-tree @findex info qom-tree
Show QOM composition tree. Show QOM composition tree.
ETEXI ETEXI
SRST
``info qom-tree``
Show QOM composition tree.
ERST
{ {
.name = "roms", .name = "roms",
@ -680,6 +877,10 @@ STEXI
@findex info roms @findex info roms
Show roms. Show roms.
ETEXI ETEXI
SRST
``info roms``
Show roms.
ERST
{ {
.name = "trace-events", .name = "trace-events",
@ -696,6 +897,10 @@ STEXI
@findex info trace-events @findex info trace-events
Show available trace-events & their state. Show available trace-events & their state.
ETEXI ETEXI
SRST
``info trace-events``
Show available trace-events & their state.
ERST
{ {
.name = "tpm", .name = "tpm",
@ -710,6 +915,10 @@ STEXI
@findex info tpm @findex info tpm
Show the TPM device. Show the TPM device.
ETEXI ETEXI
SRST
``info tpm``
Show the TPM device.
ERST
{ {
.name = "memdev", .name = "memdev",
@ -725,6 +934,10 @@ STEXI
@findex info memdev @findex info memdev
Show memory backends Show memory backends
ETEXI ETEXI
SRST
``info memdev``
Show memory backends
ERST
{ {
.name = "memory-devices", .name = "memory-devices",
@ -739,6 +952,10 @@ STEXI
@findex info memory-devices @findex info memory-devices
Show memory devices. Show memory devices.
ETEXI ETEXI
SRST
``info memory-devices``
Show memory devices.
ERST
{ {
.name = "iothreads", .name = "iothreads",
@ -754,6 +971,10 @@ STEXI
@findex info iothreads @findex info iothreads
Show iothread's identifiers. Show iothread's identifiers.
ETEXI ETEXI
SRST
``info iothreads``
Show iothread's identifiers.
ERST
{ {
.name = "rocker", .name = "rocker",
@ -768,6 +989,10 @@ STEXI
@findex info rocker @findex info rocker
Show rocker switch. Show rocker switch.
ETEXI ETEXI
SRST
``info rocker`` *name*
Show rocker switch.
ERST
{ {
.name = "rocker-ports", .name = "rocker-ports",
@ -782,6 +1007,10 @@ STEXI
@findex info rocker-ports @findex info rocker-ports
Show rocker ports. Show rocker ports.
ETEXI ETEXI
SRST
``info rocker-ports`` *name*-ports
Show rocker ports.
ERST
{ {
.name = "rocker-of-dpa-flows", .name = "rocker-of-dpa-flows",
@ -796,6 +1025,10 @@ STEXI
@findex info rocker-of-dpa-flows @findex info rocker-of-dpa-flows
Show rocker OF-DPA flow tables. Show rocker OF-DPA flow tables.
ETEXI ETEXI
SRST
``info rocker-of-dpa-flows`` *name* [*tbl_id*]
Show rocker OF-DPA flow tables.
ERST
{ {
.name = "rocker-of-dpa-groups", .name = "rocker-of-dpa-groups",
@ -810,6 +1043,10 @@ STEXI
@findex info rocker-of-dpa-groups @findex info rocker-of-dpa-groups
Show rocker OF-DPA groups. Show rocker OF-DPA groups.
ETEXI ETEXI
SRST
``info rocker-of-dpa-groups`` *name* [*type*]
Show rocker OF-DPA groups.
ERST
#if defined(TARGET_S390X) #if defined(TARGET_S390X)
{ {
@ -826,6 +1063,10 @@ STEXI
@findex info skeys @findex info skeys
Display the value of a storage key (s390 only) Display the value of a storage key (s390 only)
ETEXI ETEXI
SRST
``info skeys`` *address*
Display the value of a storage key (s390 only)
ERST
#if defined(TARGET_S390X) #if defined(TARGET_S390X)
{ {
@ -842,6 +1083,11 @@ STEXI
@findex info cmma @findex info cmma
Display the values of the CMMA storage attributes for a range of pages (s390 only) Display the values of the CMMA storage attributes for a range of pages (s390 only)
ETEXI ETEXI
SRST
``info cmma`` *address*
Display the values of the CMMA storage attributes for a range of
pages (s390 only)
ERST
{ {
.name = "dump", .name = "dump",
@ -856,6 +1102,10 @@ STEXI
@findex info dump @findex info dump
Display the latest dump status. Display the latest dump status.
ETEXI ETEXI
SRST
``info dump``
Display the latest dump status.
ERST
{ {
.name = "ramblock", .name = "ramblock",
@ -870,6 +1120,10 @@ STEXI
@findex info ramblock @findex info ramblock
Dump all the ramblocks of the system. Dump all the ramblocks of the system.
ETEXI ETEXI
SRST
``info ramblock``
Dump all the ramblocks of the system.
ERST
{ {
.name = "hotpluggable-cpus", .name = "hotpluggable-cpus",
@ -885,6 +1139,10 @@ STEXI
@findex info hotpluggable-cpus @findex info hotpluggable-cpus
Show information about hotpluggable CPUs Show information about hotpluggable CPUs
ETEXI ETEXI
SRST
``info hotpluggable-cpus``
Show information about hotpluggable CPUs
ERST
{ {
.name = "vm-generation-id", .name = "vm-generation-id",
@ -899,6 +1157,10 @@ STEXI
@findex info vm-generation-id @findex info vm-generation-id
Show Virtual Machine Generation ID Show Virtual Machine Generation ID
ETEXI ETEXI
SRST
``info vm-generation-id``
Show Virtual Machine Generation ID
ERST
{ {
.name = "memory_size_summary", .name = "memory_size_summary",
@ -915,6 +1177,11 @@ STEXI
Display the amount of initially allocated and present hotpluggable (if Display the amount of initially allocated and present hotpluggable (if
enabled) memory in bytes. enabled) memory in bytes.
ETEXI ETEXI
SRST
``info memory_size_summary``
Display the amount of initially allocated and present hotpluggable (if
enabled) memory in bytes.
ERST
#if defined(TARGET_I386) #if defined(TARGET_I386)
{ {
@ -931,6 +1198,10 @@ STEXI
@findex info sev @findex info sev
Show SEV information. Show SEV information.
ETEXI ETEXI
SRST
``info sev``
Show SEV information.
ERST
STEXI STEXI
@end table @end table