hmp-commands-info.hx 17.0 KB
Newer Older
1 2 3 4 5 6 7 8 9
HXCOMM Use DEFHEADING() to define headings in both help text and texi
HXCOMM Text between STEXI and ETEXI are copied to texi version and
HXCOMM discarded from C version
HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
HXCOMM monitor info commands
HXCOMM HXCOMM can be used for comments, discarded from both texi and C

STEXI
@table @option
10 11 12 13
@item info @var{subcommand}
@findex info
Show various information about the system state.
@table @option
14 15 16 17 18 19 20
ETEXI

    {
        .name       = "version",
        .args_type  = "",
        .params     = "",
        .help       = "show the version of QEMU",
21
        .cmd        = hmp_info_version,
22 23 24 25 26 27 28 29 30 31 32 33 34
    },

STEXI
@item info version
@findex version
Show the version of QEMU.
ETEXI

    {
        .name       = "network",
        .args_type  = "",
        .params     = "",
        .help       = "show the network state",
35
        .cmd        = hmp_info_network,
36 37 38 39 40 41 42 43 44 45 46 47 48
    },

STEXI
@item info network
@findex network
Show the network state.
ETEXI

    {
        .name       = "chardev",
        .args_type  = "",
        .params     = "",
        .help       = "show the character devices",
49
        .cmd        = hmp_info_chardev,
50 51 52 53 54 55 56 57 58 59 60 61 62 63
    },

STEXI
@item info chardev
@findex chardev
Show the character devices.
ETEXI

    {
        .name       = "block",
        .args_type  = "nodes:-n,verbose:-v,device:B?",
        .params     = "[-n] [-v] [device]",
        .help       = "show info of one block device or all block devices "
                      "(-n: show named nodes; -v: show details)",
64
        .cmd        = hmp_info_block,
65 66 67 68 69 70 71 72 73 74 75 76 77
    },

STEXI
@item info block
@findex block
Show info of one block device or all block devices.
ETEXI

    {
        .name       = "blockstats",
        .args_type  = "",
        .params     = "",
        .help       = "show block device statistics",
78
        .cmd        = hmp_info_blockstats,
79 80 81 82 83 84 85 86 87 88 89 90 91
    },

STEXI
@item info blockstats
@findex blockstats
Show block device statistics.
ETEXI

    {
        .name       = "block-jobs",
        .args_type  = "",
        .params     = "",
        .help       = "show progress of ongoing block device operations",
92
        .cmd        = hmp_info_block_jobs,
93 94 95 96 97 98 99 100 101 102
    },

STEXI
@item info block-jobs
@findex block-jobs
Show progress of ongoing block device operations.
ETEXI

    {
        .name       = "registers",
103 104 105
        .args_type  = "cpustate_all:-a",
        .params     = "[-a]",
        .help       = "show the cpu registers (-a: all - show register info for all cpus)",
106
        .cmd        = hmp_info_registers,
107 108 109 110 111 112
    },

STEXI
@item info registers
@findex registers
Show the cpu registers.
113 114 115 116 117 118 119 120
ETEXI

#if defined(TARGET_I386)
    {
        .name       = "lapic",
        .args_type  = "",
        .params     = "",
        .help       = "show local apic state",
121
        .cmd        = hmp_info_local_apic,
122 123 124 125 126 127 128
    },
#endif

STEXI
@item info lapic
@findex lapic
Show local APIC state
P
Pavel Butsykin 已提交
129 130 131 132 133 134 135 136
ETEXI

#if defined(TARGET_I386)
    {
        .name       = "ioapic",
        .args_type  = "",
        .params     = "",
        .help       = "show io apic state",
137
        .cmd        = hmp_info_io_apic,
P
Pavel Butsykin 已提交
138 139 140 141 142 143 144
    },
#endif

STEXI
@item info ioapic
@findex ioapic
Show io APIC state
145 146 147 148 149 150 151
ETEXI

    {
        .name       = "cpus",
        .args_type  = "",
        .params     = "",
        .help       = "show infos for each CPU",
152
        .cmd        = hmp_info_cpus,
153 154 155 156 157 158 159 160 161 162 163 164 165
    },

STEXI
@item info cpus
@findex cpus
Show infos for each CPU.
ETEXI

    {
        .name       = "history",
        .args_type  = "",
        .params     = "",
        .help       = "show the command line history",
166
        .cmd        = hmp_info_history,
167 168 169 170 171 172 173 174 175 176 177 178 179
    },

