hmp-commands-info.hx 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  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.
  7. HXCOMM
  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.
  13. SRST
  14. ``info`` *subcommand*
  15. Show various information about the system state.
  16. ERST
  17. {
  18. .name = "version",
  19. .args_type = "",
  20. .params = "",
  21. .help = "show the version of QEMU",
  22. .cmd = hmp_info_version,
  23. .flags = "p",
  24. },
  25. SRST
  26. ``info version``
  27. Show the version of QEMU.
  28. ERST
  29. {
  30. .name = "network",
  31. .args_type = "",
  32. .params = "",
  33. .help = "show the network state",
  34. .cmd = hmp_info_network,
  35. },
  36. SRST
  37. ``info network``
  38. Show the network state.
  39. ERST
  40. {
  41. .name = "chardev",
  42. .args_type = "",
  43. .params = "",
  44. .help = "show the character devices",
  45. .cmd = hmp_info_chardev,
  46. .flags = "p",
  47. },
  48. SRST
  49. ``info chardev``
  50. Show the character devices.
  51. ERST
  52. {
  53. .name = "block",
  54. .args_type = "nodes:-n,verbose:-v,device:B?",
  55. .params = "[-n] [-v] [device]",
  56. .help = "show info of one block device or all block devices "
  57. "(-n: show named nodes; -v: show details)",
  58. .cmd = hmp_info_block,
  59. },
  60. SRST
  61. ``info block``
  62. Show info of one block device or all block devices.
  63. ERST
  64. {
  65. .name = "blockstats",
  66. .args_type = "",
  67. .params = "",
  68. .help = "show block device statistics",
  69. .cmd = hmp_info_blockstats,
  70. },
  71. SRST
  72. ``info blockstats``
  73. Show block device statistics.
  74. ERST
  75. {
  76. .name = "block-jobs",
  77. .args_type = "",
  78. .params = "",
  79. .help = "show progress of ongoing block device operations",
  80. .cmd = hmp_info_block_jobs,
  81. },
  82. SRST
  83. ``info block-jobs``
  84. Show progress of ongoing block device operations.
  85. ERST
  86. {
  87. .name = "registers",
  88. .args_type = "cpustate_all:-a",
  89. .params = "[-a]",
  90. .help = "show the cpu registers (-a: all - show register info for all cpus)",
  91. .cmd = hmp_info_registers,
  92. },
  93. SRST
  94. ``info registers``
  95. Show the cpu registers.
  96. ERST
  97. #if defined(TARGET_I386)
  98. {
  99. .name = "lapic",
  100. .args_type = "apic-id:i?",
  101. .params = "[apic-id]",
  102. .help = "show local apic state (apic-id: local apic to read, default is which of current CPU)",
  103. .cmd = hmp_info_local_apic,
  104. },
  105. #endif
  106. SRST
  107. ``info lapic``
  108. Show local APIC state
  109. ERST
  110. #if defined(TARGET_I386)
  111. {
  112. .name = "ioapic",
  113. .args_type = "",
  114. .params = "",
  115. .help = "show io apic state",
  116. .cmd = hmp_info_io_apic,
  117. },
  118. #endif
  119. SRST
  120. ``info ioapic``
  121. Show io APIC state
  122. ERST
  123. {
  124. .name = "cpus",
  125. .args_type = "",
  126. .params = "",
  127. .help = "show infos for each CPU",
  128. .cmd = hmp_info_cpus,
  129. },
  130. SRST
  131. ``info cpus``
  132. Show infos for each CPU.
  133. ERST
  134. {
  135. .name = "history",
  136. .args_type = "",
  137. .params = "",
  138. .help = "show the command line history",
  139. .cmd = hmp_info_history,
  140. .flags = "p",
  141. },
  142. SRST
  143. ``info history``
  144. Show the command line history.
  145. ERST
  146. {
  147. .name = "irq",
  148. .args_type = "",
  149. .params = "",
  150. .help = "show the interrupts statistics (if available)",
  151. .cmd = hmp_info_irq,
  152. },
  153. SRST
  154. ``info irq``
  155. Show the interrupts statistics (if available).
  156. ERST
  157. {
  158. .name = "pic",
  159. .args_type = "",
  160. .params = "",
  161. .help = "show PIC state",
  162. .cmd = hmp_info_pic,
  163. },
  164. SRST
  165. ``info pic``
  166. Show PIC state.
  167. ERST
  168. {
  169. .name = "rdma",
  170. .args_type = "",
  171. .params = "",
  172. .help = "show RDMA state",
  173. .cmd = hmp_info_rdma,
  174. },
  175. SRST
  176. ``info rdma``
  177. Show RDMA state.
  178. ERST
  179. {
  180. .name = "pci",
  181. .args_type = "",
  182. .params = "",
  183. .help = "show PCI info",
  184. .cmd = hmp_info_pci,
  185. },
  186. SRST
  187. ``info pci``
  188. Show PCI information.
  189. ERST
  190. #if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \
  191. defined(TARGET_PPC) || defined(TARGET_XTENSA) || defined(TARGET_M68K)
  192. {
  193. .name = "tlb",
  194. .args_type = "",
  195. .params = "",
  196. .help = "show virtual to physical memory mappings",
  197. .cmd = hmp_info_tlb,
  198. },
  199. #endif
  200. SRST
  201. ``info tlb``
  202. Show virtual to physical memory mappings.
  203. ERST
  204. #if defined(TARGET_I386) || defined(TARGET_RISCV)
  205. {
  206. .name = "mem",
  207. .args_type = "",
  208. .params = "",
  209. .help = "show the active virtual memory mappings",
  210. .cmd = hmp_info_mem,
  211. },
  212. #endif
  213. SRST
  214. ``info mem``
  215. Show the active virtual memory mappings.
  216. ERST
  217. {
  218. .name = "mtree",
  219. .args_type = "flatview:-f,dispatch_tree:-d,owner:-o,disabled:-D",
  220. .params = "[-f][-d][-o][-D]",
  221. .help = "show memory tree (-f: dump flat view for address spaces;"
  222. "-d: dump dispatch tree, valid with -f only);"
  223. "-o: dump region owners/parents;"
  224. "-D: dump disabled regions",
  225. .cmd = hmp_info_mtree,
  226. },
  227. SRST
  228. ``info mtree``
  229. Show memory tree.
  230. ERST
  231. #if defined(CONFIG_TCG)
  232. {
  233. .name = "jit",
  234. .args_type = "",
  235. .params = "",
  236. .help = "show dynamic compiler info",
  237. .cmd = hmp_info_jit,
  238. },
  239. #endif
  240. SRST
  241. ``info jit``
  242. Show dynamic compiler info.
  243. ERST
  244. #if defined(CONFIG_TCG)
  245. {
  246. .name = "opcount",
  247. .args_type = "",
  248. .params = "",
  249. .help = "show dynamic compiler opcode counters",
  250. .cmd = hmp_info_opcount,
  251. },
  252. #endif
  253. SRST
  254. ``info opcount``
  255. Show dynamic compiler opcode counters
  256. ERST
  257. {
  258. .name = "sync-profile",
  259. .args_type = "mean:-m,no_coalesce:-n,max:i?",
  260. .params = "[-m] [-n] [max]",
  261. .help = "show synchronization profiling info, up to max entries "
  262. "(default: 10), sorted by total wait time. (-m: sort by "
  263. "mean wait time; -n: do not coalesce objects with the "
  264. "same call site)",
  265. .cmd = hmp_info_sync_profile,
  266. },
  267. SRST
  268. ``info sync-profile [-m|-n]`` [*max*]
  269. Show synchronization profiling info, up to *max* entries (default: 10),
  270. sorted by total wait time.
  271. ``-m``
  272. sort by mean wait time
  273. ``-n``
  274. do not coalesce objects with the same call site
  275. When different objects that share the same call site are coalesced,
  276. the "Object" field shows---enclosed in brackets---the number of objects
  277. being coalesced.
  278. ERST
  279. {
  280. .name = "kvm",
  281. .args_type = "",
  282. .params = "",
  283. .help = "show KVM information",
  284. .cmd = hmp_info_kvm,
  285. },
  286. SRST
  287. ``info kvm``
  288. Show KVM information.
  289. ERST
  290. {
  291. .name = "numa",
  292. .args_type = "",
  293. .params = "",
  294. .help = "show NUMA information",
  295. .cmd = hmp_info_numa,
  296. },
  297. SRST
  298. ``info numa``
  299. Show NUMA information.
  300. ERST
  301. {
  302. .name = "usb",
  303. .args_type = "",
  304. .params = "",
  305. .help = "show guest USB devices",
  306. .cmd = hmp_info_usb,
  307. },
  308. SRST
  309. ``info usb``
  310. Show guest USB devices.
  311. ERST
  312. {
  313. .name = "usbhost",
  314. .args_type = "",
  315. .params = "",
  316. .help = "show host USB devices",
  317. .cmd = hmp_info_usbhost,
  318. },
  319. SRST
  320. ``info usbhost``
  321. Show host USB devices.
  322. ERST
  323. {
  324. .name = "profile",
  325. .args_type = "",
  326. .params = "",
  327. .help = "show profiling information",
  328. .cmd = hmp_info_profile,
  329. },
  330. SRST
  331. ``info profile``
  332. Show profiling information.
  333. ERST
  334. {
  335. .name = "capture",
  336. .args_type = "",
  337. .params = "",
  338. .help = "show capture information",
  339. .cmd = hmp_info_capture,
  340. },
  341. SRST
  342. ``info capture``
  343. Show capture information.
  344. ERST
  345. {
  346. .name = "snapshots",
  347. .args_type = "",
  348. .params = "",
  349. .help = "show the currently saved VM snapshots",
  350. .cmd = hmp_info_snapshots,
  351. },
  352. SRST
  353. ``info snapshots``
  354. Show the currently saved VM snapshots.
  355. ERST
  356. {
  357. .name = "status",
  358. .args_type = "",
  359. .params = "",
  360. .help = "show the current VM status (running|paused)",
  361. .cmd = hmp_info_status,
  362. .flags = "p",
  363. },
  364. SRST
  365. ``info status``
  366. Show the current VM status (running|paused).
  367. ERST
  368. {
  369. .name = "mice",
  370. .args_type = "",
  371. .params = "",
  372. .help = "show which guest mouse is receiving events",
  373. .cmd = hmp_info_mice,
  374. },
  375. SRST
  376. ``info mice``
  377. Show which guest mouse is receiving events.
  378. ERST
  379. #if defined(CONFIG_VNC)
  380. {
  381. .name = "vnc",
  382. .args_type = "",
  383. .params = "",
  384. .help = "show the vnc server status",
  385. .cmd = hmp_info_vnc,
  386. },
  387. #endif
  388. SRST
  389. ``info vnc``
  390. Show the vnc server status.
  391. ERST
  392. #if defined(CONFIG_SPICE)
  393. {
  394. .name = "spice",
  395. .args_type = "",
  396. .params = "",
  397. .help = "show the spice server status",
  398. .cmd = hmp_info_spice,
  399. },
  400. #endif
  401. SRST
  402. ``info spice``
  403. Show the spice server status.
  404. ERST
  405. {
  406. .name = "name",
  407. .args_type = "",
  408. .params = "",
  409. .help = "show the current VM name",
  410. .cmd = hmp_info_name,
  411. .flags = "p",
  412. },
  413. SRST
  414. ``info name``
  415. Show the current VM name.
  416. ERST
  417. {
  418. .name = "uuid",
  419. .args_type = "",
  420. .params = "",
  421. .help = "show the current VM UUID",
  422. .cmd = hmp_info_uuid,
  423. .flags = "p",
  424. },
  425. SRST
  426. ``info uuid``
  427. Show the current VM UUID.
  428. ERST
  429. {
  430. .name = "cpustats",
  431. .args_type = "",
  432. .params = "",
  433. .help = "show CPU statistics",
  434. .cmd = hmp_info_cpustats,
  435. },
  436. SRST
  437. ``info cpustats``
  438. Show CPU statistics.
  439. ERST
  440. #if defined(CONFIG_SLIRP)
  441. {
  442. .name = "usernet",
  443. .args_type = "",
  444. .params = "",
  445. .help = "show user network stack connection states",
  446. .cmd = hmp_info_usernet,
  447. },
  448. #endif
  449. SRST
  450. ``info usernet``
  451. Show user network stack connection states.
  452. ERST
  453. {
  454. .name = "migrate",
  455. .args_type = "",
  456. .params = "",
  457. .help = "show migration status",
  458. .cmd = hmp_info_migrate,
  459. },
  460. SRST
  461. ``info migrate``
  462. Show migration status.
  463. ERST
  464. {
  465. .name = "migrate_capabilities",
  466. .args_type = "",
  467. .params = "",
  468. .help = "show current migration capabilities",
  469. .cmd = hmp_info_migrate_capabilities,
  470. },
  471. SRST
  472. ``info migrate_capabilities``
  473. Show current migration capabilities.
  474. ERST
  475. {
  476. .name = "migrate_parameters",
  477. .args_type = "",
  478. .params = "",
  479. .help = "show current migration parameters",
  480. .cmd = hmp_info_migrate_parameters,
  481. },
  482. SRST
  483. ``info migrate_parameters``
  484. Show current migration parameters.
  485. ERST
  486. {
  487. .name = "migrate_cache_size",
  488. .args_type = "",
  489. .params = "",
  490. .help = "show current migration xbzrle cache size",
  491. .cmd = hmp_info_migrate_cache_size,
  492. },
  493. SRST
  494. ``info migrate_cache_size``
  495. Show current migration xbzrle cache size.
  496. ERST
  497. {
  498. .name = "balloon",
  499. .args_type = "",
  500. .params = "",
  501. .help = "show balloon information",
  502. .cmd = hmp_info_balloon,
  503. },
  504. SRST
  505. ``info balloon``
  506. Show balloon information.
  507. ERST
  508. {
  509. .name = "qtree",
  510. .args_type = "",
  511. .params = "",
  512. .help = "show device tree",
  513. .cmd = hmp_info_qtree,
  514. },
  515. SRST
  516. ``info qtree``
  517. Show device tree.
  518. ERST
  519. {
  520. .name = "qdm",
  521. .args_type = "",
  522. .params = "",
  523. .help = "show qdev device model list",
  524. .cmd = hmp_info_qdm,
  525. },
  526. SRST
  527. ``info qdm``
  528. Show qdev device model list.
  529. ERST
  530. {
  531. .name = "qom-tree",
  532. .args_type = "path:s?",
  533. .params = "[path]",
  534. .help = "show QOM composition tree",
  535. .cmd = hmp_info_qom_tree,
  536. .flags = "p",
  537. },
  538. SRST
  539. ``info qom-tree``
  540. Show QOM composition tree.
  541. ERST
  542. {
  543. .name = "roms",
  544. .args_type = "",
  545. .params = "",
  546. .help = "show roms",
  547. .cmd = hmp_info_roms,
  548. },
  549. SRST
  550. ``info roms``
  551. Show roms.
  552. ERST
  553. {
  554. .name = "trace-events",
  555. .args_type = "name:s?,vcpu:i?",
  556. .params = "[name] [vcpu]",
  557. .help = "show available trace-events & their state "
  558. "(name: event name pattern; vcpu: vCPU to query, default is any)",
  559. .cmd = hmp_info_trace_events,
  560. .command_completion = info_trace_events_completion,
  561. },
  562. SRST
  563. ``info trace-events``
  564. Show available trace-events & their state.
  565. ERST
  566. {
  567. .name = "tpm",
  568. .args_type = "",
  569. .params = "",
  570. .help = "show the TPM device",
  571. .cmd = hmp_info_tpm,
  572. },
  573. SRST
  574. ``info tpm``
  575. Show the TPM device.
  576. ERST
  577. {
  578. .name = "memdev",
  579. .args_type = "",
  580. .params = "",
  581. .help = "show memory backends",
  582. .cmd = hmp_info_memdev,
  583. .flags = "p",
  584. },
  585. SRST
  586. ``info memdev``
  587. Show memory backends
  588. ERST
  589. {
  590. .name = "memory-devices",
  591. .args_type = "",
  592. .params = "",
  593. .help = "show memory devices",
  594. .cmd = hmp_info_memory_devices,
  595. },
  596. SRST
  597. ``info memory-devices``
  598. Show memory devices.
  599. ERST
  600. {
  601. .name = "iothreads",
  602. .args_type = "",
  603. .params = "",
  604. .help = "show iothreads",
  605. .cmd = hmp_info_iothreads,
  606. .flags = "p",
  607. },
  608. SRST
  609. ``info iothreads``
  610. Show iothread's identifiers.
  611. ERST
  612. {
  613. .name = "rocker",
  614. .args_type = "name:s",
  615. .params = "name",
  616. .help = "Show rocker switch",
  617. .cmd = hmp_rocker,
  618. },
  619. SRST
  620. ``info rocker`` *name*
  621. Show rocker switch.
  622. ERST
  623. {
  624. .name = "rocker-ports",
  625. .args_type = "name:s",
  626. .params = "name",
  627. .help = "Show rocker ports",
  628. .cmd = hmp_rocker_ports,
  629. },
  630. SRST
  631. ``info rocker-ports`` *name*-ports
  632. Show rocker ports.
  633. ERST
  634. {
  635. .name = "rocker-of-dpa-flows",
  636. .args_type = "name:s,tbl_id:i?",
  637. .params = "name [tbl_id]",
  638. .help = "Show rocker OF-DPA flow tables",
  639. .cmd = hmp_rocker_of_dpa_flows,
  640. },
  641. SRST
  642. ``info rocker-of-dpa-flows`` *name* [*tbl_id*]
  643. Show rocker OF-DPA flow tables.
  644. ERST
  645. {
  646. .name = "rocker-of-dpa-groups",
  647. .args_type = "name:s,type:i?",
  648. .params = "name [type]",
  649. .help = "Show rocker OF-DPA groups",
  650. .cmd = hmp_rocker_of_dpa_groups,
  651. },
  652. SRST
  653. ``info rocker-of-dpa-groups`` *name* [*type*]
  654. Show rocker OF-DPA groups.
  655. ERST
  656. #if defined(TARGET_S390X)
  657. {
  658. .name = "skeys",
  659. .args_type = "addr:l",
  660. .params = "address",
  661. .help = "Display the value of a storage key",
  662. .cmd = hmp_info_skeys,
  663. },
  664. #endif
  665. SRST
  666. ``info skeys`` *address*
  667. Display the value of a storage key (s390 only)
  668. ERST
  669. #if defined(TARGET_S390X)
  670. {
  671. .name = "cmma",
  672. .args_type = "addr:l,count:l?",
  673. .params = "address [count]",
  674. .help = "Display the values of the CMMA storage attributes for a range of pages",
  675. .cmd = hmp_info_cmma,
  676. },
  677. #endif
  678. SRST
  679. ``info cmma`` *address*
  680. Display the values of the CMMA storage attributes for a range of
  681. pages (s390 only)
  682. ERST
  683. {
  684. .name = "dump",
  685. .args_type = "",
  686. .params = "",
  687. .help = "Display the latest dump status",
  688. .cmd = hmp_info_dump,
  689. },
  690. SRST
  691. ``info dump``
  692. Display the latest dump status.
  693. ERST
  694. {
  695. .name = "ramblock",
  696. .args_type = "",
  697. .params = "",
  698. .help = "Display system ramblock information",
  699. .cmd = hmp_info_ramblock,
  700. },
  701. SRST
  702. ``info ramblock``
  703. Dump all the ramblocks of the system.
  704. ERST
  705. {
  706. .name = "hotpluggable-cpus",
  707. .args_type = "",
  708. .params = "",
  709. .help = "Show information about hotpluggable CPUs",
  710. .cmd = hmp_hotpluggable_cpus,
  711. .flags = "p",
  712. },
  713. SRST
  714. ``info hotpluggable-cpus``
  715. Show information about hotpluggable CPUs
  716. ERST
  717. {
  718. .name = "vm-generation-id",
  719. .args_type = "",
  720. .params = "",
  721. .help = "Show Virtual Machine Generation ID",
  722. .cmd = hmp_info_vm_generation_id,
  723. },
  724. SRST
  725. ``info vm-generation-id``
  726. Show Virtual Machine Generation ID
  727. ERST
  728. {
  729. .name = "memory_size_summary",
  730. .args_type = "",
  731. .params = "",
  732. .help = "show the amount of initially allocated and "
  733. "present hotpluggable (if enabled) memory in bytes.",
  734. .cmd = hmp_info_memory_size_summary,
  735. },
  736. SRST
  737. ``info memory_size_summary``
  738. Display the amount of initially allocated and present hotpluggable (if
  739. enabled) memory in bytes.
  740. ERST
  741. #if defined(TARGET_I386)
  742. {
  743. .name = "sev",
  744. .args_type = "",
  745. .params = "",
  746. .help = "show SEV information",
  747. .cmd = hmp_info_sev,
  748. },
  749. #endif
  750. SRST
  751. ``info sev``
  752. Show SEV information.
  753. ERST
  754. {
  755. .name = "replay",
  756. .args_type = "",
  757. .params = "",
  758. .help = "show record/replay information",
  759. .cmd = hmp_info_replay,
  760. },
  761. SRST
  762. ``info replay``
  763. Display the record/replay information: mode and the current icount.
  764. ERST