hmp-commands-info.hx 19 KB

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