STEXI
@item info history
@findex history
Show the command line history.
ETEXI

    {
        .name       = "irq",
        .args_type  = "",
        .params     = "",
        .help       = "show the interrupts statistics (if available)",
180
        .cmd        = hmp_info_irq,
181 182 183 184 185 186 187 188 189 190 191 192
    },

STEXI
@item info irq
@findex irq
Show the interrupts statistics (if available).
ETEXI

    {
        .name       = "pic",
        .args_type  = "",
        .params     = "",
193
        .help       = "show PIC state",
194
        .cmd        = hmp_info_pic,
195 196 197 198 199 200
    },

STEXI
@item info pic
@findex pic
Show i8259 (PIC) state.
P
Paolo Bonzini 已提交
201 202 203 204 205 206 207
ETEXI

    {
        .name       = "pci",
        .args_type  = "",
        .params     = "",
        .help       = "show PCI info",
208
        .cmd        = hmp_info_pci,
P
Paolo Bonzini 已提交
209 210 211 212 213 214
    },

STEXI
@item info pci
@findex pci
Show PCI information.
215 216 217 218 219 220 221 222 223
ETEXI

#if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \
    defined(TARGET_PPC) || defined(TARGET_XTENSA)
    {
        .name       = "tlb",
        .args_type  = "",
        .params     = "",
        .help       = "show virtual to physical memory mappings",
224
        .cmd        = hmp_info_tlb,
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
    },
#endif

STEXI
@item info tlb
@findex tlb
Show virtual to physical memory mappings.
ETEXI

#if defined(TARGET_I386)
    {
        .name       = "mem",
        .args_type  = "",
        .params     = "",
        .help       = "show the active virtual memory mappings",
240
        .cmd        = hmp_info_mem,
241 242 243 244 245 246 247 248 249 250 251
    },
#endif

STEXI
@item info mem
@findex mem
Show the active virtual memory mappings.
ETEXI

    {
        .name       = "mtree",
252 253 254
        .args_type  = "flatview:-f",
        .params     = "[-f]",
        .help       = "show memory tree (-f: dump flat view for address spaces)",
255
        .cmd        = hmp_info_mtree,
256 257 258 259 260 261 262 263
    },

STEXI
@item info mtree
@findex mtree
Show memory tree.
ETEXI

264
#if defined(CONFIG_TCG)
265 266 267 268 269
    {
        .name       = "jit",
        .args_type  = "",
        .params     = "",
        .help       = "show dynamic compiler info",
270
        .cmd        = hmp_info_jit,
271
    },
272
#endif
273 274 275 276 277 278 279

STEXI
@item info jit
@findex jit
Show dynamic compiler info.
ETEXI

280
#if defined(CONFIG_TCG)
281 282 283 284 285
    {
        .name       = "opcount",
        .args_type  = "",
        .params     = "",
        .help       = "show dynamic compiler opcode counters",
286
        .cmd        = hmp_info_opcount,
287
    },
288
#endif
289 290 291 292 293 294 295 296 297 298 299 300

STEXI
@item info opcount
@findex opcount
Show dynamic compiler opcode counters
ETEXI

    {
        .name       = "kvm",
        .args_type  = "",
        .params     = "",
        .help       = "show KVM information",
301
        .cmd        = hmp_info_kvm,
302 303 304 305 306 307 308 309 310 311 312 313 314
    },

STEXI
@item info kvm
@findex kvm
Show KVM information.
ETEXI

    {
        .name       = "numa",
        .args_type  = "",
        .params     = "",
        .help       = "show NUMA information",
315
        .cmd        = hmp_info_numa,
316 317 318 319 320 321 322 323 324 325 326 327 328
    },

STEXI
@item info numa
@findex numa
Show NUMA information.
ETEXI

    {
        .name       = "usb",
        .args_type  = "",
        .params     = "",
        .help       = "show guest USB devices",
329
        .cmd        = hmp_info_usb,
330 331 332 333 334 335 336 337 338 339 340 341 342
    },

STEXI
@item info usb
@findex usb
Show guest USB devices.
ETEXI

    {
        .name       = "usbhost",
        .args_type  = "",
        .params     = "",
        .help       = "show host USB devices",
343
        .cmd        = hmp_info_usbhost,
344 345 346 347 348 349 350 351 352 353 354 355 356
    },

