blob: da120f82a32fb5d9fbe812e864b33942e5afb915 [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",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400177 .cmd = hmp_info_pic,
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 {
Yuval Shaiaf4b2c022019-03-11 03:29:09 -0700186 .name = "rdma",
187 .args_type = "",
188 .params = "",
189 .help = "show RDMA state",
Daniel P. Berrangé8dbbca52021-09-08 10:35:43 +0100190 .cmd_info_hrt = qmp_x_query_rdma,
Yuval Shaiaf4b2c022019-03-11 03:29:09 -0700191 },
192
Peter Maydella12e74c2020-02-28 15:36:07 +0000193SRST
194 ``info rdma``
195 Show RDMA state.
196ERST
Yuval Shaiaf4b2c022019-03-11 03:29:09 -0700197
198 {
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200199 .name = "pci",
200 .args_type = "",
201 .params = "",
202 .help = "show PCI info",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400203 .cmd = hmp_info_pci,
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200204 },
205
Peter Maydella12e74c2020-02-28 15:36:07 +0000206SRST
207 ``info pci``
208 Show PCI information.
209ERST
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200210
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300211#if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \
Laurent Vivier2097dca2018-01-18 20:38:46 +0100212 defined(TARGET_PPC) || defined(TARGET_XTENSA) || defined(TARGET_M68K)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300213 {
214 .name = "tlb",
215 .args_type = "",
216 .params = "",
217 .help = "show virtual to physical memory mappings",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400218 .cmd = hmp_info_tlb,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300219 },
220#endif
221
Peter Maydella12e74c2020-02-28 15:36:07 +0000222SRST
223 ``info tlb``
224 Show virtual to physical memory mappings.
225ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300226
Bin Mengdf42fdd2019-08-14 08:33:32 -0700227#if defined(TARGET_I386) || defined(TARGET_RISCV)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300228 {
229 .name = "mem",
230 .args_type = "",
231 .params = "",
232 .help = "show the active virtual memory mappings",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400233 .cmd = hmp_info_mem,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300234 },
235#endif
236
Peter Maydella12e74c2020-02-28 15:36:07 +0000237SRST
238 ``info mem``
239 Show the active virtual memory mappings.
240ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300241
242 {
243 .name = "mtree",
Philippe Mathieu-Daudé2261d392020-05-29 14:53:25 +0200244 .args_type = "flatview:-f,dispatch_tree:-d,owner:-o,disabled:-D",
245 .params = "[-f][-d][-o][-D]",
Alexey Kardashevskiy5e8fd942017-09-21 18:51:06 +1000246 .help = "show memory tree (-f: dump flat view for address spaces;"
Alexey Kardashevskiyfc051ae2018-06-04 13:25:11 +1000247 "-d: dump dispatch tree, valid with -f only);"
Philippe Mathieu-Daudé2261d392020-05-29 14:53:25 +0200248 "-o: dump region owners/parents;"
249 "-D: dump disabled regions",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400250 .cmd = hmp_info_mtree,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300251 },
252
Peter Maydella12e74c2020-02-28 15:36:07 +0000253SRST
254 ``info mtree``
255 Show memory tree.
256ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300257
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200258#if defined(CONFIG_TCG)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300259 {
260 .name = "jit",
261 .args_type = "",
262 .params = "",
263 .help = "show dynamic compiler info",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300264 },
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200265#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300266
Peter Maydella12e74c2020-02-28 15:36:07 +0000267SRST
268 ``info jit``
269 Show dynamic compiler info.
270ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300271
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200272#if defined(CONFIG_TCG)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300273 {
274 .name = "opcount",
275 .args_type = "",
276 .params = "",
277 .help = "show dynamic compiler opcode counters",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300278 },
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200279#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300280
Peter Maydella12e74c2020-02-28 15:36:07 +0000281SRST
282 ``info opcount``
283 Show dynamic compiler opcode counters
284ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300285
286 {
Emilio G. Cota97bfafe2017-08-08 13:54:42 -0400287 .name = "sync-profile",
288 .args_type = "mean:-m,no_coalesce:-n,max:i?",
289 .params = "[-m] [-n] [max]",
290 .help = "show synchronization profiling info, up to max entries "
291 "(default: 10), sorted by total wait time. (-m: sort by "
292 "mean wait time; -n: do not coalesce objects with the "
293 "same call site)",
294 .cmd = hmp_info_sync_profile,
295 },
296
Peter Maydella12e74c2020-02-28 15:36:07 +0000297SRST
298 ``info sync-profile [-m|-n]`` [*max*]
299 Show synchronization profiling info, up to *max* entries (default: 10),
300 sorted by total wait time.
301
302 ``-m``
303 sort by mean wait time
304 ``-n``
305 do not coalesce objects with the same call site
306
307 When different objects that share the same call site are coalesced,
308 the "Object" field shows---enclosed in brackets---the number of objects
309 being coalesced.
310ERST
Emilio G. Cota97bfafe2017-08-08 13:54:42 -0400311
312 {
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300313 .name = "kvm",
314 .args_type = "",
315 .params = "",
316 .help = "show KVM information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400317 .cmd = hmp_info_kvm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300318 },
319
Peter Maydella12e74c2020-02-28 15:36:07 +0000320SRST
321 ``info kvm``
322 Show KVM information.
323ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300324
325 {
326 .name = "numa",
327 .args_type = "",
328 .params = "",
329 .help = "show NUMA information",
Daniel P. Berrangé1b8ae792021-09-08 10:35:43 +0100330 .cmd_info_hrt = qmp_x_query_numa,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300331 },
332
Peter Maydella12e74c2020-02-28 15:36:07 +0000333SRST
334 ``info numa``
335 Show NUMA information.
336ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300337
338 {
339 .name = "usb",
340 .args_type = "",
341 .params = "",
342 .help = "show guest USB devices",
Daniel P. Berrangéfc309202021-09-08 10:35:43 +0100343 .cmd_info_hrt = qmp_x_query_usb,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300344 },
345
Peter Maydella12e74c2020-02-28 15:36:07 +0000346SRST
347 ``info usb``
348 Show guest USB devices.
349ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300350
351 {
352 .name = "usbhost",
353 .args_type = "",
354 .params = "",
355 .help = "show host USB devices",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300356 },
357
Peter Maydella12e74c2020-02-28 15:36:07 +0000358SRST
359 ``info usbhost``
360 Show host USB devices.
361ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300362
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300363 {
364 .name = "capture",
365 .args_type = "",
366 .params = "",
367 .help = "show capture information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400368 .cmd = hmp_info_capture,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300369 },
370
Peter Maydella12e74c2020-02-28 15:36:07 +0000371SRST
372 ``info capture``
373 Show capture information.
374ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300375
376 {
377 .name = "snapshots",
378 .args_type = "",
379 .params = "",
380 .help = "show the currently saved VM snapshots",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400381 .cmd = hmp_info_snapshots,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300382 },
383
Peter Maydella12e74c2020-02-28 15:36:07 +0000384SRST
385 ``info snapshots``
386 Show the currently saved VM snapshots.
387ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300388
389 {
390 .name = "status",
391 .args_type = "",
392 .params = "",
393 .help = "show the current VM status (running|paused)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400394 .cmd = hmp_info_status,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100395 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300396 },
397
Peter Maydella12e74c2020-02-28 15:36:07 +0000398SRST
399 ``info status``
400 Show the current VM status (running|paused).
401ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300402
403 {
404 .name = "mice",
405 .args_type = "",
406 .params = "",
407 .help = "show which guest mouse is receiving events",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400408 .cmd = hmp_info_mice,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300409 },
410
Peter Maydella12e74c2020-02-28 15:36:07 +0000411SRST
412 ``info mice``
413 Show which guest mouse is receiving events.
414ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300415
Marc-André Lureau05eb4a22018-07-03 17:56:47 +0200416#if defined(CONFIG_VNC)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300417 {
418 .name = "vnc",
419 .args_type = "",
420 .params = "",
421 .help = "show the vnc server status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400422 .cmd = hmp_info_vnc,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300423 },
Marc-André Lureau05eb4a22018-07-03 17:56:47 +0200424#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300425
Peter Maydella12e74c2020-02-28 15:36:07 +0000426SRST
427 ``info vnc``
428 Show the vnc server status.
429ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300430
431#if defined(CONFIG_SPICE)
432 {
433 .name = "spice",
434 .args_type = "",
435 .params = "",
436 .help = "show the spice server status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400437 .cmd = hmp_info_spice,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300438 },
439#endif
440
Peter Maydella12e74c2020-02-28 15:36:07 +0000441SRST
442 ``info spice``
443 Show the spice server status.
444ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300445
446 {
447 .name = "name",
448 .args_type = "",
449 .params = "",
450 .help = "show the current VM name",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400451 .cmd = hmp_info_name,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100452 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300453 },
454
Peter Maydella12e74c2020-02-28 15:36:07 +0000455SRST
456 ``info name``
457 Show the current VM name.
458ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300459
460 {
461 .name = "uuid",
462 .args_type = "",
463 .params = "",
464 .help = "show the current VM UUID",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400465 .cmd = hmp_info_uuid,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100466 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300467 },
468
Peter Maydella12e74c2020-02-28 15:36:07 +0000469SRST
470 ``info uuid``
471 Show the current VM UUID.
472ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300473
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300474#if defined(CONFIG_SLIRP)
475 {
476 .name = "usernet",
477 .args_type = "",
478 .params = "",
479 .help = "show user network stack connection states",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400480 .cmd = hmp_info_usernet,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300481 },
482#endif
483
Peter Maydella12e74c2020-02-28 15:36:07 +0000484SRST
485 ``info usernet``
486 Show user network stack connection states.
487ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300488
489 {
490 .name = "migrate",
491 .args_type = "",
492 .params = "",
493 .help = "show migration status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400494 .cmd = hmp_info_migrate,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300495 },
496
Peter Maydella12e74c2020-02-28 15:36:07 +0000497SRST
498 ``info migrate``
499 Show migration status.
500ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300501
502 {
503 .name = "migrate_capabilities",
504 .args_type = "",
505 .params = "",
506 .help = "show current migration capabilities",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400507 .cmd = hmp_info_migrate_capabilities,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300508 },
509
Peter Maydella12e74c2020-02-28 15:36:07 +0000510SRST
511 ``info migrate_capabilities``
512 Show current migration capabilities.
513ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300514
515 {
516 .name = "migrate_parameters",
517 .args_type = "",
518 .params = "",
519 .help = "show current migration parameters",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400520 .cmd = hmp_info_migrate_parameters,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300521 },
522
Peter Maydella12e74c2020-02-28 15:36:07 +0000523SRST
524 ``info migrate_parameters``
525 Show current migration parameters.
526ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300527
528 {
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300529 .name = "balloon",
530 .args_type = "",
531 .params = "",
532 .help = "show balloon information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400533 .cmd = hmp_info_balloon,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300534 },
535
Peter Maydella12e74c2020-02-28 15:36:07 +0000536SRST
537 ``info balloon``
538 Show balloon information.
539ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300540
541 {
542 .name = "qtree",
543 .args_type = "",
544 .params = "",
545 .help = "show device tree",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400546 .cmd = hmp_info_qtree,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300547 },
548
Peter Maydella12e74c2020-02-28 15:36:07 +0000549SRST
550 ``info qtree``
551 Show device tree.
552ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300553
554 {
555 .name = "qdm",
556 .args_type = "",
557 .params = "",
558 .help = "show qdev device model list",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400559 .cmd = hmp_info_qdm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300560 },
561
Peter Maydella12e74c2020-02-28 15:36:07 +0000562SRST
563 ``info qdm``
564 Show qdev device model list.
565ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300566
567 {
568 .name = "qom-tree",
569 .args_type = "path:s?",
570 .params = "[path]",
571 .help = "show QOM composition tree",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400572 .cmd = hmp_info_qom_tree,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100573 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300574 },
575
Peter Maydella12e74c2020-02-28 15:36:07 +0000576SRST
577 ``info qom-tree``
578 Show QOM composition tree.
579ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300580
581 {
582 .name = "roms",
583 .args_type = "",
584 .params = "",
585 .help = "show roms",
Daniel P. Berrangédd982342021-09-08 10:35:43 +0100586 .cmd_info_hrt = qmp_x_query_roms,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300587 },
588
Peter Maydella12e74c2020-02-28 15:36:07 +0000589SRST
590 ``info roms``
591 Show roms.
592ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300593
594 {
595 .name = "trace-events",
Lluís Vilanova77e2b172016-07-11 12:53:57 +0200596 .args_type = "name:s?,vcpu:i?",
597 .params = "[name] [vcpu]",
Lluís Vilanovabd712112016-07-11 12:53:51 +0200598 .help = "show available trace-events & their state "
Lluís Vilanova77e2b172016-07-11 12:53:57 +0200599 "(name: event name pattern; vcpu: vCPU to query, default is any)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400600 .cmd = hmp_info_trace_events,
Lluís Vilanovabd712112016-07-11 12:53:51 +0200601 .command_completion = info_trace_events_completion,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300602 },
603
Peter Maydella12e74c2020-02-28 15:36:07 +0000604SRST
605 ``info trace-events``
606 Show available trace-events & their state.
607ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300608
609 {
610 .name = "tpm",
611 .args_type = "",
612 .params = "",
613 .help = "show the TPM device",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400614 .cmd = hmp_info_tpm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300615 },
616
Peter Maydella12e74c2020-02-28 15:36:07 +0000617SRST
618 ``info tpm``
619 Show the TPM device.
620ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300621
622 {
623 .name = "memdev",
624 .args_type = "",
625 .params = "",
626 .help = "show memory backends",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400627 .cmd = hmp_info_memdev,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100628 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300629 },
630
Peter Maydella12e74c2020-02-28 15:36:07 +0000631SRST
632 ``info memdev``
633 Show memory backends
634ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300635
636 {
637 .name = "memory-devices",
638 .args_type = "",
639 .params = "",
640 .help = "show memory devices",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400641 .cmd = hmp_info_memory_devices,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300642 },
643
Peter Maydella12e74c2020-02-28 15:36:07 +0000644SRST
645 ``info memory-devices``
646 Show memory devices.
647ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300648
649 {
650 .name = "iothreads",
651 .args_type = "",
652 .params = "",
653 .help = "show iothreads",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400654 .cmd = hmp_info_iothreads,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100655 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300656 },
657
Peter Maydella12e74c2020-02-28 15:36:07 +0000658SRST
659 ``info iothreads``
660 Show iothread's identifiers.
661ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300662
663 {
664 .name = "rocker",
665 .args_type = "name:s",
666 .params = "name",
667 .help = "Show rocker switch",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400668 .cmd = hmp_rocker,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300669 },
670
Peter Maydella12e74c2020-02-28 15:36:07 +0000671SRST
672 ``info rocker`` *name*
673 Show rocker switch.
674ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300675
676 {
677 .name = "rocker-ports",
678 .args_type = "name:s",
679 .params = "name",
680 .help = "Show rocker ports",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400681 .cmd = hmp_rocker_ports,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300682 },
683
Peter Maydella12e74c2020-02-28 15:36:07 +0000684SRST
685 ``info rocker-ports`` *name*-ports
686 Show rocker ports.
687ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300688
689 {
690 .name = "rocker-of-dpa-flows",
691 .args_type = "name:s,tbl_id:i?",
692 .params = "name [tbl_id]",
693 .help = "Show rocker OF-DPA flow tables",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400694 .cmd = hmp_rocker_of_dpa_flows,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300695 },
696
Peter Maydella12e74c2020-02-28 15:36:07 +0000697SRST
698 ``info rocker-of-dpa-flows`` *name* [*tbl_id*]
699 Show rocker OF-DPA flow tables.
700ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300701
702 {
703 .name = "rocker-of-dpa-groups",
704 .args_type = "name:s,type:i?",
705 .params = "name [type]",
706 .help = "Show rocker OF-DPA groups",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400707 .cmd = hmp_rocker_of_dpa_groups,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300708 },
709
Peter Maydella12e74c2020-02-28 15:36:07 +0000710SRST
711 ``info rocker-of-dpa-groups`` *name* [*type*]
712 Show rocker OF-DPA groups.
713ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300714
715#if defined(TARGET_S390X)
716 {
717 .name = "skeys",
718 .args_type = "addr:l",
719 .params = "address",
720 .help = "Display the value of a storage key",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400721 .cmd = hmp_info_skeys,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300722 },
723#endif
724
Peter Maydella12e74c2020-02-28 15:36:07 +0000725SRST
726 ``info skeys`` *address*
727 Display the value of a storage key (s390 only)
728ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300729
Claudio Imbrendaf860d492016-08-15 18:44:04 +0200730#if defined(TARGET_S390X)
731 {
732 .name = "cmma",
733 .args_type = "addr:l,count:l?",
734 .params = "address [count]",
735 .help = "Display the values of the CMMA storage attributes for a range of pages",
736 .cmd = hmp_info_cmma,
737 },
738#endif
739
Peter Maydella12e74c2020-02-28 15:36:07 +0000740SRST
741 ``info cmma`` *address*
742 Display the values of the CMMA storage attributes for a range of
743 pages (s390 only)
744ERST
Claudio Imbrendaf860d492016-08-15 18:44:04 +0200745
Peter Xu4a6b52d2016-02-18 13:16:55 +0800746 {
747 .name = "dump",
748 .args_type = "",
749 .params = "",
750 .help = "Display the latest dump status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400751 .cmd = hmp_info_dump,
Peter Xu4a6b52d2016-02-18 13:16:55 +0800752 },
753
Peter Maydella12e74c2020-02-28 15:36:07 +0000754SRST
755 ``info dump``
756 Display the latest dump status.
757ERST
Peter Xu4a6b52d2016-02-18 13:16:55 +0800758
Bharata B Raod2d8d462016-06-10 06:29:07 +0530759 {
Peter Xube9b23c2017-05-12 12:17:41 +0800760 .name = "ramblock",
761 .args_type = "",
762 .params = "",
763 .help = "Display system ramblock information",
Daniel P. Berrangéca411b72021-09-08 10:35:43 +0100764 .cmd_info_hrt = qmp_x_query_ramblock,
Peter Xube9b23c2017-05-12 12:17:41 +0800765 },
766
Peter Maydella12e74c2020-02-28 15:36:07 +0000767SRST
768 ``info ramblock``
769 Dump all the ramblocks of the system.
770ERST
Peter Xube9b23c2017-05-12 12:17:41 +0800771
772 {
Bharata B Raod2d8d462016-06-10 06:29:07 +0530773 .name = "hotpluggable-cpus",
774 .args_type = "",
775 .params = "",
776 .help = "Show information about hotpluggable CPUs",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400777 .cmd = hmp_hotpluggable_cpus,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100778 .flags = "p",
Bharata B Raod2d8d462016-06-10 06:29:07 +0530779 },
780
Peter Maydella12e74c2020-02-28 15:36:07 +0000781SRST
782 ``info hotpluggable-cpus``
783 Show information about hotpluggable CPUs
784ERST
Bharata B Raod2d8d462016-06-10 06:29:07 +0530785
Igor Mammedov39164c12017-02-16 15:15:37 -0800786 {
787 .name = "vm-generation-id",
788 .args_type = "",
789 .params = "",
790 .help = "Show Virtual Machine Generation ID",
791 .cmd = hmp_info_vm_generation_id,
792 },
793
Peter Maydella12e74c2020-02-28 15:36:07 +0000794SRST
795 ``info vm-generation-id``
796 Show Virtual Machine Generation ID
797ERST
Vadim Galitsynd0f63c12017-08-29 17:30:22 +0200798
799 {
800 .name = "memory_size_summary",
801 .args_type = "",
802 .params = "",
803 .help = "show the amount of initially allocated and "
804 "present hotpluggable (if enabled) memory in bytes.",
805 .cmd = hmp_info_memory_size_summary,
806 },
807
Peter Maydella12e74c2020-02-28 15:36:07 +0000808SRST
809 ``info memory_size_summary``
810 Display the amount of initially allocated and present hotpluggable (if
811 enabled) memory in bytes.
812ERST
Markus Armbrustera9272512017-10-02 15:45:37 +0200813
Brijesh Singh63036312018-03-08 06:48:47 -0600814#if defined(TARGET_I386)
815 {
816 .name = "sev",
817 .args_type = "",
818 .params = "",
819 .help = "show SEV information",
820 .cmd = hmp_info_sev,
821 },
822#endif
823
Peter Maydella12e74c2020-02-28 15:36:07 +0000824SRST
825 ``info sev``
826 Show SEV information.
827ERST
Brijesh Singh63036312018-03-08 06:48:47 -0600828
Pavel Dovgalyuke3b09ad2020-10-03 20:13:20 +0300829 {
830 .name = "replay",
831 .args_type = "",
832 .params = "",
833 .help = "show record/replay information",
834 .cmd = hmp_info_replay,
835 },
Pavel Butsykin2cd8af22015-09-10 18:39:01 +0300836
Pavel Dovgalyuke3b09ad2020-10-03 20:13:20 +0300837SRST
838 ``info replay``
839 Display the record/replay information: mode and the current icount.
840ERST
Peter Xua4a571d2021-06-07 09:11:57 +0800841
842 {
843 .name = "dirty_rate",
844 .args_type = "",
845 .params = "",
846 .help = "show dirty rate information",
847 .cmd = hmp_info_dirty_rate,
848 },
849
850SRST
851 ``info dirty_rate``
852 Display the vcpu dirty rate information.
853ERST
Yang Zhong57d874c2021-09-10 18:22:56 +0800854
Hyman Huang(黄勇)f3b2e382022-06-26 01:38:36 +0800855 {
856 .name = "vcpu_dirty_limit",
857 .args_type = "",
858 .params = "",
859 .help = "show dirty page limit information of all vCPU",
860 .cmd = hmp_info_vcpu_dirty_limit,
861 },
862
863SRST
864 ``info vcpu_dirty_limit``
865 Display the vcpu dirty page limit information.
866ERST
867
Yang Zhong57d874c2021-09-10 18:22:56 +0800868#if defined(TARGET_I386)
869 {
870 .name = "sgx",
871 .args_type = "",
872 .params = "",
873 .help = "show intel SGX information",
874 .cmd = hmp_info_sgx,
875 },
876#endif
877
878SRST
879 ``info sgx``
880 Show intel SGX information.
881ERST
Mark Cave-Ayland409e9f72022-03-05 15:09:53 +0000882
Murilo Opsfelder Araujoc9f80042022-05-10 20:54:39 -0300883#if defined(CONFIG_MOS6522)
Mark Cave-Ayland409e9f72022-03-05 15:09:53 +0000884 {
885 .name = "via",
886 .args_type = "",
887 .params = "",
888 .help = "show guest mos6522 VIA devices",
889 .cmd = hmp_info_via,
890 },
891#endif
892
893SRST
894 ``info via``
895 Show guest mos6522 VIA devices.
896ERST
Mark Kanda433815f2022-04-26 12:17:35 +0200897
898 {
899 .name = "stats",
Paolo Bonzini39cd0c72022-04-26 14:09:31 +0200900 .args_type = "target:s,names:s?,provider:s?",
901 .params = "target [names] [provider]",
902 .help = "show statistics for the given target (vm or vcpu); optionally filter by"
903 "name (comma-separated list, or * for all) and provider",
Mark Kanda433815f2022-04-26 12:17:35 +0200904 .cmd = hmp_info_stats,
905 },
906
907SRST
908 ``stats``
909 Show runtime-collected statistics
910ERST
Laurent Vivier8a828792022-08-11 08:24:44 -0400911
912 {
913 .name = "virtio",
914 .args_type = "",
915 .params = "",
916 .help = "List all available virtio devices",
917 .cmd = hmp_virtio_query,
918 .flags = "p",
919 },
920
921SRST
922 ``info virtio``
923 List all available virtio devices
924ERST
925
926 {
927 .name = "virtio-status",
928 .args_type = "path:s",
929 .params = "path",
930 .help = "Display status of a given virtio device",
931 .cmd = hmp_virtio_status,
932 .flags = "p",
933 },
934
935SRST
936 ``info virtio-status`` *path*
937 Display status of a given virtio device
938ERST
939
940 {
941 .name = "virtio-queue-status",
942 .args_type = "path:s,queue:i",
943 .params = "path queue",
944 .help = "Display status of a given virtio queue",
945 .cmd = hmp_virtio_queue_status,
946 .flags = "p",
947 },
948
949SRST
950 ``info virtio-queue-status`` *path* *queue*
951 Display status of a given virtio queue
952ERST
953
954 {
955 .name = "virtio-vhost-queue-status",
956 .args_type = "path:s,queue:i",
957 .params = "path queue",
958 .help = "Display status of a given vhost queue",
959 .cmd = hmp_vhost_queue_status,
960 .flags = "p",
961 },
962
963SRST
964 ``info virtio-vhost-queue-status`` *path* *queue*
965 Display status of a given vhost queue
966ERST
967
968 {
969 .name = "virtio-queue-element",
970 .args_type = "path:s,queue:i,index:i?",
971 .params = "path queue [index]",
972 .help = "Display element of a given virtio queue",
973 .cmd = hmp_virtio_queue_element,
974 .flags = "p",
975 },
976
977SRST
978 ``info virtio-queue-element`` *path* *queue* [*index*]
979 Display element of a given virtio queue
980ERST
zhenwei pief520912023-03-01 18:58:42 +0800981
982 {
983 .name = "cryptodev",
984 .args_type = "",
985 .params = "",
986 .help = "show the crypto devices",
987 .cmd = hmp_info_cryptodev,
988 .flags = "p",
989 },
990
991SRST
992 ``info cryptodev``
993 Show the crypto devices.
994ERST