hmp-commands-info.hx 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  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 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 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 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 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 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 block-jobs
  85. Show progress of ongoing block device operations.
  86. ETEXI
  87. {
  88. .name = "registers",
  89. .args_type = "",
  90. .params = "",
  91. .help = "show the cpu registers",
  92. .cmd = hmp_info_registers,
  93. },
  94. STEXI
  95. @item info registers
  96. @findex registers
  97. Show the cpu registers.
  98. ETEXI
  99. #if defined(TARGET_I386)
  100. {
  101. .name = "lapic",
  102. .args_type = "",
  103. .params = "",
  104. .help = "show local apic state",
  105. .cmd = hmp_info_local_apic,
  106. },
  107. #endif
  108. STEXI
  109. @item info lapic
  110. @findex 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 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 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 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 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 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 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 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 mem
  214. Show the active virtual memory mappings.
  215. ETEXI
  216. {
  217. .name = "mtree",
  218. .args_type = "flatview:-f",
  219. .params = "[-f]",
  220. .help = "show memory tree (-f: dump flat view for address spaces)",
  221. .cmd = hmp_info_mtree,
  222. },
  223. STEXI
  224. @item info mtree
  225. @findex mtree
  226. Show memory tree.
  227. ETEXI
  228. {
  229. .name = "jit",
  230. .args_type = "",
  231. .params = "",
  232. .help = "show dynamic compiler info",
  233. .cmd = hmp_info_jit,
  234. },
  235. STEXI
  236. @item info jit
  237. @findex jit
  238. Show dynamic compiler info.
  239. ETEXI
  240. {
  241. .name = "opcount",
  242. .args_type = "",
  243. .params = "",
  244. .help = "show dynamic compiler opcode counters",
  245. .cmd = hmp_info_opcount,
  246. },
  247. STEXI
  248. @item info opcount
  249. @findex opcount
  250. Show dynamic compiler opcode counters
  251. ETEXI
  252. {
  253. .name = "kvm",
  254. .args_type = "",
  255. .params = "",
  256. .help = "show KVM information",
  257. .cmd = hmp_info_kvm,
  258. },
  259. STEXI
  260. @item info kvm
  261. @findex kvm
  262. Show KVM information.
  263. ETEXI
  264. {
  265. .name = "numa",
  266. .args_type = "",
  267. .params = "",
  268. .help = "show NUMA information",
  269. .cmd = hmp_info_numa,
  270. },
  271. STEXI
  272. @item info numa
  273. @findex numa
  274. Show NUMA information.
  275. ETEXI
  276. {
  277. .name = "usb",
  278. .args_type = "",
  279. .params = "",
  280. .help = "show guest USB devices",
  281. .cmd = hmp_info_usb,
  282. },
  283. STEXI
  284. @item info usb
  285. @findex usb
  286. Show guest USB devices.
  287. ETEXI
  288. {
  289. .name = "usbhost",
  290. .args_type = "",
  291. .params = "",
  292. .help = "show host USB devices",
  293. .cmd = hmp_info_usbhost,
  294. },
  295. STEXI
  296. @item info usbhost
  297. @findex usbhost
  298. Show host USB devices.
  299. ETEXI
  300. {
  301. .name = "profile",
  302. .args_type = "",
  303. .params = "",
  304. .help = "show profiling information",
  305. .cmd = hmp_info_profile,
  306. },
  307. STEXI
  308. @item info profile
  309. @findex profile
  310. Show profiling information.
  311. ETEXI
  312. {
  313. .name = "capture",
  314. .args_type = "",
  315. .params = "",
  316. .help = "show capture information",
  317. .cmd = hmp_info_capture,
  318. },
  319. STEXI
  320. @item info capture
  321. @findex capture
  322. Show capture information.
  323. ETEXI
  324. {
  325. .name = "snapshots",
  326. .args_type = "",
  327. .params = "",
  328. .help = "show the currently saved VM snapshots",
  329. .cmd = hmp_info_snapshots,
  330. },
  331. STEXI
  332. @item info snapshots
  333. @findex snapshots
  334. Show the currently saved VM snapshots.
  335. ETEXI
  336. {
  337. .name = "status",
  338. .args_type = "",
  339. .params = "",
  340. .help = "show the current VM status (running|paused)",
  341. .cmd = hmp_info_status,
  342. },
  343. STEXI
  344. @item info status
  345. @findex status
  346. Show the current VM status (running|paused).
  347. ETEXI
  348. {
  349. .name = "mice",
  350. .args_type = "",
  351. .params = "",
  352. .help = "show which guest mouse is receiving events",
  353. .cmd = hmp_info_mice,
  354. },
  355. STEXI
  356. @item info mice
  357. @findex mice
  358. Show which guest mouse is receiving events.
  359. ETEXI
  360. {
  361. .name = "vnc",
  362. .args_type = "",
  363. .params = "",
  364. .help = "show the vnc server status",
  365. .cmd = hmp_info_vnc,
  366. },
  367. STEXI
  368. @item info vnc
  369. @findex vnc
  370. Show the vnc server status.
  371. ETEXI
  372. #if defined(CONFIG_SPICE)
  373. {
  374. .name = "spice",
  375. .args_type = "",
  376. .params = "",
  377. .help = "show the spice server status",
  378. .cmd = hmp_info_spice,
  379. },
  380. #endif
  381. STEXI
  382. @item info spice
  383. @findex spice
  384. Show the spice server status.
  385. ETEXI
  386. {
  387. .name = "name",
  388. .args_type = "",
  389. .params = "",
  390. .help = "show the current VM name",
  391. .cmd = hmp_info_name,
  392. },
  393. STEXI
  394. @item info name
  395. @findex name
  396. Show the current VM name.
  397. ETEXI
  398. {
  399. .name = "uuid",
  400. .args_type = "",
  401. .params = "",
  402. .help = "show the current VM UUID",
  403. .cmd = hmp_info_uuid,
  404. },
  405. STEXI
  406. @item info uuid
  407. @findex uuid
  408. Show the current VM UUID.
  409. ETEXI
  410. {
  411. .name = "cpustats",
  412. .args_type = "",
  413. .params = "",
  414. .help = "show CPU statistics",
  415. .cmd = hmp_info_cpustats,
  416. },
  417. STEXI
  418. @item info cpustats
  419. @findex cpustats
  420. Show CPU statistics.
  421. ETEXI
  422. #if defined(CONFIG_SLIRP)
  423. {
  424. .name = "usernet",
  425. .args_type = "",
  426. .params = "",
  427. .help = "show user network stack connection states",
  428. .cmd = hmp_info_usernet,
  429. },
  430. #endif
  431. STEXI
  432. @item info usernet
  433. @findex usernet
  434. Show user network stack connection states.
  435. ETEXI
  436. {
  437. .name = "migrate",
  438. .args_type = "",
  439. .params = "",
  440. .help = "show migration status",
  441. .cmd = hmp_info_migrate,
  442. },
  443. STEXI
  444. @item info migrate
  445. @findex migrate
  446. Show migration status.
  447. ETEXI
  448. {
  449. .name = "migrate_capabilities",
  450. .args_type = "",
  451. .params = "",
  452. .help = "show current migration capabilities",
  453. .cmd = hmp_info_migrate_capabilities,
  454. },
  455. STEXI
  456. @item info migrate_capabilities
  457. @findex migrate_capabilities
  458. Show current migration capabilities.
  459. ETEXI
  460. {
  461. .name = "migrate_parameters",
  462. .args_type = "",
  463. .params = "",
  464. .help = "show current migration parameters",
  465. .cmd = hmp_info_migrate_parameters,
  466. },
  467. STEXI
  468. @item info migrate_parameters
  469. @findex migrate_parameters
  470. Show current migration parameters.
  471. ETEXI
  472. {
  473. .name = "migrate_cache_size",
  474. .args_type = "",
  475. .params = "",
  476. .help = "show current migration xbzrle cache size",
  477. .cmd = hmp_info_migrate_cache_size,
  478. },
  479. STEXI
  480. @item info migrate_cache_size
  481. @findex migrate_cache_size
  482. Show current migration xbzrle cache size.
  483. ETEXI
  484. {
  485. .name = "balloon",
  486. .args_type = "",
  487. .params = "",
  488. .help = "show balloon information",
  489. .cmd = hmp_info_balloon,
  490. },
  491. STEXI
  492. @item info balloon
  493. @findex balloon
  494. Show balloon information.
  495. ETEXI
  496. {
  497. .name = "qtree",
  498. .args_type = "",
  499. .params = "",
  500. .help = "show device tree",
  501. .cmd = hmp_info_qtree,
  502. },
  503. STEXI
  504. @item info qtree
  505. @findex qtree
  506. Show device tree.
  507. ETEXI
  508. {
  509. .name = "qdm",
  510. .args_type = "",
  511. .params = "",
  512. .help = "show qdev device model list",
  513. .cmd = hmp_info_qdm,
  514. },
  515. STEXI
  516. @item info qdm
  517. @findex qdm
  518. Show qdev device model list.
  519. ETEXI
  520. {
  521. .name = "qom-tree",
  522. .args_type = "path:s?",
  523. .params = "[path]",
  524. .help = "show QOM composition tree",
  525. .cmd = hmp_info_qom_tree,
  526. },
  527. STEXI
  528. @item info qom-tree
  529. @findex qom-tree
  530. Show QOM composition tree.
  531. ETEXI
  532. {
  533. .name = "roms",
  534. .args_type = "",
  535. .params = "",
  536. .help = "show roms",
  537. .cmd = hmp_info_roms,
  538. },
  539. STEXI
  540. @item info roms
  541. @findex roms
  542. Show roms.
  543. ETEXI
  544. {
  545. .name = "trace-events",
  546. .args_type = "name:s?,vcpu:i?",
  547. .params = "[name] [vcpu]",
  548. .help = "show available trace-events & their state "
  549. "(name: event name pattern; vcpu: vCPU to query, default is any)",
  550. .cmd = hmp_info_trace_events,
  551. .command_completion = info_trace_events_completion,
  552. },
  553. STEXI
  554. @item info trace-events
  555. @findex trace-events
  556. Show available trace-events & their state.
  557. ETEXI
  558. {
  559. .name = "tpm",
  560. .args_type = "",
  561. .params = "",
  562. .help = "show the TPM device",
  563. .cmd = hmp_info_tpm,
  564. },
  565. STEXI
  566. @item info tpm
  567. @findex tpm
  568. Show the TPM device.
  569. ETEXI
  570. {
  571. .name = "memdev",
  572. .args_type = "",
  573. .params = "",
  574. .help = "show memory backends",
  575. .cmd = hmp_info_memdev,
  576. },
  577. STEXI
  578. @item info memdev
  579. @findex memdev
  580. Show memory backends
  581. ETEXI
  582. {
  583. .name = "memory-devices",
  584. .args_type = "",
  585. .params = "",
  586. .help = "show memory devices",
  587. .cmd = hmp_info_memory_devices,
  588. },
  589. STEXI
  590. @item info memory-devices
  591. @findex memory-devices
  592. Show memory devices.
  593. ETEXI
  594. {
  595. .name = "iothreads",
  596. .args_type = "",
  597. .params = "",
  598. .help = "show iothreads",
  599. .cmd = hmp_info_iothreads,
  600. },
  601. STEXI
  602. @item info iothreads
  603. @findex iothreads
  604. Show iothread's identifiers.
  605. ETEXI
  606. {
  607. .name = "rocker",
  608. .args_type = "name:s",
  609. .params = "name",
  610. .help = "Show rocker switch",
  611. .cmd = hmp_rocker,
  612. },
  613. STEXI
  614. @item info rocker @var{name}
  615. @findex rocker
  616. Show rocker switch.
  617. ETEXI
  618. {
  619. .name = "rocker-ports",
  620. .args_type = "name:s",
  621. .params = "name",
  622. .help = "Show rocker ports",
  623. .cmd = hmp_rocker_ports,
  624. },
  625. STEXI
  626. @item info rocker_ports @var{name}-ports
  627. @findex ocker-ports
  628. Show rocker ports.
  629. ETEXI
  630. {
  631. .name = "rocker-of-dpa-flows",
  632. .args_type = "name:s,tbl_id:i?",
  633. .params = "name [tbl_id]",
  634. .help = "Show rocker OF-DPA flow tables",
  635. .cmd = hmp_rocker_of_dpa_flows,
  636. },
  637. STEXI
  638. @item info rocker_of_dpa_flows @var{name} [@var{tbl_id}]
  639. @findex rocker-of-dpa-flows
  640. Show rocker OF-DPA flow tables.
  641. ETEXI
  642. {
  643. .name = "rocker-of-dpa-groups",
  644. .args_type = "name:s,type:i?",
  645. .params = "name [type]",
  646. .help = "Show rocker OF-DPA groups",
  647. .cmd = hmp_rocker_of_dpa_groups,
  648. },
  649. STEXI
  650. @item info rocker-of-dpa-groups @var{name} [@var{type}]
  651. @findex rocker-of-dpa-groups
  652. Show rocker OF-DPA groups.
  653. ETEXI
  654. #if defined(TARGET_S390X)
  655. {
  656. .name = "skeys",
  657. .args_type = "addr:l",
  658. .params = "address",
  659. .help = "Display the value of a storage key",
  660. .cmd = hmp_info_skeys,
  661. },
  662. #endif
  663. STEXI
  664. @item info skeys @var{address}
  665. @findex skeys
  666. Display the value of a storage key (s390 only)
  667. ETEXI
  668. {
  669. .name = "dump",
  670. .args_type = "",
  671. .params = "",
  672. .help = "Display the latest dump status",
  673. .cmd = hmp_info_dump,
  674. },
  675. STEXI
  676. @item info dump
  677. @findex dump
  678. Display the latest dump status.
  679. ETEXI
  680. {
  681. .name = "hotpluggable-cpus",
  682. .args_type = "",
  683. .params = "",
  684. .help = "Show information about hotpluggable CPUs",
  685. .cmd = hmp_hotpluggable_cpus,
  686. },
  687. STEXI
  688. @item info hotpluggable-cpus
  689. @findex hotpluggable-cpus
  690. Show information about hotpluggable CPUs
  691. ETEXI
  692. STEXI
  693. @item info vm-generation-id
  694. @findex vm-generation-id
  695. Show Virtual Machine Generation ID
  696. ETEXI
  697. {
  698. .name = "vm-generation-id",
  699. .args_type = "",
  700. .params = "",
  701. .help = "Show Virtual Machine Generation ID",
  702. .cmd = hmp_info_vm_generation_id,
  703. },
  704. STEXI
  705. @end table
  706. ETEXI
  707. STEXI
  708. @end table
  709. ETEXI