STEXI
@item info usbhost
@findex usbhost
Show host USB devices.
ETEXI

    {
        .name       = "profile",
        .args_type  = "",
        .params     = "",
        .help       = "show profiling information",
357
        .cmd        = hmp_info_profile,
358 359 360 361 362 363 364 365 366 367 368 369 370
    },

STEXI
@item info profile
@findex profile
Show profiling information.
ETEXI

    {
        .name       = "capture",
        .args_type  = "",
        .params     = "",
        .help       = "show capture information",
371
        .cmd        = hmp_info_capture,
372 373 374 375 376 377 378 379 380 381 382 383 384
    },

STEXI
@item info capture
@findex capture
Show capture information.
ETEXI

    {
        .name       = "snapshots",
        .args_type  = "",
        .params     = "",
        .help       = "show the currently saved VM snapshots",
385
        .cmd        = hmp_info_snapshots,
386 387 388 389 390 391 392 393 394 395 396 397 398
    },

STEXI
@item info snapshots
@findex snapshots
Show the currently saved VM snapshots.
ETEXI

    {
        .name       = "status",
        .args_type  = "",
        .params     = "",
        .help       = "show the current VM status (running|paused)",
399
        .cmd        = hmp_info_status,
400 401 402 403 404 405 406 407 408 409 410 411 412
    },

STEXI
@item info status
@findex status
Show the current VM status (running|paused).
ETEXI

    {
        .name       = "mice",
        .args_type  = "",
        .params     = "",
        .help       = "show which guest mouse is receiving events",
413
        .cmd        = hmp_info_mice,
414 415 416 417 418 419 420 421 422 423 424 425 426
    },

STEXI
@item info mice
@findex mice
Show which guest mouse is receiving events.
ETEXI

    {
        .name       = "vnc",
        .args_type  = "",
        .params     = "",
        .help       = "show the vnc server status",
427
        .cmd        = hmp_info_vnc,
428 429 430 431 432 433 434 435 436 437 438 439 440 441
    },

STEXI
@item info vnc
@findex vnc
Show the vnc server status.
ETEXI

#if defined(CONFIG_SPICE)
    {
        .name       = "spice",
        .args_type  = "",
        .params     = "",
        .help       = "show the spice server status",
442
        .cmd        = hmp_info_spice,
443 444 445 446 447 448 449 450 451 452 453 454 455 456
    },
#endif

STEXI
@item info spice
@findex spice
Show the spice server status.
ETEXI

    {
        .name       = "name",
        .args_type  = "",
        .params     = "",
        .help       = "show the current VM name",
457
        .cmd        = hmp_info_name,
458 459 460 461 462 463 464 465 466 467 468 469 470
    },

STEXI
@item info name
@findex name
Show the current VM name.
ETEXI

    {
        .name       = "uuid",
        .args_type  = "",
        .params     = "",
        .help       = "show the current VM UUID",
471
        .cmd        = hmp_info_uuid,
472 473 474 475 476 477 478 479 480 481 482 483 484
    },

STEXI
@item info uuid
@findex uuid
Show the current VM UUID.
ETEXI

    {
        .name       = "cpustats",
        .args_type  = "",
        .params     = "",
        .help       = "show CPU statistics",
485
        .cmd        = hmp_info_cpustats,
486 487 488 489 490 491 492 493 494 495 496 497 498 499
    },

STEXI
@item info cpustats
@findex cpustats
Show CPU statistics.
ETEXI

#if defined(CONFIG_SLIRP)
    {
        .name       = "usernet",
        .args_type  = "",
        .params     = "",
        .help       = "show user network stack connection states",
500
        .cmd        = hmp_info_usernet,
501 502 503 504 505 506 507 508 509 510 511 512 513 514
    },
#endif

STEXI
@item info usernet
@findex usernet
Show user network stack connection states.
ETEXI

    {
        .name       = "migrate",
        .args_type  = "",
        .params     = "",
        .help       = "show migration status",
515
        .cmd        = hmp_info_migrate,
516 517 518 519 520 521 522 523 524 525 526 527 528
    },

STEXI
@item info migrate
@findex migrate
Show migration status.
ETEXI

    {
        .name       = "migrate_capabilities",
        .args_type  = "",
        .params     = "",
        .help       = "show current migration capabilities",
529
        .cmd        = hmp_info_migrate_capabilities,
530 531 532 533 534 535 536 537 538 539 540 541 542
    },

