HMP pull 2017-10-05
-----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJZ1g5lAAoJEAUWMx68W/3nFY8P/3L3TtGeHkrKPmb6dKrjWuLc i4Hmy/T5sJ8S0xzuMbzk3MBjTc6grUxfZ5v2FfOEjuwx23zIRXrobgGnPiMVnFup vpJExl/UKl1YN1txKijk46XaY2S24qNr6WwHcvZlVw1tUyrIQYGN4WiLcqZDpIia SSHjm3DkMfg0UjVg/3Grf9zhQzXra5tjhofuehATJF1nIeDP1jVWhTXqY5krtkOT yMYh2zPCBrEwB7dvJocB9sKEsvf5WhmGGEZWvoqwChbN4pYgzIRdkn9yuKHUThmx cLLXSAe8jQYuwL8KRjFMIiaxYITkPn2yvisb45Ii/feMvqtXizkxEFOIUFzjvh6P ve9uzIGAezGZ4K5sQzRUcCfUJ2Ax7WXmCFTfs2rGtyk33F01/ng63KSZVW04tk2+ /13U50eVKcP2pqFF1VN1/ySSsPosnNQe6sUq/moDQ8P0H0Y9cNeQ/b5YigJ5RzsB iufp5HzlGdJj/VLykARlRkw4hCxKBGA8kYCOam1cn+zu0iF2d6uNiJNBiuigPDiS BlEjNwuDbdFFyaMPino/ajKZ6PSe/iVZmZou4PNFDFaBEoo8rK4ld2TMVlFBedHE I0kPs4omz7MFZ8olhDBBD4NGjp1qcEzyzlcuz7pCnioShQ/yX/J28IQTYPSz0GKS N8jRs8WyPnpfv0M6UCmF =EAfk -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20171005' into staging HMP pull 2017-10-05 # gpg: Signature made Thu 05 Oct 2017 11:50:13 BST # gpg: using RSA key 0x0516331EBC5BFDE7 # gpg: Good signature from "Dr. David Alan Gilbert (RH2) <dgilbert@redhat.com>" # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 45F5 C71B 4A0C B7FB 977A 9FA9 0516 331E BC5B FDE7 * remotes/dgilbert/tags/pull-hmp-20171005: hmp-commands-info: Change "@findex FOO" to "@findex info FOO" hmp-commands-info: Move Texinfo stanzas to conventional place hmp-commands-info: Fix "info rocker-FOO" misspellings hmp: Fix unknown command for subtable hmp: Missing handle_errors Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
67caeeacd3
@ -23,7 +23,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info version
|
||||
@findex version
|
||||
@findex info version
|
||||
Show the version of QEMU.
|
||||
ETEXI
|
||||
|
||||
@ -37,7 +37,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info network
|
||||
@findex network
|
||||
@findex info network
|
||||
Show the network state.
|
||||
ETEXI
|
||||
|
||||
@ -51,7 +51,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info chardev
|
||||
@findex chardev
|
||||
@findex info chardev
|
||||
Show the character devices.
|
||||
ETEXI
|
||||
|
||||
@ -66,7 +66,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info block
|
||||
@findex block
|
||||
@findex info block
|
||||
Show info of one block device or all block devices.
|
||||
ETEXI
|
||||
|
||||
@ -80,7 +80,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info blockstats
|
||||
@findex blockstats
|
||||
@findex info blockstats
|
||||
Show block device statistics.
|
||||
ETEXI
|
||||
|
||||
@ -94,7 +94,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info block-jobs
|
||||
@findex block-jobs
|
||||
@findex info block-jobs
|
||||
Show progress of ongoing block device operations.
|
||||
ETEXI
|
||||
|
||||
@ -108,7 +108,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info registers
|
||||
@findex registers
|
||||
@findex info registers
|
||||
Show the cpu registers.
|
||||
ETEXI
|
||||
|
||||
@ -125,7 +125,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info lapic
|
||||
@findex lapic
|
||||
@findex info lapic
|
||||
Show local APIC state
|
||||
ETEXI
|
||||
|
||||
@ -141,7 +141,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info ioapic
|
||||
@findex ioapic
|
||||
@findex info ioapic
|
||||
Show io APIC state
|
||||
ETEXI
|
||||
|
||||
@ -155,7 +155,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info cpus
|
||||
@findex cpus
|
||||
@findex info cpus
|
||||
Show infos for each CPU.
|
||||
ETEXI
|
||||
|
||||
@ -169,7 +169,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info history
|
||||
@findex history
|
||||
@findex info history
|
||||
Show the command line history.
|
||||
ETEXI
|
||||
|
||||
@ -183,7 +183,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info irq
|
||||
@findex irq
|
||||
@findex info irq
|
||||
Show the interrupts statistics (if available).
|
||||
ETEXI
|
||||
|
||||
@ -197,7 +197,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info pic
|
||||
@findex pic
|
||||
@findex info pic
|
||||
Show i8259 (PIC) state.
|
||||
ETEXI
|
||||
|
||||
@ -211,7 +211,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info pci
|
||||
@findex pci
|
||||
@findex info pci
|
||||
Show PCI information.
|
||||
ETEXI
|
||||
|
||||
@ -228,7 +228,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info tlb
|
||||
@findex tlb
|
||||
@findex info tlb
|
||||
Show virtual to physical memory mappings.
|
||||
ETEXI
|
||||
|
||||
@ -244,7 +244,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info mem
|
||||
@findex mem
|
||||
@findex info mem
|
||||
Show the active virtual memory mappings.
|
||||
ETEXI
|
||||
|
||||
@ -259,7 +259,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info mtree
|
||||
@findex mtree
|
||||
@findex info mtree
|
||||
Show memory tree.
|
||||
ETEXI
|
||||
|
||||
@ -275,7 +275,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info jit
|
||||
@findex jit
|
||||
@findex info jit
|
||||
Show dynamic compiler info.
|
||||
ETEXI
|
||||
|
||||
@ -291,7 +291,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info opcount
|
||||
@findex opcount
|
||||
@findex info opcount
|
||||
Show dynamic compiler opcode counters
|
||||
ETEXI
|
||||
|
||||
@ -305,7 +305,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info kvm
|
||||
@findex kvm
|
||||
@findex info kvm
|
||||
Show KVM information.
|
||||
ETEXI
|
||||
|
||||
@ -319,7 +319,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info numa
|
||||
@findex numa
|
||||
@findex info numa
|
||||
Show NUMA information.
|
||||
ETEXI
|
||||
|
||||
@ -333,7 +333,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info usb
|
||||
@findex usb
|
||||
@findex info usb
|
||||
Show guest USB devices.
|
||||
ETEXI
|
||||
|
||||
@ -347,7 +347,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info usbhost
|
||||
@findex usbhost
|
||||
@findex info usbhost
|
||||
Show host USB devices.
|
||||
ETEXI
|
||||
|
||||
@ -361,7 +361,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info profile
|
||||
@findex profile
|
||||
@findex info profile
|
||||
Show profiling information.
|
||||
ETEXI
|
||||
|
||||
@ -375,7 +375,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info capture
|
||||
@findex capture
|
||||
@findex info capture
|
||||
Show capture information.
|
||||
ETEXI
|
||||
|
||||
@ -389,7 +389,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info snapshots
|
||||
@findex snapshots
|
||||
@findex info snapshots
|
||||
Show the currently saved VM snapshots.
|
||||
ETEXI
|
||||
|
||||
@ -403,7 +403,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info status
|
||||
@findex status
|
||||
@findex info status
|
||||
Show the current VM status (running|paused).
|
||||
ETEXI
|
||||
|
||||
@ -417,7 +417,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info mice
|
||||
@findex mice
|
||||
@findex info mice
|
||||
Show which guest mouse is receiving events.
|
||||
ETEXI
|
||||
|
||||
@ -431,7 +431,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info vnc
|
||||
@findex vnc
|
||||
@findex info vnc
|
||||
Show the vnc server status.
|
||||
ETEXI
|
||||
|
||||
@ -447,7 +447,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info spice
|
||||
@findex spice
|
||||
@findex info spice
|
||||
Show the spice server status.
|
||||
ETEXI
|
||||
|
||||
@ -461,7 +461,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info name
|
||||
@findex name
|
||||
@findex info name
|
||||
Show the current VM name.
|
||||
ETEXI
|
||||
|
||||
@ -475,7 +475,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info uuid
|
||||
@findex uuid
|
||||
@findex info uuid
|
||||
Show the current VM UUID.
|
||||
ETEXI
|
||||
|
||||
@ -489,7 +489,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info cpustats
|
||||
@findex cpustats
|
||||
@findex info cpustats
|
||||
Show CPU statistics.
|
||||
ETEXI
|
||||
|
||||
@ -505,7 +505,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info usernet
|
||||
@findex usernet
|
||||
@findex info usernet
|
||||
Show user network stack connection states.
|
||||
ETEXI
|
||||
|
||||
@ -519,7 +519,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info migrate
|
||||
@findex migrate
|
||||
@findex info migrate
|
||||
Show migration status.
|
||||
ETEXI
|
||||
|
||||
@ -533,7 +533,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info migrate_capabilities
|
||||
@findex migrate_capabilities
|
||||
@findex info migrate_capabilities
|
||||
Show current migration capabilities.
|
||||
ETEXI
|
||||
|
||||
@ -547,7 +547,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info migrate_parameters
|
||||
@findex migrate_parameters
|
||||
@findex info migrate_parameters
|
||||
Show current migration parameters.
|
||||
ETEXI
|
||||
|
||||
@ -561,7 +561,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info migrate_cache_size
|
||||
@findex migrate_cache_size
|
||||
@findex info migrate_cache_size
|
||||
Show current migration xbzrle cache size.
|
||||
ETEXI
|
||||
|
||||
@ -575,7 +575,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info balloon
|
||||
@findex balloon
|
||||
@findex info balloon
|
||||
Show balloon information.
|
||||
ETEXI
|
||||
|
||||
@ -589,7 +589,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info qtree
|
||||
@findex qtree
|
||||
@findex info qtree
|
||||
Show device tree.
|
||||
ETEXI
|
||||
|
||||
@ -603,7 +603,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info qdm
|
||||
@findex qdm
|
||||
@findex info qdm
|
||||
Show qdev device model list.
|
||||
ETEXI
|
||||
|
||||
@ -617,7 +617,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info qom-tree
|
||||
@findex qom-tree
|
||||
@findex info qom-tree
|
||||
Show QOM composition tree.
|
||||
ETEXI
|
||||
|
||||
@ -631,7 +631,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info roms
|
||||
@findex roms
|
||||
@findex info roms
|
||||
Show roms.
|
||||
ETEXI
|
||||
|
||||
@ -647,7 +647,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info trace-events
|
||||
@findex trace-events
|
||||
@findex info trace-events
|
||||
Show available trace-events & their state.
|
||||
ETEXI
|
||||
|
||||
@ -661,7 +661,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info tpm
|
||||
@findex tpm
|
||||
@findex info tpm
|
||||
Show the TPM device.
|
||||
ETEXI
|
||||
|
||||
@ -675,7 +675,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info memdev
|
||||
@findex memdev
|
||||
@findex info memdev
|
||||
Show memory backends
|
||||
ETEXI
|
||||
|
||||
@ -689,7 +689,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info memory-devices
|
||||
@findex memory-devices
|
||||
@findex info memory-devices
|
||||
Show memory devices.
|
||||
ETEXI
|
||||
|
||||
@ -703,7 +703,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info iothreads
|
||||
@findex iothreads
|
||||
@findex info iothreads
|
||||
Show iothread's identifiers.
|
||||
ETEXI
|
||||
|
||||
@ -717,7 +717,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info rocker @var{name}
|
||||
@findex rocker
|
||||
@findex info rocker
|
||||
Show rocker switch.
|
||||
ETEXI
|
||||
|
||||
@ -730,8 +730,8 @@ ETEXI
|
||||
},
|
||||
|
||||
STEXI
|
||||
@item info rocker_ports @var{name}-ports
|
||||
@findex ocker-ports
|
||||
@item info rocker-ports @var{name}-ports
|
||||
@findex info rocker-ports
|
||||
Show rocker ports.
|
||||
ETEXI
|
||||
|
||||
@ -744,8 +744,8 @@ ETEXI
|
||||
},
|
||||
|
||||
STEXI
|
||||
@item info rocker_of_dpa_flows @var{name} [@var{tbl_id}]
|
||||
@findex rocker-of-dpa-flows
|
||||
@item info rocker-of-dpa-flows @var{name} [@var{tbl_id}]
|
||||
@findex info rocker-of-dpa-flows
|
||||
Show rocker OF-DPA flow tables.
|
||||
ETEXI
|
||||
|
||||
@ -759,7 +759,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info rocker-of-dpa-groups @var{name} [@var{type}]
|
||||
@findex rocker-of-dpa-groups
|
||||
@findex info rocker-of-dpa-groups
|
||||
Show rocker OF-DPA groups.
|
||||
ETEXI
|
||||
|
||||
@ -775,7 +775,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info skeys @var{address}
|
||||
@findex skeys
|
||||
@findex info skeys
|
||||
Display the value of a storage key (s390 only)
|
||||
ETEXI
|
||||
|
||||
@ -791,7 +791,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info cmma @var{address}
|
||||
@findex cmma
|
||||
@findex info cmma
|
||||
Display the values of the CMMA storage attributes for a range of pages (s390 only)
|
||||
ETEXI
|
||||
|
||||
@ -805,7 +805,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info dump
|
||||
@findex dump
|
||||
@findex info dump
|
||||
Display the latest dump status.
|
||||
ETEXI
|
||||
|
||||
@ -819,7 +819,7 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info ramblock
|
||||
@findex ramblock
|
||||
@findex info ramblock
|
||||
Dump all the ramblocks of the system.
|
||||
ETEXI
|
||||
|
||||
@ -833,14 +833,8 @@ ETEXI
|
||||
|
||||
STEXI
|
||||
@item info hotpluggable-cpus
|
||||
@findex hotpluggable-cpus
|
||||
@findex info hotpluggable-cpus
|
||||
Show information about hotpluggable CPUs
|
||||
ETEXI
|
||||
|
||||
STEXI
|
||||
@item info vm-generation-id
|
||||
@findex vm-generation-id
|
||||
Show Virtual Machine Generation ID
|
||||
ETEXI
|
||||
|
||||
{
|
||||
@ -852,10 +846,9 @@ ETEXI
|
||||
},
|
||||
|
||||
STEXI
|
||||
@item info memory_size_summary
|
||||
@findex memory_size_summary
|
||||
Display the amount of initially allocated and present hotpluggable (if
|
||||
enabled) memory in bytes.
|
||||
@item info vm-generation-id
|
||||
@findex info vm-generation-id
|
||||
Show Virtual Machine Generation ID
|
||||
ETEXI
|
||||
|
||||
{
|
||||
@ -867,6 +860,13 @@ ETEXI
|
||||
.cmd = hmp_info_memory_size_summary,
|
||||
},
|
||||
|
||||
STEXI
|
||||
@item info memory_size_summary
|
||||
@findex info memory_size_summary
|
||||
Display the amount of initially allocated and present hotpluggable (if
|
||||
enabled) memory in bytes.
|
||||
ETEXI
|
||||
|
||||
STEXI
|
||||
@end table
|
||||
ETEXI
|
||||
|
2
hmp.c
2
hmp.c
@ -2394,6 +2394,7 @@ void hmp_info_memdev(Monitor *mon, const QDict *qdict)
|
||||
monitor_printf(mon, "\n");
|
||||
|
||||
qapi_free_MemdevList(memdev_list);
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
||||
void hmp_info_memory_devices(Monitor *mon, const QDict *qdict)
|
||||
@ -2432,6 +2433,7 @@ void hmp_info_memory_devices(Monitor *mon, const QDict *qdict)
|
||||
}
|
||||
|
||||
qapi_free_MemoryDeviceInfoList(info_list);
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
||||
void hmp_info_iothreads(Monitor *mon, const QDict *qdict)
|
||||
|
@ -2697,6 +2697,7 @@ static const mon_cmd_t *search_dispatch_table(const mon_cmd_t *disp_table,
|
||||
* the command is found in a sub-command table.
|
||||
*/
|
||||
static const mon_cmd_t *monitor_parse_command(Monitor *mon,
|
||||
const char *cmdp_start,
|
||||
const char **cmdp,
|
||||
mon_cmd_t *table)
|
||||
{
|
||||
@ -2712,7 +2713,7 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon,
|
||||
cmd = search_dispatch_table(table, cmdname);
|
||||
if (!cmd) {
|
||||
monitor_printf(mon, "unknown command: '%.*s'\n",
|
||||
(int)(p - *cmdp), *cmdp);
|
||||
(int)(p - cmdp_start), cmdp_start);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -2724,7 +2725,7 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon,
|
||||
*cmdp = p;
|
||||
/* search sub command */
|
||||
if (cmd->sub_table != NULL && *p != '\0') {
|
||||
return monitor_parse_command(mon, cmdp, cmd->sub_table);
|
||||
return monitor_parse_command(mon, cmdp_start, cmdp, cmd->sub_table);
|
||||
}
|
||||
|
||||
return cmd;
|
||||
@ -3108,7 +3109,7 @@ static void handle_hmp_command(Monitor *mon, const char *cmdline)
|
||||
|
||||
trace_handle_hmp_command(mon, cmdline);
|
||||
|
||||
cmd = monitor_parse_command(mon, &cmdline, mon->cmd_table);
|
||||
cmd = monitor_parse_command(mon, cmdline, &cmdline, mon->cmd_table);
|
||||
if (!cmd) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user