hmp-commands-info.hx 18 KB

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