STEXI
@item info migrate_capabilities
@findex migrate_capabilities
Show current migration capabilities.
ETEXI

    {
        .name       = "migrate_parameters",
        .args_type  = "",
        .params     = "",
        .help       = "show current migration parameters",
543
        .cmd        = hmp_info_migrate_parameters,
544 545 546 547 548 549 550 551 552 553 554 555 556
    },

STEXI
@item info migrate_parameters
@findex migrate_parameters
Show current migration parameters.
ETEXI

    {
        .name       = "migrate_cache_size",
        .args_type  = "",
        .params     = "",
        .help       = "show current migration xbzrle cache size",
557
        .cmd        = hmp_info_migrate_cache_size,
558 559 560 561 562 563 564 565 566 567 568 569 570
    },

STEXI
@item info migrate_cache_size
@findex migrate_cache_size
Show current migration xbzrle cache size.
ETEXI

    {
        .name       = "balloon",
        .args_type  = "",
        .params     = "",
        .help       = "show balloon information",
571
        .cmd        = hmp_info_balloon,
572 573 574 575 576 577 578 579 580 581 582 583 584
    },

STEXI
@item info balloon
@findex balloon
Show balloon information.
ETEXI

    {
        .name       = "qtree",
        .args_type  = "",
        .params     = "",
        .help       = "show device tree",
585
        .cmd        = hmp_info_qtree,
586 587 588 589 590 591 592 593 594 595 596 597 598
    },

STEXI
@item info qtree
@findex qtree
Show device tree.
ETEXI

    {
        .name       = "qdm",
        .args_type  = "",
        .params     = "",
        .help       = "show qdev device model list",
599
        .cmd        = hmp_info_qdm,
600 601 602 603 604 605 606 607 608 609 610 611 612
    },

STEXI
@item info qdm
@findex qdm
Show qdev device model list.
ETEXI

    {
        .name       = "qom-tree",
        .args_type  = "path:s?",
        .params     = "[path]",
        .help       = "show QOM composition tree",
613
        .cmd        = hmp_info_qom_tree,
614 615 616 617 618 619 620 621 622 623 624 625 626
    },

STEXI
@item info qom-tree
@findex qom-tree
Show QOM composition tree.
ETEXI

    {
        .name       = "roms",
        .args_type  = "",
        .params     = "",
        .help       = "show roms",
627
        .cmd        = hmp_info_roms,
628 629 630 631 632 633 634 635 636 637
    },

STEXI
@item info roms
@findex roms
Show roms.
ETEXI

    {
        .name       = "trace-events",
638 639
        .args_type  = "name:s?,vcpu:i?",
        .params     = "[name] [vcpu]",
640
        .help       = "show available trace-events & their state "
641
                      "(name: event name pattern; vcpu: vCPU to query, default is any)",
642
        .cmd = hmp_info_trace_events,
643
        .command_completion = info_trace_events_completion,
644 645 646 647 648 649 650 651 652 653 654 655 656
    },

STEXI
@item info trace-events
@findex trace-events
Show available trace-events & their state.
ETEXI

    {
        .name       = "tpm",
        .args_type  = "",
        .params     = "",
        .help       = "show the TPM device",
657
        .cmd        = hmp_info_tpm,
658 659 660 661 662 663 664 665 666 667 668 669 670
    },

STEXI
@item info tpm
@findex tpm
Show the TPM device.
ETEXI

    {
        .name       = "memdev",
        .args_type  = "",
        .params     = "",
        .help       = "show memory backends",
671
        .cmd        = hmp_info_memdev,
672 673 674 675 676 677 678 679 680 681 682 683 684
    },

STEXI
@item info memdev
@findex memdev
Show memory backends
ETEXI

    {
        .name       = "memory-devices",
        .args_type  = "",
        .params     = "",
        .help       = "show memory devices",
685
        .cmd        = hmp_info_memory_devices,
686 687 688 689 690 691 692 693 694 695 696 697 698
    },

STEXI
@item info memory-devices
@findex memory-devices
Show memory devices.
ETEXI

    {
        .name       = "iothreads",
        .args_type  = "",
        .params     = "",
        .help       = "show iothreads",
699
        .cmd        = hmp_info_iothreads,
700 701 702 703 704 705 706 707 708 709 710 711 712
    },

