]> git.ipfire.org Git - thirdparty/qemu.git/blame - hmp-commands-info.hx
hmp: introduce 'info memory_size_summary' command
[thirdparty/qemu.git] / hmp-commands-info.hx
CommitLineData
da76ee76
PB
1HXCOMM Use DEFHEADING() to define headings in both help text and texi
2HXCOMM Text between STEXI and ETEXI are copied to texi version and
3HXCOMM discarded from C version
4HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
5HXCOMM monitor info commands
6HXCOMM HXCOMM can be used for comments, discarded from both texi and C
7
8STEXI
9@table @option
2cd8af2d
PB
10@item info @var{subcommand}
11@findex info
12Show various information about the system state.
13@table @option
da76ee76
PB
14ETEXI
15
16 {
17 .name = "version",
18 .args_type = "",
19 .params = "",
20 .help = "show the version of QEMU",
2b9e3576 21 .cmd = hmp_info_version,
da76ee76
PB
22 },
23
24STEXI
25@item info version
26@findex version
27Show the version of QEMU.
28ETEXI
29
30 {
31 .name = "network",
32 .args_type = "",
33 .params = "",
34 .help = "show the network state",
2b9e3576 35 .cmd = hmp_info_network,
da76ee76
PB
36 },
37
38STEXI
39@item info network
40@findex network
41Show the network state.
42ETEXI
43
44 {
45 .name = "chardev",
46 .args_type = "",
47 .params = "",
48 .help = "show the character devices",
2b9e3576 49 .cmd = hmp_info_chardev,
da76ee76
PB
50 },
51
52STEXI
53@item info chardev
54@findex chardev
55Show the character devices.
56ETEXI
57
58 {
59 .name = "block",
60 .args_type = "nodes:-n,verbose:-v,device:B?",
61 .params = "[-n] [-v] [device]",
62 .help = "show info of one block device or all block devices "
63 "(-n: show named nodes; -v: show details)",
2b9e3576 64 .cmd = hmp_info_block,
da76ee76
PB
65 },
66
67STEXI
68@item info block
69@findex block
70Show info of one block device or all block devices.
71ETEXI
72
73 {
74 .name = "blockstats",
75 .args_type = "",
76 .params = "",
77 .help = "show block device statistics",
2b9e3576 78 .cmd = hmp_info_blockstats,
da76ee76
PB
79 },
80
81STEXI
82@item info blockstats
83@findex blockstats
84Show block device statistics.
85ETEXI
86
87 {
88 .name = "block-jobs",
89 .args_type = "",
90 .params = "",
91 .help = "show progress of ongoing block device operations",
2b9e3576 92 .cmd = hmp_info_block_jobs,
da76ee76
PB
93 },
94
95STEXI
96@item info block-jobs
97@findex block-jobs
98Show progress of ongoing block device operations.
99ETEXI
100
101 {
102 .name = "registers",
18f08282
SJS
103 .args_type = "cpustate_all:-a",
104 .params = "[-a]",
105 .help = "show the cpu registers (-a: all - show register info for all cpus)",
2b9e3576 106 .cmd = hmp_info_registers,
da76ee76
PB
107 },
108
109STEXI
110@item info registers
111@findex registers
112Show the cpu registers.
1f871d49
PB
113ETEXI
114
115#if defined(TARGET_I386)
116 {
117 .name = "lapic",
1bef2284
YW
118 .args_type = "apic-id:i?",
119 .params = "[apic-id]",
120 .help = "show local apic state (apic-id: local apic to read, default is which of current CPU)",
121
2b9e3576 122 .cmd = hmp_info_local_apic,
1f871d49
PB
123 },
124#endif
125
126STEXI
127@item info lapic
128@findex lapic
129Show local APIC state
d665d696
PB
130ETEXI
131
132#if defined(TARGET_I386)
133 {
134 .name = "ioapic",
135 .args_type = "",
136 .params = "",
137 .help = "show io apic state",
2b9e3576 138 .cmd = hmp_info_io_apic,
d665d696
PB
139 },
140#endif
141
142STEXI
143@item info ioapic
144@findex ioapic
145Show io APIC state
da76ee76
PB
146ETEXI
147
148 {
149 .name = "cpus",
150 .args_type = "",
151 .params = "",
152 .help = "show infos for each CPU",
2b9e3576 153 .cmd = hmp_info_cpus,
da76ee76
PB
154 },
155
156STEXI
157@item info cpus
158@findex cpus
159Show infos for each CPU.
160ETEXI
161
162 {
163 .name = "history",
164 .args_type = "",
165 .params = "",
166 .help = "show the command line history",
2b9e3576 167 .cmd = hmp_info_history,
da76ee76
PB
168 },
169
170STEXI
171@item info history
172@findex history
173Show the command line history.
174ETEXI
175
da76ee76
PB
176 {
177 .name = "irq",
178 .args_type = "",
179 .params = "",
180 .help = "show the interrupts statistics (if available)",
2b9e3576 181 .cmd = hmp_info_irq,
da76ee76
PB
182 },
183
184STEXI
185@item info irq
186@findex irq
187Show the interrupts statistics (if available).
188ETEXI
189
190 {
191 .name = "pic",
192 .args_type = "",
193 .params = "",
254316fa 194 .help = "show PIC state",
2b9e3576 195 .cmd = hmp_info_pic,
da76ee76 196 },
da76ee76
PB
197
198STEXI
199@item info pic
200@findex pic
201Show i8259 (PIC) state.
abadcbc8
PB
202ETEXI
203
204 {
205 .name = "pci",
206 .args_type = "",
207 .params = "",
208 .help = "show PCI info",
2b9e3576 209 .cmd = hmp_info_pci,
abadcbc8
PB
210 },
211
212STEXI
213@item info pci
214@findex pci
215Show PCI information.
da76ee76
PB
216ETEXI
217
218#if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \
219 defined(TARGET_PPC) || defined(TARGET_XTENSA)
220 {
221 .name = "tlb",
222 .args_type = "",
223 .params = "",
224 .help = "show virtual to physical memory mappings",
2b9e3576 225 .cmd = hmp_info_tlb,
da76ee76
PB
226 },
227#endif
228
229STEXI
230@item info tlb
231@findex tlb
232Show virtual to physical memory mappings.
233ETEXI
234
235#if defined(TARGET_I386)
236 {
237 .name = "mem",
238 .args_type = "",
239 .params = "",
240 .help = "show the active virtual memory mappings",
2b9e3576 241 .cmd = hmp_info_mem,
da76ee76
PB
242 },
243#endif
244
245STEXI
246@item info mem
247@findex mem
248Show the active virtual memory mappings.
249ETEXI
250
251 {
252 .name = "mtree",
57bb40c9
PX
253 .args_type = "flatview:-f",
254 .params = "[-f]",
255 .help = "show memory tree (-f: dump flat view for address spaces)",
2b9e3576 256 .cmd = hmp_info_mtree,
da76ee76
PB
257 },
258
259STEXI
260@item info mtree
261@findex mtree
262Show memory tree.
263ETEXI
264
f0d14a95 265#if defined(CONFIG_TCG)
da76ee76
PB
266 {
267 .name = "jit",
268 .args_type = "",
269 .params = "",
270 .help = "show dynamic compiler info",
2b9e3576 271 .cmd = hmp_info_jit,
da76ee76 272 },
f0d14a95 273#endif
da76ee76
PB
274
275STEXI
276@item info jit
277@findex jit
278Show dynamic compiler info.
279ETEXI
280
f0d14a95 281#if defined(CONFIG_TCG)
da76ee76
PB
282 {
283 .name = "opcount",
284 .args_type = "",
285 .params = "",
286 .help = "show dynamic compiler opcode counters",
2b9e3576 287 .cmd = hmp_info_opcount,
da76ee76 288 },
f0d14a95 289#endif
da76ee76
PB
290
291STEXI
292@item info opcount
293@findex opcount
294Show dynamic compiler opcode counters
295ETEXI
296
297 {
298 .name = "kvm",
299 .args_type = "",
300 .params = "",
301 .help = "show KVM information",
2b9e3576 302 .cmd = hmp_info_kvm,
da76ee76
PB
303 },
304
305STEXI
306@item info kvm
307@findex kvm
308Show KVM information.
309ETEXI
310
311 {
312 .name = "numa",
313 .args_type = "",
314 .params = "",
315 .help = "show NUMA information",
2b9e3576 316 .cmd = hmp_info_numa,
da76ee76
PB
317 },
318
319STEXI
320@item info numa
321@findex numa
322Show NUMA information.
323ETEXI
324
325 {
326 .name = "usb",
327 .args_type = "",
328 .params = "",
329 .help = "show guest USB devices",
2b9e3576 330 .cmd = hmp_info_usb,
da76ee76
PB
331 },
332
333STEXI
334@item info usb
335@findex usb
336Show guest USB devices.
337ETEXI
338
339 {
340 .name = "usbhost",
341 .args_type = "",
342 .params = "",
343 .help = "show host USB devices",
2b9e3576 344 .cmd = hmp_info_usbhost,
da76ee76
PB
345 },
346
347STEXI
348@item info usbhost
349@findex usbhost
350Show host USB devices.
351ETEXI
352
353 {
354 .name = "profile",
355 .args_type = "",
356 .params = "",
357 .help = "show profiling information",
2b9e3576 358 .cmd = hmp_info_profile,
da76ee76
PB
359 },
360
361STEXI
362@item info profile
363@findex profile
364Show profiling information.
365ETEXI
366
367 {
368 .name = "capture",
369 .args_type = "",
370 .params = "",
371 .help = "show capture information",
2b9e3576 372 .cmd = hmp_info_capture,
da76ee76
PB
373 },
374
375STEXI
376@item info capture
377@findex capture
378Show capture information.
379ETEXI
380
381 {
382 .name = "snapshots",
383 .args_type = "",
384 .params = "",
385 .help = "show the currently saved VM snapshots",
2b9e3576 386 .cmd = hmp_info_snapshots,
da76ee76
PB
387 },
388
389STEXI
390@item info snapshots
391@findex snapshots
392Show the currently saved VM snapshots.
393ETEXI
394
395 {
396 .name = "status",
397 .args_type = "",
398 .params = "",
399 .help = "show the current VM status (running|paused)",
2b9e3576 400 .cmd = hmp_info_status,
da76ee76
PB
401 },
402
403STEXI
404@item info status
405@findex status
406Show the current VM status (running|paused).
407ETEXI
408
409 {
410 .name = "mice",
411 .args_type = "",
412 .params = "",
413 .help = "show which guest mouse is receiving events",
2b9e3576 414 .cmd = hmp_info_mice,
da76ee76
PB
415 },
416
417STEXI
418@item info mice
419@findex mice
420Show which guest mouse is receiving events.
421ETEXI
422
423 {
424 .name = "vnc",
425 .args_type = "",
426 .params = "",
427 .help = "show the vnc server status",
2b9e3576 428 .cmd = hmp_info_vnc,
da76ee76
PB
429 },
430
431STEXI
432@item info vnc
433@findex vnc
434Show the vnc server status.
435ETEXI
436
437#if defined(CONFIG_SPICE)
438 {
439 .name = "spice",
440 .args_type = "",
441 .params = "",
442 .help = "show the spice server status",
2b9e3576 443 .cmd = hmp_info_spice,
da76ee76
PB
444 },
445#endif
446
447STEXI
448@item info spice
449@findex spice
450Show the spice server status.
451ETEXI
452
453 {
454 .name = "name",
455 .args_type = "",
456 .params = "",
457 .help = "show the current VM name",
2b9e3576 458 .cmd = hmp_info_name,
da76ee76
PB
459 },
460
461STEXI
462@item info name
463@findex name
464Show the current VM name.
465ETEXI
466
467 {
468 .name = "uuid",
469 .args_type = "",
470 .params = "",
471 .help = "show the current VM UUID",
2b9e3576 472 .cmd = hmp_info_uuid,
da76ee76
PB
473 },
474
475STEXI
476@item info uuid
477@findex uuid
478Show the current VM UUID.
479ETEXI
480
481 {
482 .name = "cpustats",
483 .args_type = "",
484 .params = "",
485 .help = "show CPU statistics",
2b9e3576 486 .cmd = hmp_info_cpustats,
da76ee76
PB
487 },
488
489STEXI
490@item info cpustats
491@findex cpustats
492Show CPU statistics.
493ETEXI
494
495#if defined(CONFIG_SLIRP)
496 {
497 .name = "usernet",
498 .args_type = "",
499 .params = "",
500 .help = "show user network stack connection states",
2b9e3576 501 .cmd = hmp_info_usernet,
da76ee76
PB
502 },
503#endif
504
505STEXI
506@item info usernet
507@findex usernet
508Show user network stack connection states.
509ETEXI
510
511 {
512 .name = "migrate",
513 .args_type = "",
514 .params = "",
515 .help = "show migration status",
2b9e3576 516 .cmd = hmp_info_migrate,
da76ee76
PB
517 },
518
519STEXI
520@item info migrate
521@findex migrate
522Show migration status.
523ETEXI
524
525 {
526 .name = "migrate_capabilities",
527 .args_type = "",
528 .params = "",
529 .help = "show current migration capabilities",
2b9e3576 530 .cmd = hmp_info_migrate_capabilities,
da76ee76
PB
531 },
532
533STEXI
534@item info migrate_capabilities
535@findex migrate_capabilities
536Show current migration capabilities.
537ETEXI
538
539 {
540 .name = "migrate_parameters",
541 .args_type = "",
542 .params = "",
543 .help = "show current migration parameters",
2b9e3576 544 .cmd = hmp_info_migrate_parameters,
da76ee76
PB
545 },
546
547STEXI
548@item info migrate_parameters
549@findex migrate_parameters
550Show current migration parameters.
551ETEXI
552
553 {
554 .name = "migrate_cache_size",
555 .args_type = "",
556 .params = "",
557 .help = "show current migration xbzrle cache size",
2b9e3576 558 .cmd = hmp_info_migrate_cache_size,
da76ee76
PB
559 },
560
561STEXI
562@item info migrate_cache_size
563@findex migrate_cache_size
564Show current migration xbzrle cache size.
565ETEXI
566
567 {
568 .name = "balloon",
569 .args_type = "",
570 .params = "",
571 .help = "show balloon information",
2b9e3576 572 .cmd = hmp_info_balloon,
da76ee76
PB
573 },
574
575STEXI
576@item info balloon
577@findex balloon
578Show balloon information.
579ETEXI
580
581 {
582 .name = "qtree",
583 .args_type = "",
584 .params = "",
585 .help = "show device tree",
2b9e3576 586 .cmd = hmp_info_qtree,
da76ee76
PB
587 },
588
589STEXI
590@item info qtree
591@findex qtree
592Show device tree.
593ETEXI
594
595 {
596 .name = "qdm",
597 .args_type = "",
598 .params = "",
599 .help = "show qdev device model list",
2b9e3576 600 .cmd = hmp_info_qdm,
da76ee76
PB
601 },
602
603STEXI
604@item info qdm
605@findex qdm
606Show qdev device model list.
607ETEXI
608
609 {
610 .name = "qom-tree",
611 .args_type = "path:s?",
612 .params = "[path]",
613 .help = "show QOM composition tree",
2b9e3576 614 .cmd = hmp_info_qom_tree,
da76ee76
PB
615 },
616
617STEXI
618@item info qom-tree
619@findex qom-tree
620Show QOM composition tree.
621ETEXI
622
623 {
624 .name = "roms",
625 .args_type = "",
626 .params = "",
627 .help = "show roms",
2b9e3576 628 .cmd = hmp_info_roms,
da76ee76
PB
629 },
630
631STEXI
632@item info roms
633@findex roms
634Show roms.
635ETEXI
636
637 {
638 .name = "trace-events",
77e2b172
LV
639 .args_type = "name:s?,vcpu:i?",
640 .params = "[name] [vcpu]",
bd71211d 641 .help = "show available trace-events & their state "
77e2b172 642 "(name: event name pattern; vcpu: vCPU to query, default is any)",
2b9e3576 643 .cmd = hmp_info_trace_events,
bd71211d 644 .command_completion = info_trace_events_completion,
da76ee76
PB
645 },
646
647STEXI
648@item info trace-events
649@findex trace-events
650Show available trace-events & their state.
651ETEXI
652
653 {
654 .name = "tpm",
655 .args_type = "",
656 .params = "",
657 .help = "show the TPM device",
2b9e3576 658 .cmd = hmp_info_tpm,
da76ee76
PB
659 },
660
661STEXI
662@item info tpm
663@findex tpm
664Show the TPM device.
665ETEXI
666
667 {
668 .name = "memdev",
669 .args_type = "",
670 .params = "",
671 .help = "show memory backends",
2b9e3576 672 .cmd = hmp_info_memdev,
da76ee76
PB
673 },
674
675STEXI
676@item info memdev
677@findex memdev
678Show memory backends
679ETEXI
680
681 {
682 .name = "memory-devices",
683 .args_type = "",
684 .params = "",
685 .help = "show memory devices",
2b9e3576 686 .cmd = hmp_info_memory_devices,
da76ee76
PB
687 },
688
689STEXI
690@item info memory-devices
691@findex memory-devices
692Show memory devices.
693ETEXI
694
695 {
696 .name = "iothreads",
697 .args_type = "",
698 .params = "",
699 .help = "show iothreads",
2b9e3576 700 .cmd = hmp_info_iothreads,
da76ee76
PB
701 },
702
703STEXI
704@item info iothreads
705@findex iothreads
706Show iothread's identifiers.
707ETEXI
708
709 {
710 .name = "rocker",
711 .args_type = "name:s",
712 .params = "name",
713 .help = "Show rocker switch",
2b9e3576 714 .cmd = hmp_rocker,
da76ee76
PB
715 },
716
717STEXI
718@item info rocker @var{name}
719@findex rocker
720Show rocker switch.
721ETEXI
722
723 {
724 .name = "rocker-ports",
725 .args_type = "name:s",
726 .params = "name",
727 .help = "Show rocker ports",
2b9e3576 728 .cmd = hmp_rocker_ports,
da76ee76
PB
729 },
730
731STEXI
732@item info rocker_ports @var{name}-ports
733@findex ocker-ports
734Show rocker ports.
735ETEXI
736
737 {
738 .name = "rocker-of-dpa-flows",
739 .args_type = "name:s,tbl_id:i?",
740 .params = "name [tbl_id]",
741 .help = "Show rocker OF-DPA flow tables",
2b9e3576 742 .cmd = hmp_rocker_of_dpa_flows,
da76ee76
PB
743 },
744
745STEXI
746@item info rocker_of_dpa_flows @var{name} [@var{tbl_id}]
747@findex rocker-of-dpa-flows
748Show rocker OF-DPA flow tables.
749ETEXI
750
751 {
752 .name = "rocker-of-dpa-groups",
753 .args_type = "name:s,type:i?",
754 .params = "name [type]",
755 .help = "Show rocker OF-DPA groups",
2b9e3576 756 .cmd = hmp_rocker_of_dpa_groups,
da76ee76
PB
757 },
758
759STEXI
760@item info rocker-of-dpa-groups @var{name} [@var{type}]
761@findex rocker-of-dpa-groups
762Show rocker OF-DPA groups.
763ETEXI
764
765#if defined(TARGET_S390X)
766 {
767 .name = "skeys",
768 .args_type = "addr:l",
769 .params = "address",
770 .help = "Display the value of a storage key",
2b9e3576 771 .cmd = hmp_info_skeys,
da76ee76
PB
772 },
773#endif
774
775STEXI
776@item info skeys @var{address}
777@findex skeys
778Display the value of a storage key (s390 only)
f860d497
CI
779ETEXI
780
781#if defined(TARGET_S390X)
782 {
783 .name = "cmma",
784 .args_type = "addr:l,count:l?",
785 .params = "address [count]",
786 .help = "Display the values of the CMMA storage attributes for a range of pages",
787 .cmd = hmp_info_cmma,
788 },
789#endif
790
791STEXI
792@item info cmma @var{address}
793@findex cmma
794Display the values of the CMMA storage attributes for a range of pages (s390 only)
4a6b52d6
PX
795ETEXI
796
797 {
798 .name = "dump",
799 .args_type = "",
800 .params = "",
801 .help = "Display the latest dump status",
2b9e3576 802 .cmd = hmp_info_dump,
4a6b52d6
PX
803 },
804
805STEXI
806@item info dump
807@findex dump
808Display the latest dump status.
be9b23c4
PX
809ETEXI
810
811 {
812 .name = "ramblock",
813 .args_type = "",
814 .params = "",
815 .help = "Display system ramblock information",
816 .cmd = hmp_info_ramblock,
817 },
818
819STEXI
820@item info ramblock
821@findex ramblock
822Dump all the ramblocks of the system.
d2d8d46f
BR
823ETEXI
824
825 {
826 .name = "hotpluggable-cpus",
827 .args_type = "",
828 .params = "",
829 .help = "Show information about hotpluggable CPUs",
2b9e3576 830 .cmd = hmp_hotpluggable_cpus,
d2d8d46f
BR
831 },
832
833STEXI
834@item info hotpluggable-cpus
835@findex hotpluggable-cpus
836Show information about hotpluggable CPUs
da76ee76
PB
837ETEXI
838
39164c13
IM
839STEXI
840@item info vm-generation-id
841@findex vm-generation-id
842Show Virtual Machine Generation ID
843ETEXI
844
845 {
846 .name = "vm-generation-id",
847 .args_type = "",
848 .params = "",
849 .help = "Show Virtual Machine Generation ID",
850 .cmd = hmp_info_vm_generation_id,
851 },
852
d0f63c1e
VG
853STEXI
854@item info memory_size_summary
855@findex memory_size_summary
856Display the amount of initially allocated and present hotpluggable (if
857enabled) memory in bytes.
858ETEXI
859
860 {
861 .name = "memory_size_summary",
862 .args_type = "",
863 .params = "",
864 .help = "show the amount of initially allocated and "
865 "present hotpluggable (if enabled) memory in bytes.",
866 .cmd = hmp_info_memory_size_summary,
867 },
868
da76ee76
PB
869STEXI
870@end table
871ETEXI
2cd8af2d
PB
872
873STEXI
874@end table
875ETEXI