blob: c59cd6637b97e6b0333386ee6ac7b7b47ab1af02 [file] [log] [blame]
Peter Maydelld95f2602023-12-12 16:23:13 +00001HXCOMM See docs/devel/docs.rst for the format of this file.
2HXCOMM
3HXCOMM This file defines the contents of an array of HMPCommand structs
4HXCOMM which specify the name, behaviour and help text for HMP commands.
5HXCOMM Text between SRST and ERST is rST format documentation.
Peter Maydell3c95fde2020-03-06 17:17:44 +00006HXCOMM HXCOMM can be used for comments, discarded from both rST and C.
Peter Maydella12e74c2020-02-28 15:36:07 +00007HXCOMM
8HXCOMM In this file, generally SRST fragments should have two extra
9HXCOMM spaces of indent, so that the documentation list item for "info foo"
10HXCOMM appears inside the documentation list item for the top level
11HXCOMM "info" documentation entry. The exception is the first SRST
12HXCOMM fragment that defines that top level entry.
Pavel Butsykinda76ee72015-09-10 18:38:58 +030013
Peter Maydella12e74c2020-02-28 15:36:07 +000014SRST
15``info`` *subcommand*
16 Show various information about the system state.
17
18ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +030019
20 {
21 .name = "version",
22 .args_type = "",
23 .params = "",
24 .help = "show the version of QEMU",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +040025 .cmd = hmp_info_version,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +010026 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +030027 },
28
Peter Maydella12e74c2020-02-28 15:36:07 +000029SRST
30 ``info version``
31 Show the version of QEMU.
32ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +030033
34 {
35 .name = "network",
36 .args_type = "",
37 .params = "",
38 .help = "show the network state",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +040039 .cmd = hmp_info_network,
Pavel Butsykinda76ee72015-09-10 18:38:58 +030040 },
41
Peter Maydella12e74c2020-02-28 15:36:07 +000042SRST
43 ``info network``
44 Show the network state.
45ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +030046
47 {
48 .name = "chardev",
49 .args_type = "",
50 .params = "",
51 .help = "show the character devices",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +040052 .cmd = hmp_info_chardev,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +010053 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +030054 },
55
Peter Maydella12e74c2020-02-28 15:36:07 +000056SRST
57 ``info chardev``
58 Show the character devices.
59ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +030060
61 {
62 .name = "block",
63 .args_type = "nodes:-n,verbose:-v,device:B?",
64 .params = "[-n] [-v] [device]",
65 .help = "show info of one block device or all block devices "
66 "(-n: show named nodes; -v: show details)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +040067 .cmd = hmp_info_block,
Pavel Butsykinda76ee72015-09-10 18:38:58 +030068 },
69
Peter Maydella12e74c2020-02-28 15:36:07 +000070SRST
71 ``info block``
72 Show info of one block device or all block devices.
73ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +030074
75 {
76 .name = "blockstats",
77 .args_type = "",
78 .params = "",
79 .help = "show block device statistics",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +040080 .cmd = hmp_info_blockstats,
Pavel Butsykinda76ee72015-09-10 18:38:58 +030081 },
82
Peter Maydella12e74c2020-02-28 15:36:07 +000083SRST
84 ``info blockstats``
85 Show block device statistics.
86ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +030087
88 {
89 .name = "block-jobs",
90 .args_type = "",
91 .params = "",
92 .help = "show progress of ongoing block device operations",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +040093 .cmd = hmp_info_block_jobs,
Pavel Butsykinda76ee72015-09-10 18:38:58 +030094 },
95
Peter Maydella12e74c2020-02-28 15:36:07 +000096SRST
97 ``info block-jobs``
98 Show progress of ongoing block device operations.
99ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300100
101 {
102 .name = "registers",
zhenwei pi00d60cf2022-08-02 15:37:20 +0800103 .args_type = "cpustate_all:-a,vcpu:i?",
104 .params = "[-a|vcpu]",
105 .help = "show the cpu registers (-a: show register info for all cpus;"
106 " vcpu: specific vCPU to query; show the current CPU's registers if"
107 " no argument is specified)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400108 .cmd = hmp_info_registers,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300109 },
110
Peter Maydella12e74c2020-02-28 15:36:07 +0000111SRST
112 ``info registers``
113 Show the cpu registers.
114ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300115
Pavel Butsykin1f871d42015-09-22 16:18:18 +0300116#if defined(TARGET_I386)
117 {
118 .name = "lapic",
Yi Wang1bef2282017-07-26 02:18:37 -0400119 .args_type = "apic-id:i?",
120 .params = "[apic-id]",
121 .help = "show local apic state (apic-id: local apic to read, default is which of current CPU)",
122
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400123 .cmd = hmp_info_local_apic,
Pavel Butsykin1f871d42015-09-22 16:18:18 +0300124 },
125#endif
126
Peter Maydella12e74c2020-02-28 15:36:07 +0000127SRST
128 ``info lapic``
129 Show local APIC state
130ERST
Pavel Butsykin1f871d42015-09-22 16:18:18 +0300131
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300132 {
133 .name = "cpus",
134 .args_type = "",
135 .params = "",
136 .help = "show infos for each CPU",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400137 .cmd = hmp_info_cpus,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300138 },
139
Peter Maydella12e74c2020-02-28 15:36:07 +0000140SRST
141 ``info cpus``
142 Show infos for each CPU.
143ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300144
145 {
146 .name = "history",
147 .args_type = "",
148 .params = "",
149 .help = "show the command line history",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400150 .cmd = hmp_info_history,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100151 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300152 },
153
Peter Maydella12e74c2020-02-28 15:36:07 +0000154SRST
155 ``info history``
156 Show the command line history.
157ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300158
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300159 {
160 .name = "irq",
161 .args_type = "",
162 .params = "",
163 .help = "show the interrupts statistics (if available)",
Daniel P. Berrangé91f2fa72021-09-08 10:35:43 +0100164 .cmd_info_hrt = qmp_x_query_irq,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300165 },
166
Peter Maydella12e74c2020-02-28 15:36:07 +0000167SRST
168 ``info irq``
169 Show the interrupts statistics (if available).
170ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300171
172 {
173 .name = "pic",
174 .args_type = "",
175 .params = "",
Hervé Poussineau254316f2016-09-26 22:23:28 +0200176 .help = "show PIC state",
Philippe Mathieu-Daudé795eaa62024-06-07 16:37:24 +0200177 .cmd_info_hrt = qmp_x_query_interrupt_controllers,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300178 },
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300179
Peter Maydella12e74c2020-02-28 15:36:07 +0000180SRST
181 ``info pic``
182 Show PIC state.
183ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300184
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200185 {
186 .name = "pci",
187 .args_type = "",
188 .params = "",
189 .help = "show PCI info",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400190 .cmd = hmp_info_pci,
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200191 },
192
Peter Maydella12e74c2020-02-28 15:36:07 +0000193SRST
194 ``info pci``
195 Show PCI information.
196ERST
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200197
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300198#if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \
Laurent Vivier2097dca2018-01-18 20:38:46 +0100199 defined(TARGET_PPC) || defined(TARGET_XTENSA) || defined(TARGET_M68K)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300200 {
201 .name = "tlb",
202 .args_type = "",
203 .params = "",
204 .help = "show virtual to physical memory mappings",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400205 .cmd = hmp_info_tlb,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300206 },
207#endif
208
Peter Maydella12e74c2020-02-28 15:36:07 +0000209SRST
210 ``info tlb``
211 Show virtual to physical memory mappings.
212ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300213
Bin Mengdf42fdd2019-08-14 08:33:32 -0700214#if defined(TARGET_I386) || defined(TARGET_RISCV)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300215 {
216 .name = "mem",
217 .args_type = "",
218 .params = "",
219 .help = "show the active virtual memory mappings",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400220 .cmd = hmp_info_mem,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300221 },
222#endif
223
Peter Maydella12e74c2020-02-28 15:36:07 +0000224SRST
225 ``info mem``
226 Show the active virtual memory mappings.
227ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300228
229 {
230 .name = "mtree",
Philippe Mathieu-Daudé2261d392020-05-29 14:53:25 +0200231 .args_type = "flatview:-f,dispatch_tree:-d,owner:-o,disabled:-D",
232 .params = "[-f][-d][-o][-D]",
Alexey Kardashevskiy5e8fd942017-09-21 18:51:06 +1000233 .help = "show memory tree (-f: dump flat view for address spaces;"
Alexey Kardashevskiyfc051ae2018-06-04 13:25:11 +1000234 "-d: dump dispatch tree, valid with -f only);"
Philippe Mathieu-Daudé2261d392020-05-29 14:53:25 +0200235 "-o: dump region owners/parents;"
236 "-D: dump disabled regions",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400237 .cmd = hmp_info_mtree,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300238 },
239
Peter Maydella12e74c2020-02-28 15:36:07 +0000240SRST
241 ``info mtree``
242 Show memory tree.
243ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300244
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200245#if defined(CONFIG_TCG)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300246 {
247 .name = "jit",
248 .args_type = "",
249 .params = "",
250 .help = "show dynamic compiler info",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300251 },
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200252#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300253
Peter Maydella12e74c2020-02-28 15:36:07 +0000254SRST
255 ``info jit``
256 Show dynamic compiler info.
257ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300258
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200259#if defined(CONFIG_TCG)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300260 {
261 .name = "opcount",
262 .args_type = "",
263 .params = "",
264 .help = "show dynamic compiler opcode counters",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300265 },
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200266#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300267
Peter Maydella12e74c2020-02-28 15:36:07 +0000268SRST
269 ``info opcount``
270 Show dynamic compiler opcode counters
271ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300272
273 {
Emilio G. Cota97bfafe2017-08-08 13:54:42 -0400274 .name = "sync-profile",
275 .args_type = "mean:-m,no_coalesce:-n,max:i?",
276 .params = "[-m] [-n] [max]",
277 .help = "show synchronization profiling info, up to max entries "
278 "(default: 10), sorted by total wait time. (-m: sort by "
279 "mean wait time; -n: do not coalesce objects with the "
280 "same call site)",
281 .cmd = hmp_info_sync_profile,
282 },
283
Peter Maydella12e74c2020-02-28 15:36:07 +0000284SRST
285 ``info sync-profile [-m|-n]`` [*max*]
286 Show synchronization profiling info, up to *max* entries (default: 10),
287 sorted by total wait time.
288
289 ``-m``
290 sort by mean wait time
291 ``-n``
292 do not coalesce objects with the same call site
293
294 When different objects that share the same call site are coalesced,
295 the "Object" field shows---enclosed in brackets---the number of objects
296 being coalesced.
297ERST
Emilio G. Cota97bfafe2017-08-08 13:54:42 -0400298
299 {
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300300 .name = "kvm",
301 .args_type = "",
302 .params = "",
303 .help = "show KVM information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400304 .cmd = hmp_info_kvm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300305 },
306
Peter Maydella12e74c2020-02-28 15:36:07 +0000307SRST
308 ``info kvm``
309 Show KVM information.
310ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300311
312 {
313 .name = "numa",
314 .args_type = "",
315 .params = "",
316 .help = "show NUMA information",
Daniel P. Berrangé1b8ae792021-09-08 10:35:43 +0100317 .cmd_info_hrt = qmp_x_query_numa,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300318 },
319
Peter Maydella12e74c2020-02-28 15:36:07 +0000320SRST
321 ``info numa``
322 Show NUMA information.
323ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300324
325 {
326 .name = "usb",
327 .args_type = "",
328 .params = "",
329 .help = "show guest USB devices",
Daniel P. Berrangéfc309202021-09-08 10:35:43 +0100330 .cmd_info_hrt = qmp_x_query_usb,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300331 },
332
Peter Maydella12e74c2020-02-28 15:36:07 +0000333SRST
334 ``info usb``
335 Show guest USB devices.
336ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300337
338 {
339 .name = "usbhost",
340 .args_type = "",
341 .params = "",
342 .help = "show host USB devices",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300343 },
344
Peter Maydella12e74c2020-02-28 15:36:07 +0000345SRST
346 ``info usbhost``
347 Show host USB devices.
348ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300349
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300350 {
351 .name = "capture",
352 .args_type = "",
353 .params = "",
354 .help = "show capture information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400355 .cmd = hmp_info_capture,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300356 },
357
Peter Maydella12e74c2020-02-28 15:36:07 +0000358SRST
359 ``info capture``
360 Show capture information.
361ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300362
363 {
364 .name = "snapshots",
365 .args_type = "",
366 .params = "",
367 .help = "show the currently saved VM snapshots",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400368 .cmd = hmp_info_snapshots,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300369 },
370
Peter Maydella12e74c2020-02-28 15:36:07 +0000371SRST
372 ``info snapshots``
373 Show the currently saved VM snapshots.
374ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300375
376 {
377 .name = "status",
378 .args_type = "",
379 .params = "",
380 .help = "show the current VM status (running|paused)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400381 .cmd = hmp_info_status,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100382 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300383 },
384
Peter Maydella12e74c2020-02-28 15:36:07 +0000385SRST
386 ``info status``
387 Show the current VM status (running|paused).
388ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300389
390 {
391 .name = "mice",
392 .args_type = "",
393 .params = "",
394 .help = "show which guest mouse is receiving events",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400395 .cmd = hmp_info_mice,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300396 },
397
Peter Maydella12e74c2020-02-28 15:36:07 +0000398SRST
399 ``info mice``
400 Show which guest mouse is receiving events.
401ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300402
Marc-André Lureau05eb4a22018-07-03 17:56:47 +0200403#if defined(CONFIG_VNC)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300404 {
405 .name = "vnc",
406 .args_type = "",
407 .params = "",
408 .help = "show the vnc server status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400409 .cmd = hmp_info_vnc,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300410 },
Marc-André Lureau05eb4a22018-07-03 17:56:47 +0200411#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300412
Peter Maydella12e74c2020-02-28 15:36:07 +0000413SRST
414 ``info vnc``
415 Show the vnc server status.
416ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300417
418#if defined(CONFIG_SPICE)
419 {
420 .name = "spice",
421 .args_type = "",
422 .params = "",
423 .help = "show the spice server status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400424 .cmd = hmp_info_spice,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300425 },
426#endif
427
Peter Maydella12e74c2020-02-28 15:36:07 +0000428SRST
429 ``info spice``
430 Show the spice server status.
431ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300432
433 {
434 .name = "name",
435 .args_type = "",
436 .params = "",
437 .help = "show the current VM name",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400438 .cmd = hmp_info_name,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100439 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300440 },
441
Peter Maydella12e74c2020-02-28 15:36:07 +0000442SRST
443 ``info name``
444 Show the current VM name.
445ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300446
447 {
448 .name = "uuid",
449 .args_type = "",
450 .params = "",
451 .help = "show the current VM UUID",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400452 .cmd = hmp_info_uuid,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100453 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300454 },
455
Peter Maydella12e74c2020-02-28 15:36:07 +0000456SRST
457 ``info uuid``
458 Show the current VM UUID.
459ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300460
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300461#if defined(CONFIG_SLIRP)
462 {
463 .name = "usernet",
464 .args_type = "",
465 .params = "",
466 .help = "show user network stack connection states",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400467 .cmd = hmp_info_usernet,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300468 },
469#endif
470
Peter Maydella12e74c2020-02-28 15:36:07 +0000471SRST
472 ``info usernet``
473 Show user network stack connection states.
474ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300475
476 {
477 .name = "migrate",
478 .args_type = "",
479 .params = "",
480 .help = "show migration status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400481 .cmd = hmp_info_migrate,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300482 },
483
Peter Maydella12e74c2020-02-28 15:36:07 +0000484SRST
485 ``info migrate``
486 Show migration status.
487ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300488
489 {
490 .name = "migrate_capabilities",
491 .args_type = "",
492 .params = "",
493 .help = "show current migration capabilities",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400494 .cmd = hmp_info_migrate_capabilities,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300495 },
496
Peter Maydella12e74c2020-02-28 15:36:07 +0000497SRST
498 ``info migrate_capabilities``
499 Show current migration capabilities.
500ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300501
502 {
503 .name = "migrate_parameters",
504 .args_type = "",
505 .params = "",
506 .help = "show current migration parameters",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400507 .cmd = hmp_info_migrate_parameters,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300508 },
509
Peter Maydella12e74c2020-02-28 15:36:07 +0000510SRST
511 ``info migrate_parameters``
512 Show current migration parameters.
513ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300514
515 {
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300516 .name = "balloon",
517 .args_type = "",
518 .params = "",
519 .help = "show balloon information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400520 .cmd = hmp_info_balloon,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300521 },
522
Peter Maydella12e74c2020-02-28 15:36:07 +0000523SRST
524 ``info balloon``
525 Show balloon information.
526ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300527
528 {
529 .name = "qtree",
BALATON Zoltan46e23b22024-03-01 19:01:10 +0100530 .args_type = "brief:-b",
531 .params = "[-b]",
532 .help = "show device tree (-b: brief, omit properties)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400533 .cmd = hmp_info_qtree,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300534 },
535
Peter Maydella12e74c2020-02-28 15:36:07 +0000536SRST
537 ``info qtree``
538 Show device tree.
539ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300540
541 {
542 .name = "qdm",
543 .args_type = "",
544 .params = "",
545 .help = "show qdev device model list",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400546 .cmd = hmp_info_qdm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300547 },
548
Peter Maydella12e74c2020-02-28 15:36:07 +0000549SRST
550 ``info qdm``
551 Show qdev device model list.
552ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300553
554 {
555 .name = "qom-tree",
556 .args_type = "path:s?",
557 .params = "[path]",
558 .help = "show QOM composition tree",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400559 .cmd = hmp_info_qom_tree,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100560 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300561 },
562
Peter Maydella12e74c2020-02-28 15:36:07 +0000563SRST
564 ``info qom-tree``
565 Show QOM composition tree.
566ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300567
568 {
569 .name = "roms",
570 .args_type = "",
571 .params = "",
572 .help = "show roms",
Daniel P. Berrangédd982342021-09-08 10:35:43 +0100573 .cmd_info_hrt = qmp_x_query_roms,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300574 },
575
Peter Maydella12e74c2020-02-28 15:36:07 +0000576SRST
577 ``info roms``
578 Show roms.
579ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300580
581 {
582 .name = "trace-events",
Lluís Vilanova77e2b172016-07-11 12:53:57 +0200583 .args_type = "name:s?,vcpu:i?",
584 .params = "[name] [vcpu]",
Lluís Vilanovabd712112016-07-11 12:53:51 +0200585 .help = "show available trace-events & their state "
Lluís Vilanova77e2b172016-07-11 12:53:57 +0200586 "(name: event name pattern; vcpu: vCPU to query, default is any)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400587 .cmd = hmp_info_trace_events,
Lluís Vilanovabd712112016-07-11 12:53:51 +0200588 .command_completion = info_trace_events_completion,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300589 },
590
Peter Maydella12e74c2020-02-28 15:36:07 +0000591SRST
592 ``info trace-events``
593 Show available trace-events & their state.
594ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300595
596 {
597 .name = "tpm",
598 .args_type = "",
599 .params = "",
600 .help = "show the TPM device",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400601 .cmd = hmp_info_tpm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300602 },
603
Peter Maydella12e74c2020-02-28 15:36:07 +0000604SRST
605 ``info tpm``
606 Show the TPM device.
607ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300608
609 {
610 .name = "memdev",
611 .args_type = "",
612 .params = "",
613 .help = "show memory backends",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400614 .cmd = hmp_info_memdev,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100615 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300616 },
617
Peter Maydella12e74c2020-02-28 15:36:07 +0000618SRST
619 ``info memdev``
620 Show memory backends
621ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300622
623 {
624 .name = "memory-devices",
625 .args_type = "",
626 .params = "",
627 .help = "show memory devices",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400628 .cmd = hmp_info_memory_devices,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300629 },
630
Peter Maydella12e74c2020-02-28 15:36:07 +0000631SRST
632 ``info memory-devices``
633 Show memory devices.
634ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300635
636 {
637 .name = "iothreads",
638 .args_type = "",
639 .params = "",
640 .help = "show iothreads",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400641 .cmd = hmp_info_iothreads,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100642 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300643 },
644
Peter Maydella12e74c2020-02-28 15:36:07 +0000645SRST
646 ``info iothreads``
647 Show iothread's identifiers.
648ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300649
650 {
651 .name = "rocker",
652 .args_type = "name:s",
653 .params = "name",
654 .help = "Show rocker switch",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400655 .cmd = hmp_rocker,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300656 },
657
Peter Maydella12e74c2020-02-28 15:36:07 +0000658SRST
659 ``info rocker`` *name*
660 Show rocker switch.
661ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300662
663 {
664 .name = "rocker-ports",
665 .args_type = "name:s",
666 .params = "name",
667 .help = "Show rocker ports",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400668 .cmd = hmp_rocker_ports,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300669 },
670
Peter Maydella12e74c2020-02-28 15:36:07 +0000671SRST
672 ``info rocker-ports`` *name*-ports
673 Show rocker ports.
674ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300675
676 {
677 .name = "rocker-of-dpa-flows",
678 .args_type = "name:s,tbl_id:i?",
679 .params = "name [tbl_id]",
680 .help = "Show rocker OF-DPA flow tables",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400681 .cmd = hmp_rocker_of_dpa_flows,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300682 },
683
Peter Maydella12e74c2020-02-28 15:36:07 +0000684SRST
685 ``info rocker-of-dpa-flows`` *name* [*tbl_id*]
686 Show rocker OF-DPA flow tables.
687ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300688
689 {
690 .name = "rocker-of-dpa-groups",
691 .args_type = "name:s,type:i?",
692 .params = "name [type]",
693 .help = "Show rocker OF-DPA groups",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400694 .cmd = hmp_rocker_of_dpa_groups,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300695 },
696
Peter Maydella12e74c2020-02-28 15:36:07 +0000697SRST
698 ``info rocker-of-dpa-groups`` *name* [*type*]
699 Show rocker OF-DPA groups.
700ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300701
702#if defined(TARGET_S390X)
703 {
704 .name = "skeys",
705 .args_type = "addr:l",
706 .params = "address",
707 .help = "Display the value of a storage key",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400708 .cmd = hmp_info_skeys,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300709 },
710#endif
711
Peter Maydella12e74c2020-02-28 15:36:07 +0000712SRST
713 ``info skeys`` *address*
714 Display the value of a storage key (s390 only)
715ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300716
Claudio Imbrendaf860d492016-08-15 18:44:04 +0200717#if defined(TARGET_S390X)
718 {
719 .name = "cmma",
720 .args_type = "addr:l,count:l?",
721 .params = "address [count]",
722 .help = "Display the values of the CMMA storage attributes for a range of pages",
723 .cmd = hmp_info_cmma,
724 },
725#endif
726
Peter Maydella12e74c2020-02-28 15:36:07 +0000727SRST
728 ``info cmma`` *address*
729 Display the values of the CMMA storage attributes for a range of
730 pages (s390 only)
731ERST
Claudio Imbrendaf860d492016-08-15 18:44:04 +0200732
Peter Xu4a6b52d2016-02-18 13:16:55 +0800733 {
734 .name = "dump",
735 .args_type = "",
736 .params = "",
737 .help = "Display the latest dump status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400738 .cmd = hmp_info_dump,
Peter Xu4a6b52d2016-02-18 13:16:55 +0800739 },
740
Peter Maydella12e74c2020-02-28 15:36:07 +0000741SRST
742 ``info dump``
743 Display the latest dump status.
744ERST
Peter Xu4a6b52d2016-02-18 13:16:55 +0800745
Bharata B Raod2d8d462016-06-10 06:29:07 +0530746 {
Peter Xube9b23c2017-05-12 12:17:41 +0800747 .name = "ramblock",
748 .args_type = "",
749 .params = "",
750 .help = "Display system ramblock information",
Daniel P. Berrangéca411b72021-09-08 10:35:43 +0100751 .cmd_info_hrt = qmp_x_query_ramblock,
Peter Xube9b23c2017-05-12 12:17:41 +0800752 },
753
Peter Maydella12e74c2020-02-28 15:36:07 +0000754SRST
755 ``info ramblock``
756 Dump all the ramblocks of the system.
757ERST
Peter Xube9b23c2017-05-12 12:17:41 +0800758
759 {
Bharata B Raod2d8d462016-06-10 06:29:07 +0530760 .name = "hotpluggable-cpus",
761 .args_type = "",
762 .params = "",
763 .help = "Show information about hotpluggable CPUs",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400764 .cmd = hmp_hotpluggable_cpus,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100765 .flags = "p",
Bharata B Raod2d8d462016-06-10 06:29:07 +0530766 },
767
Peter Maydella12e74c2020-02-28 15:36:07 +0000768SRST
769 ``info hotpluggable-cpus``
770 Show information about hotpluggable CPUs
771ERST
Bharata B Raod2d8d462016-06-10 06:29:07 +0530772
Igor Mammedov39164c12017-02-16 15:15:37 -0800773 {
774 .name = "vm-generation-id",
775 .args_type = "",
776 .params = "",
777 .help = "Show Virtual Machine Generation ID",
778 .cmd = hmp_info_vm_generation_id,
779 },
780
Peter Maydella12e74c2020-02-28 15:36:07 +0000781SRST
782 ``info vm-generation-id``
783 Show Virtual Machine Generation ID
784ERST
Vadim Galitsynd0f63c12017-08-29 17:30:22 +0200785
786 {
787 .name = "memory_size_summary",
788 .args_type = "",
789 .params = "",
790 .help = "show the amount of initially allocated and "
791 "present hotpluggable (if enabled) memory in bytes.",
792 .cmd = hmp_info_memory_size_summary,
793 },
794
Peter Maydella12e74c2020-02-28 15:36:07 +0000795SRST
796 ``info memory_size_summary``
797 Display the amount of initially allocated and present hotpluggable (if
798 enabled) memory in bytes.
799ERST
Markus Armbrustera9272512017-10-02 15:45:37 +0200800
Brijesh Singh63036312018-03-08 06:48:47 -0600801#if defined(TARGET_I386)
802 {
803 .name = "sev",
804 .args_type = "",
805 .params = "",
806 .help = "show SEV information",
807 .cmd = hmp_info_sev,
808 },
809#endif
810
Peter Maydella12e74c2020-02-28 15:36:07 +0000811SRST
812 ``info sev``
813 Show SEV information.
814ERST
Brijesh Singh63036312018-03-08 06:48:47 -0600815
Pavel Dovgalyuke3b09ad2020-10-03 20:13:20 +0300816 {
817 .name = "replay",
818 .args_type = "",
819 .params = "",
820 .help = "show record/replay information",
821 .cmd = hmp_info_replay,
822 },
Pavel Butsykin2cd8af22015-09-10 18:39:01 +0300823
Pavel Dovgalyuke3b09ad2020-10-03 20:13:20 +0300824SRST
825 ``info replay``
826 Display the record/replay information: mode and the current icount.
827ERST
Peter Xua4a571d2021-06-07 09:11:57 +0800828
829 {
830 .name = "dirty_rate",
831 .args_type = "",
832 .params = "",
833 .help = "show dirty rate information",
834 .cmd = hmp_info_dirty_rate,
835 },
836
837SRST
838 ``info dirty_rate``
839 Display the vcpu dirty rate information.
840ERST
Yang Zhong57d874c2021-09-10 18:22:56 +0800841
Hyman Huang(黄勇)f3b2e382022-06-26 01:38:36 +0800842 {
843 .name = "vcpu_dirty_limit",
844 .args_type = "",
845 .params = "",
846 .help = "show dirty page limit information of all vCPU",
847 .cmd = hmp_info_vcpu_dirty_limit,
848 },
849
850SRST
851 ``info vcpu_dirty_limit``
852 Display the vcpu dirty page limit information.
853ERST
854
Yang Zhong57d874c2021-09-10 18:22:56 +0800855#if defined(TARGET_I386)
856 {
857 .name = "sgx",
858 .args_type = "",
859 .params = "",
860 .help = "show intel SGX information",
861 .cmd = hmp_info_sgx,
862 },
863#endif
864
865SRST
866 ``info sgx``
867 Show intel SGX information.
868ERST
Mark Cave-Ayland409e9f72022-03-05 15:09:53 +0000869
Murilo Opsfelder Araujoc9f80042022-05-10 20:54:39 -0300870#if defined(CONFIG_MOS6522)
Mark Cave-Ayland409e9f72022-03-05 15:09:53 +0000871 {
872 .name = "via",
873 .args_type = "",
874 .params = "",
875 .help = "show guest mos6522 VIA devices",
876 .cmd = hmp_info_via,
877 },
878#endif
879
880SRST
881 ``info via``
882 Show guest mos6522 VIA devices.
883ERST
Mark Kanda433815f2022-04-26 12:17:35 +0200884
885 {
886 .name = "stats",
Paolo Bonzini39cd0c72022-04-26 14:09:31 +0200887 .args_type = "target:s,names:s?,provider:s?",
888 .params = "target [names] [provider]",
889 .help = "show statistics for the given target (vm or vcpu); optionally filter by"
890 "name (comma-separated list, or * for all) and provider",
Mark Kanda433815f2022-04-26 12:17:35 +0200891 .cmd = hmp_info_stats,
892 },
893
894SRST
Martin Joergb3550552024-06-15 13:43:23 +0200895 ``info stats``
Mark Kanda433815f2022-04-26 12:17:35 +0200896 Show runtime-collected statistics
897ERST
Laurent Vivier8a828792022-08-11 08:24:44 -0400898
899 {
900 .name = "virtio",
901 .args_type = "",
902 .params = "",
903 .help = "List all available virtio devices",
904 .cmd = hmp_virtio_query,
905 .flags = "p",
906 },
907
908SRST
909 ``info virtio``
910 List all available virtio devices
911ERST
912
913 {
914 .name = "virtio-status",
915 .args_type = "path:s",
916 .params = "path",
917 .help = "Display status of a given virtio device",
918 .cmd = hmp_virtio_status,
919 .flags = "p",
920 },
921
922SRST
923 ``info virtio-status`` *path*
924 Display status of a given virtio device
925ERST
926
927 {
928 .name = "virtio-queue-status",
929 .args_type = "path:s,queue:i",
930 .params = "path queue",
931 .help = "Display status of a given virtio queue",
932 .cmd = hmp_virtio_queue_status,
933 .flags = "p",
934 },
935
936SRST
937 ``info virtio-queue-status`` *path* *queue*
938 Display status of a given virtio queue
939ERST
940
941 {
942 .name = "virtio-vhost-queue-status",
943 .args_type = "path:s,queue:i",
944 .params = "path queue",
945 .help = "Display status of a given vhost queue",
946 .cmd = hmp_vhost_queue_status,
947 .flags = "p",
948 },
949
950SRST
951 ``info virtio-vhost-queue-status`` *path* *queue*
952 Display status of a given vhost queue
953ERST
954
955 {
956 .name = "virtio-queue-element",
957 .args_type = "path:s,queue:i,index:i?",
958 .params = "path queue [index]",
959 .help = "Display element of a given virtio queue",
960 .cmd = hmp_virtio_queue_element,
961 .flags = "p",
962 },
963
964SRST
965 ``info virtio-queue-element`` *path* *queue* [*index*]
966 Display element of a given virtio queue
967ERST
zhenwei pief520912023-03-01 18:58:42 +0800968
969 {
970 .name = "cryptodev",
971 .args_type = "",
972 .params = "",
973 .help = "show the crypto devices",
974 .cmd = hmp_info_cryptodev,
975 .flags = "p",
976 },
977
978SRST
979 ``info cryptodev``
980 Show the crypto devices.
981ERST