STEXI
@item info iothreads
@findex iothreads
Show iothread's identifiers.
ETEXI

    {
        .name       = "rocker",
        .args_type  = "name:s",
        .params     = "name",
        .help       = "Show rocker switch",
713
        .cmd        = hmp_rocker,
714 715 716 717 718 719 720 721 722 723 724 725 726
    },

STEXI
@item info rocker @var{name}
@findex rocker
Show rocker switch.
ETEXI

    {
        .name       = "rocker-ports",
        .args_type  = "name:s",
        .params     = "name",
        .help       = "Show rocker ports",
727
        .cmd        = hmp_rocker_ports,
728 729 730 731 732 733 734 735 736 737 738 739 740
    },

STEXI
@item info rocker_ports @var{name}-ports
@findex ocker-ports
Show rocker ports.
ETEXI

    {
        .name       = "rocker-of-dpa-flows",
        .args_type  = "name:s,tbl_id:i?",
        .params     = "name [tbl_id]",
        .help       = "Show rocker OF-DPA flow tables",
741
        .cmd        = hmp_rocker_of_dpa_flows,
742 743 744 745 746 747 748 749 750 751 752 753 754
    },

STEXI
@item info rocker_of_dpa_flows @var{name} [@var{tbl_id}]
@findex rocker-of-dpa-flows
Show rocker OF-DPA flow tables.
ETEXI

    {
        .name       = "rocker-of-dpa-groups",
        .args_type  = "name:s,type:i?",
        .params     = "name [type]",
        .help       = "Show rocker OF-DPA groups",
755
        .cmd        = hmp_rocker_of_dpa_groups,
756 757 758 759 760 761 762 763 764 765 766 767 768 769
    },

STEXI
@item info rocker-of-dpa-groups @var{name} [@var{type}]
@findex rocker-of-dpa-groups
Show rocker OF-DPA groups.
ETEXI

#if defined(TARGET_S390X)
    {
        .name       = "skeys",
        .args_type  = "addr:l",
        .params     = "address",
        .help       = "Display the value of a storage key",
770
        .cmd        = hmp_info_skeys,
771 772 773 774 775 776 777
    },
#endif

STEXI
@item info skeys @var{address}
@findex skeys
Display the value of a storage key (s390 only)
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793
ETEXI

#if defined(TARGET_S390X)
    {
        .name       = "cmma",
        .args_type  = "addr:l,count:l?",
        .params     = "address [count]",
        .help       = "Display the values of the CMMA storage attributes for a range of pages",
        .cmd        = hmp_info_cmma,
    },
#endif

STEXI
@item info cmma @var{address}
@findex cmma
Display the values of the CMMA storage attributes for a range of pages (s390 only)
P
Peter Xu 已提交
794 795 796 797 798 799 800
ETEXI

    {
        .name       = "dump",
        .args_type  = "",
        .params     = "",
        .help       = "Display the latest dump status",
801
        .cmd        = hmp_info_dump,
P
Peter Xu 已提交
802 803 804 805 806 807
    },

STEXI
@item info dump
@findex dump
Display the latest dump status.
808 809 810 811 812 813 814 815 816 817 818 819 820 821
ETEXI

    {
        .name       = "ramblock",
        .args_type  = "",
        .params     = "",
        .help       = "Display system ramblock information",
        .cmd        = hmp_info_ramblock,
    },

STEXI
@item info ramblock
@findex ramblock
Dump all the ramblocks of the system.
822 823 824 825 826 827 828
ETEXI

    {
        .name       = "hotpluggable-cpus",
        .args_type  = "",
        .params     = "",
        .help       = "Show information about hotpluggable CPUs",
829
        .cmd        = hmp_hotpluggable_cpus,
830 831 832 833 834 835
    },

STEXI
@item info hotpluggable-cpus
@findex hotpluggable-cpus
Show information about hotpluggable CPUs
836 837
ETEXI

838 839 840 841 842 843 844 845 846 847 848 849 850 851
STEXI
@item info vm-generation-id
@findex vm-generation-id
Show Virtual Machine Generation ID
ETEXI

    {
        .name       = "vm-generation-id",
        .args_type  = "",
        .params     = "",
        .help       = "Show Virtual Machine Generation ID",
        .cmd = hmp_info_vm_generation_id,
    },

852 853 854
STEXI
@end table
ETEXI
855 856 857 858

STEXI
@end table
ETEXI