blob: 188d9ece3b234a12d0c6701e4fb6f85018b589b6 [file] [log] [blame]
Peter Maydell3c95fde2020-03-06 17:17:44 +00001HXCOMM Use DEFHEADING() to define headings in both help text and rST.
2HXCOMM Text between SRST and ERST is copied to the rST version and
3HXCOMM discarded from C version.
Pavel Butsykinda76ee72015-09-10 18:38:58 +03004HXCOMM DEF(command, args, callback, arg_string, help) is used to construct
5HXCOMM monitor info commands
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",
Suraj Jitindar Singh18f08282017-06-08 15:41:16 +1000103 .args_type = "cpustate_all:-a",
104 .params = "[-a]",
105 .help = "show the cpu registers (-a: all - show register info for all cpus)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400106 .cmd = hmp_info_registers,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300107 },
108
Peter Maydella12e74c2020-02-28 15:36:07 +0000109SRST
110 ``info registers``
111 Show the cpu registers.
112ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300113
Pavel Butsykin1f871d42015-09-22 16:18:18 +0300114#if defined(TARGET_I386)
115 {
116 .name = "lapic",
Yi Wang1bef2282017-07-26 02:18:37 -0400117 .args_type = "apic-id:i?",
118 .params = "[apic-id]",
119 .help = "show local apic state (apic-id: local apic to read, default is which of current CPU)",
120
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400121 .cmd = hmp_info_local_apic,
Pavel Butsykin1f871d42015-09-22 16:18:18 +0300122 },
123#endif
124
Peter Maydella12e74c2020-02-28 15:36:07 +0000125SRST
126 ``info lapic``
127 Show local APIC state
128ERST
Pavel Butsykin1f871d42015-09-22 16:18:18 +0300129
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300130 {
131 .name = "cpus",
132 .args_type = "",
133 .params = "",
134 .help = "show infos for each CPU",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400135 .cmd = hmp_info_cpus,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300136 },
137
Peter Maydella12e74c2020-02-28 15:36:07 +0000138SRST
139 ``info cpus``
140 Show infos for each CPU.
141ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300142
143 {
144 .name = "history",
145 .args_type = "",
146 .params = "",
147 .help = "show the command line history",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400148 .cmd = hmp_info_history,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100149 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300150 },
151
Peter Maydella12e74c2020-02-28 15:36:07 +0000152SRST
153 ``info history``
154 Show the command line history.
155ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300156
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300157 {
158 .name = "irq",
159 .args_type = "",
160 .params = "",
161 .help = "show the interrupts statistics (if available)",
Daniel P. Berrangé91f2fa72021-09-08 10:35:43 +0100162 .cmd_info_hrt = qmp_x_query_irq,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300163 },
164
Peter Maydella12e74c2020-02-28 15:36:07 +0000165SRST
166 ``info irq``
167 Show the interrupts statistics (if available).
168ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300169
170 {
171 .name = "pic",
172 .args_type = "",
173 .params = "",
Hervé Poussineau254316f2016-09-26 22:23:28 +0200174 .help = "show PIC state",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400175 .cmd = hmp_info_pic,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300176 },
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300177
Peter Maydella12e74c2020-02-28 15:36:07 +0000178SRST
179 ``info pic``
180 Show PIC state.
181ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300182
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200183 {
Yuval Shaiaf4b2c022019-03-11 03:29:09 -0700184 .name = "rdma",
185 .args_type = "",
186 .params = "",
187 .help = "show RDMA state",
Daniel P. Berrangé8dbbca52021-09-08 10:35:43 +0100188 .cmd_info_hrt = qmp_x_query_rdma,
Yuval Shaiaf4b2c022019-03-11 03:29:09 -0700189 },
190
Peter Maydella12e74c2020-02-28 15:36:07 +0000191SRST
192 ``info rdma``
193 Show RDMA state.
194ERST
Yuval Shaiaf4b2c022019-03-11 03:29:09 -0700195
196 {
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200197 .name = "pci",
198 .args_type = "",
199 .params = "",
200 .help = "show PCI info",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400201 .cmd = hmp_info_pci,
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200202 },
203
Peter Maydella12e74c2020-02-28 15:36:07 +0000204SRST
205 ``info pci``
206 Show PCI information.
207ERST
Paolo Bonziniabadcbc2015-09-18 17:18:29 +0200208
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300209#if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \
Laurent Vivier2097dca2018-01-18 20:38:46 +0100210 defined(TARGET_PPC) || defined(TARGET_XTENSA) || defined(TARGET_M68K)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300211 {
212 .name = "tlb",
213 .args_type = "",
214 .params = "",
215 .help = "show virtual to physical memory mappings",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400216 .cmd = hmp_info_tlb,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300217 },
218#endif
219
Peter Maydella12e74c2020-02-28 15:36:07 +0000220SRST
221 ``info tlb``
222 Show virtual to physical memory mappings.
223ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300224
Bin Mengdf42fdd2019-08-14 08:33:32 -0700225#if defined(TARGET_I386) || defined(TARGET_RISCV)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300226 {
227 .name = "mem",
228 .args_type = "",
229 .params = "",
230 .help = "show the active virtual memory mappings",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400231 .cmd = hmp_info_mem,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300232 },
233#endif
234
Peter Maydella12e74c2020-02-28 15:36:07 +0000235SRST
236 ``info mem``
237 Show the active virtual memory mappings.
238ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300239
240 {
241 .name = "mtree",
Philippe Mathieu-Daudé2261d392020-05-29 14:53:25 +0200242 .args_type = "flatview:-f,dispatch_tree:-d,owner:-o,disabled:-D",
243 .params = "[-f][-d][-o][-D]",
Alexey Kardashevskiy5e8fd942017-09-21 18:51:06 +1000244 .help = "show memory tree (-f: dump flat view for address spaces;"
Alexey Kardashevskiyfc051ae2018-06-04 13:25:11 +1000245 "-d: dump dispatch tree, valid with -f only);"
Philippe Mathieu-Daudé2261d392020-05-29 14:53:25 +0200246 "-o: dump region owners/parents;"
247 "-D: dump disabled regions",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400248 .cmd = hmp_info_mtree,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300249 },
250
Peter Maydella12e74c2020-02-28 15:36:07 +0000251SRST
252 ``info mtree``
253 Show memory tree.
254ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300255
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200256#if defined(CONFIG_TCG)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300257 {
258 .name = "jit",
259 .args_type = "",
260 .params = "",
261 .help = "show dynamic compiler info",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300262 },
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200263#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300264
Peter Maydella12e74c2020-02-28 15:36:07 +0000265SRST
266 ``info jit``
267 Show dynamic compiler info.
268ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300269
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200270#if defined(CONFIG_TCG)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300271 {
272 .name = "opcount",
273 .args_type = "",
274 .params = "",
275 .help = "show dynamic compiler opcode counters",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300276 },
Paolo Bonzinif0d14a92012-09-17 13:42:41 +0200277#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300278
Peter Maydella12e74c2020-02-28 15:36:07 +0000279SRST
280 ``info opcount``
281 Show dynamic compiler opcode counters
282ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300283
284 {
Emilio G. Cota97bfafe2017-08-08 13:54:42 -0400285 .name = "sync-profile",
286 .args_type = "mean:-m,no_coalesce:-n,max:i?",
287 .params = "[-m] [-n] [max]",
288 .help = "show synchronization profiling info, up to max entries "
289 "(default: 10), sorted by total wait time. (-m: sort by "
290 "mean wait time; -n: do not coalesce objects with the "
291 "same call site)",
292 .cmd = hmp_info_sync_profile,
293 },
294
Peter Maydella12e74c2020-02-28 15:36:07 +0000295SRST
296 ``info sync-profile [-m|-n]`` [*max*]
297 Show synchronization profiling info, up to *max* entries (default: 10),
298 sorted by total wait time.
299
300 ``-m``
301 sort by mean wait time
302 ``-n``
303 do not coalesce objects with the same call site
304
305 When different objects that share the same call site are coalesced,
306 the "Object" field shows---enclosed in brackets---the number of objects
307 being coalesced.
308ERST
Emilio G. Cota97bfafe2017-08-08 13:54:42 -0400309
310 {
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300311 .name = "kvm",
312 .args_type = "",
313 .params = "",
314 .help = "show KVM information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400315 .cmd = hmp_info_kvm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300316 },
317
Peter Maydella12e74c2020-02-28 15:36:07 +0000318SRST
319 ``info kvm``
320 Show KVM information.
321ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300322
323 {
324 .name = "numa",
325 .args_type = "",
326 .params = "",
327 .help = "show NUMA information",
Daniel P. Berrangé1b8ae792021-09-08 10:35:43 +0100328 .cmd_info_hrt = qmp_x_query_numa,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300329 },
330
Peter Maydella12e74c2020-02-28 15:36:07 +0000331SRST
332 ``info numa``
333 Show NUMA information.
334ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300335
336 {
337 .name = "usb",
338 .args_type = "",
339 .params = "",
340 .help = "show guest USB devices",
Daniel P. Berrangéfc309202021-09-08 10:35:43 +0100341 .cmd_info_hrt = qmp_x_query_usb,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300342 },
343
Peter Maydella12e74c2020-02-28 15:36:07 +0000344SRST
345 ``info usb``
346 Show guest USB devices.
347ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300348
349 {
350 .name = "usbhost",
351 .args_type = "",
352 .params = "",
353 .help = "show host USB devices",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300354 },
355
Peter Maydella12e74c2020-02-28 15:36:07 +0000356SRST
357 ``info usbhost``
358 Show host USB devices.
359ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300360
Alex Bennée92e28c02022-01-05 13:49:57 +0000361#if defined(CONFIG_TCG)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300362 {
363 .name = "profile",
364 .args_type = "",
365 .params = "",
366 .help = "show profiling information",
Daniel P. Berrangé37087fd2021-09-08 10:35:43 +0100367 .cmd_info_hrt = qmp_x_query_profile,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300368 },
Alex Bennée92e28c02022-01-05 13:49:57 +0000369#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300370
Peter Maydella12e74c2020-02-28 15:36:07 +0000371SRST
372 ``info profile``
373 Show profiling information.
374ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300375
376 {
377 .name = "capture",
378 .args_type = "",
379 .params = "",
380 .help = "show capture information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400381 .cmd = hmp_info_capture,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300382 },
383
Peter Maydella12e74c2020-02-28 15:36:07 +0000384SRST
385 ``info capture``
386 Show capture information.
387ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300388
389 {
390 .name = "snapshots",
391 .args_type = "",
392 .params = "",
393 .help = "show the currently saved VM snapshots",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400394 .cmd = hmp_info_snapshots,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300395 },
396
Peter Maydella12e74c2020-02-28 15:36:07 +0000397SRST
398 ``info snapshots``
399 Show the currently saved VM snapshots.
400ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300401
402 {
403 .name = "status",
404 .args_type = "",
405 .params = "",
406 .help = "show the current VM status (running|paused)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400407 .cmd = hmp_info_status,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100408 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300409 },
410
Peter Maydella12e74c2020-02-28 15:36:07 +0000411SRST
412 ``info status``
413 Show the current VM status (running|paused).
414ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300415
416 {
417 .name = "mice",
418 .args_type = "",
419 .params = "",
420 .help = "show which guest mouse is receiving events",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400421 .cmd = hmp_info_mice,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300422 },
423
Peter Maydella12e74c2020-02-28 15:36:07 +0000424SRST
425 ``info mice``
426 Show which guest mouse is receiving events.
427ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300428
Marc-André Lureau05eb4a22018-07-03 17:56:47 +0200429#if defined(CONFIG_VNC)
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300430 {
431 .name = "vnc",
432 .args_type = "",
433 .params = "",
434 .help = "show the vnc server status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400435 .cmd = hmp_info_vnc,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300436 },
Marc-André Lureau05eb4a22018-07-03 17:56:47 +0200437#endif
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300438
Peter Maydella12e74c2020-02-28 15:36:07 +0000439SRST
440 ``info vnc``
441 Show the vnc server status.
442ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300443
444#if defined(CONFIG_SPICE)
445 {
446 .name = "spice",
447 .args_type = "",
448 .params = "",
449 .help = "show the spice server status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400450 .cmd = hmp_info_spice,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300451 },
452#endif
453
Peter Maydella12e74c2020-02-28 15:36:07 +0000454SRST
455 ``info spice``
456 Show the spice server status.
457ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300458
459 {
460 .name = "name",
461 .args_type = "",
462 .params = "",
463 .help = "show the current VM name",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400464 .cmd = hmp_info_name,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100465 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300466 },
467
Peter Maydella12e74c2020-02-28 15:36:07 +0000468SRST
469 ``info name``
470 Show the current VM name.
471ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300472
473 {
474 .name = "uuid",
475 .args_type = "",
476 .params = "",
477 .help = "show the current VM UUID",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400478 .cmd = hmp_info_uuid,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100479 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300480 },
481
Peter Maydella12e74c2020-02-28 15:36:07 +0000482SRST
483 ``info uuid``
484 Show the current VM UUID.
485ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300486
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300487#if defined(CONFIG_SLIRP)
488 {
489 .name = "usernet",
490 .args_type = "",
491 .params = "",
492 .help = "show user network stack connection states",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400493 .cmd = hmp_info_usernet,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300494 },
495#endif
496
Peter Maydella12e74c2020-02-28 15:36:07 +0000497SRST
498 ``info usernet``
499 Show user network stack connection states.
500ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300501
502 {
503 .name = "migrate",
504 .args_type = "",
505 .params = "",
506 .help = "show migration status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400507 .cmd = hmp_info_migrate,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300508 },
509
Peter Maydella12e74c2020-02-28 15:36:07 +0000510SRST
511 ``info migrate``
512 Show migration status.
513ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300514
515 {
516 .name = "migrate_capabilities",
517 .args_type = "",
518 .params = "",
519 .help = "show current migration capabilities",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400520 .cmd = hmp_info_migrate_capabilities,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300521 },
522
Peter Maydella12e74c2020-02-28 15:36:07 +0000523SRST
524 ``info migrate_capabilities``
525 Show current migration capabilities.
526ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300527
528 {
529 .name = "migrate_parameters",
530 .args_type = "",
531 .params = "",
532 .help = "show current migration parameters",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400533 .cmd = hmp_info_migrate_parameters,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300534 },
535
Peter Maydella12e74c2020-02-28 15:36:07 +0000536SRST
537 ``info migrate_parameters``
538 Show current migration parameters.
539ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300540
541 {
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300542 .name = "balloon",
543 .args_type = "",
544 .params = "",
545 .help = "show balloon information",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400546 .cmd = hmp_info_balloon,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300547 },
548
Peter Maydella12e74c2020-02-28 15:36:07 +0000549SRST
550 ``info balloon``
551 Show balloon information.
552ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300553
554 {
555 .name = "qtree",
556 .args_type = "",
557 .params = "",
558 .help = "show device tree",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400559 .cmd = hmp_info_qtree,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300560 },
561
Peter Maydella12e74c2020-02-28 15:36:07 +0000562SRST
563 ``info qtree``
564 Show device tree.
565ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300566
567 {
568 .name = "qdm",
569 .args_type = "",
570 .params = "",
571 .help = "show qdev device model list",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400572 .cmd = hmp_info_qdm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300573 },
574
Peter Maydella12e74c2020-02-28 15:36:07 +0000575SRST
576 ``info qdm``
577 Show qdev device model list.
578ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300579
580 {
581 .name = "qom-tree",
582 .args_type = "path:s?",
583 .params = "[path]",
584 .help = "show QOM composition tree",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400585 .cmd = hmp_info_qom_tree,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100586 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300587 },
588
Peter Maydella12e74c2020-02-28 15:36:07 +0000589SRST
590 ``info qom-tree``
591 Show QOM composition tree.
592ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300593
594 {
595 .name = "roms",
596 .args_type = "",
597 .params = "",
598 .help = "show roms",
Daniel P. Berrangédd982342021-09-08 10:35:43 +0100599 .cmd_info_hrt = qmp_x_query_roms,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300600 },
601
Peter Maydella12e74c2020-02-28 15:36:07 +0000602SRST
603 ``info roms``
604 Show roms.
605ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300606
607 {
608 .name = "trace-events",
Lluís Vilanova77e2b172016-07-11 12:53:57 +0200609 .args_type = "name:s?,vcpu:i?",
610 .params = "[name] [vcpu]",
Lluís Vilanovabd712112016-07-11 12:53:51 +0200611 .help = "show available trace-events & their state "
Lluís Vilanova77e2b172016-07-11 12:53:57 +0200612 "(name: event name pattern; vcpu: vCPU to query, default is any)",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400613 .cmd = hmp_info_trace_events,
Lluís Vilanovabd712112016-07-11 12:53:51 +0200614 .command_completion = info_trace_events_completion,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300615 },
616
Peter Maydella12e74c2020-02-28 15:36:07 +0000617SRST
618 ``info trace-events``
619 Show available trace-events & their state.
620ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300621
622 {
623 .name = "tpm",
624 .args_type = "",
625 .params = "",
626 .help = "show the TPM device",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400627 .cmd = hmp_info_tpm,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300628 },
629
Peter Maydella12e74c2020-02-28 15:36:07 +0000630SRST
631 ``info tpm``
632 Show the TPM device.
633ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300634
635 {
636 .name = "memdev",
637 .args_type = "",
638 .params = "",
639 .help = "show memory backends",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400640 .cmd = hmp_info_memdev,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100641 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300642 },
643
Peter Maydella12e74c2020-02-28 15:36:07 +0000644SRST
645 ``info memdev``
646 Show memory backends
647ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300648
649 {
650 .name = "memory-devices",
651 .args_type = "",
652 .params = "",
653 .help = "show memory devices",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400654 .cmd = hmp_info_memory_devices,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300655 },
656
Peter Maydella12e74c2020-02-28 15:36:07 +0000657SRST
658 ``info memory-devices``
659 Show memory devices.
660ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300661
662 {
663 .name = "iothreads",
664 .args_type = "",
665 .params = "",
666 .help = "show iothreads",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400667 .cmd = hmp_info_iothreads,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100668 .flags = "p",
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300669 },
670
Peter Maydella12e74c2020-02-28 15:36:07 +0000671SRST
672 ``info iothreads``
673 Show iothread's identifiers.
674ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300675
676 {
677 .name = "rocker",
678 .args_type = "name:s",
679 .params = "name",
680 .help = "Show rocker switch",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400681 .cmd = hmp_rocker,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300682 },
683
Peter Maydella12e74c2020-02-28 15:36:07 +0000684SRST
685 ``info rocker`` *name*
686 Show rocker switch.
687ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300688
689 {
690 .name = "rocker-ports",
691 .args_type = "name:s",
692 .params = "name",
693 .help = "Show rocker ports",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400694 .cmd = hmp_rocker_ports,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300695 },
696
Peter Maydella12e74c2020-02-28 15:36:07 +0000697SRST
698 ``info rocker-ports`` *name*-ports
699 Show rocker ports.
700ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300701
702 {
703 .name = "rocker-of-dpa-flows",
704 .args_type = "name:s,tbl_id:i?",
705 .params = "name [tbl_id]",
706 .help = "Show rocker OF-DPA flow tables",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400707 .cmd = hmp_rocker_of_dpa_flows,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300708 },
709
Peter Maydella12e74c2020-02-28 15:36:07 +0000710SRST
711 ``info rocker-of-dpa-flows`` *name* [*tbl_id*]
712 Show rocker OF-DPA flow tables.
713ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300714
715 {
716 .name = "rocker-of-dpa-groups",
717 .args_type = "name:s,type:i?",
718 .params = "name [type]",
719 .help = "Show rocker OF-DPA groups",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400720 .cmd = hmp_rocker_of_dpa_groups,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300721 },
722
Peter Maydella12e74c2020-02-28 15:36:07 +0000723SRST
724 ``info rocker-of-dpa-groups`` *name* [*type*]
725 Show rocker OF-DPA groups.
726ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300727
728#if defined(TARGET_S390X)
729 {
730 .name = "skeys",
731 .args_type = "addr:l",
732 .params = "address",
733 .help = "Display the value of a storage key",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400734 .cmd = hmp_info_skeys,
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300735 },
736#endif
737
Peter Maydella12e74c2020-02-28 15:36:07 +0000738SRST
739 ``info skeys`` *address*
740 Display the value of a storage key (s390 only)
741ERST
Pavel Butsykinda76ee72015-09-10 18:38:58 +0300742
Claudio Imbrendaf860d492016-08-15 18:44:04 +0200743#if defined(TARGET_S390X)
744 {
745 .name = "cmma",
746 .args_type = "addr:l,count:l?",
747 .params = "address [count]",
748 .help = "Display the values of the CMMA storage attributes for a range of pages",
749 .cmd = hmp_info_cmma,
750 },
751#endif
752
Peter Maydella12e74c2020-02-28 15:36:07 +0000753SRST
754 ``info cmma`` *address*
755 Display the values of the CMMA storage attributes for a range of
756 pages (s390 only)
757ERST
Claudio Imbrendaf860d492016-08-15 18:44:04 +0200758
Peter Xu4a6b52d2016-02-18 13:16:55 +0800759 {
760 .name = "dump",
761 .args_type = "",
762 .params = "",
763 .help = "Display the latest dump status",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400764 .cmd = hmp_info_dump,
Peter Xu4a6b52d2016-02-18 13:16:55 +0800765 },
766
Peter Maydella12e74c2020-02-28 15:36:07 +0000767SRST
768 ``info dump``
769 Display the latest dump status.
770ERST
Peter Xu4a6b52d2016-02-18 13:16:55 +0800771
Bharata B Raod2d8d462016-06-10 06:29:07 +0530772 {
Peter Xube9b23c2017-05-12 12:17:41 +0800773 .name = "ramblock",
774 .args_type = "",
775 .params = "",
776 .help = "Display system ramblock information",
Daniel P. Berrangéca411b72021-09-08 10:35:43 +0100777 .cmd_info_hrt = qmp_x_query_ramblock,
Peter Xube9b23c2017-05-12 12:17:41 +0800778 },
779
Peter Maydella12e74c2020-02-28 15:36:07 +0000780SRST
781 ``info ramblock``
782 Dump all the ramblocks of the system.
783ERST
Peter Xube9b23c2017-05-12 12:17:41 +0800784
785 {
Bharata B Raod2d8d462016-06-10 06:29:07 +0530786 .name = "hotpluggable-cpus",
787 .args_type = "",
788 .params = "",
789 .help = "Show information about hotpluggable CPUs",
Marc-André Lureau2b9e3572016-09-12 13:19:06 +0400790 .cmd = hmp_hotpluggable_cpus,
Dr. David Alan Gilbert8c7c7ec2018-06-20 16:39:45 +0100791 .flags = "p",
Bharata B Raod2d8d462016-06-10 06:29:07 +0530792 },
793
Peter Maydella12e74c2020-02-28 15:36:07 +0000794SRST
795 ``info hotpluggable-cpus``
796 Show information about hotpluggable CPUs
797ERST
Bharata B Raod2d8d462016-06-10 06:29:07 +0530798
Igor Mammedov39164c12017-02-16 15:15:37 -0800799 {
800 .name = "vm-generation-id",
801 .args_type = "",
802 .params = "",
803 .help = "Show Virtual Machine Generation ID",
804 .cmd = hmp_info_vm_generation_id,
805 },
806
Peter Maydella12e74c2020-02-28 15:36:07 +0000807SRST
808 ``info vm-generation-id``
809 Show Virtual Machine Generation ID
810ERST
Vadim Galitsynd0f63c12017-08-29 17:30:22 +0200811
812 {
813 .name = "memory_size_summary",
814 .args_type = "",
815 .params = "",
816 .help = "show the amount of initially allocated and "
817 "present hotpluggable (if enabled) memory in bytes.",
818 .cmd = hmp_info_memory_size_summary,
819 },
820
Peter Maydella12e74c2020-02-28 15:36:07 +0000821SRST
822 ``info memory_size_summary``
823 Display the amount of initially allocated and present hotpluggable (if
824 enabled) memory in bytes.
825ERST
Markus Armbrustera9272512017-10-02 15:45:37 +0200826
Brijesh Singh63036312018-03-08 06:48:47 -0600827#if defined(TARGET_I386)
828 {
829 .name = "sev",
830 .args_type = "",
831 .params = "",
832 .help = "show SEV information",
833 .cmd = hmp_info_sev,
834 },
835#endif
836
Peter Maydella12e74c2020-02-28 15:36:07 +0000837SRST
838 ``info sev``
839 Show SEV information.
840ERST
Brijesh Singh63036312018-03-08 06:48:47 -0600841
Pavel Dovgalyuke3b09ad2020-10-03 20:13:20 +0300842 {
843 .name = "replay",
844 .args_type = "",
845 .params = "",
846 .help = "show record/replay information",
847 .cmd = hmp_info_replay,
848 },
Pavel Butsykin2cd8af22015-09-10 18:39:01 +0300849
Pavel Dovgalyuke3b09ad2020-10-03 20:13:20 +0300850SRST
851 ``info replay``
852 Display the record/replay information: mode and the current icount.
853ERST
Peter Xua4a571d2021-06-07 09:11:57 +0800854
855 {
856 .name = "dirty_rate",
857 .args_type = "",
858 .params = "",
859 .help = "show dirty rate information",
860 .cmd = hmp_info_dirty_rate,
861 },
862
863SRST
864 ``info dirty_rate``
865 Display the vcpu dirty rate information.
866ERST
Yang Zhong57d874c2021-09-10 18:22:56 +0800867
Hyman Huang(黄勇)f3b2e382022-06-26 01:38:36 +0800868 {
869 .name = "vcpu_dirty_limit",
870 .args_type = "",
871 .params = "",
872 .help = "show dirty page limit information of all vCPU",
873 .cmd = hmp_info_vcpu_dirty_limit,
874 },
875
876SRST
877 ``info vcpu_dirty_limit``
878 Display the vcpu dirty page limit information.
879ERST
880
Yang Zhong57d874c2021-09-10 18:22:56 +0800881#if defined(TARGET_I386)
882 {
883 .name = "sgx",
884 .args_type = "",
885 .params = "",
886 .help = "show intel SGX information",
887 .cmd = hmp_info_sgx,
888 },
889#endif
890
891SRST
892 ``info sgx``
893 Show intel SGX information.
894ERST
Mark Cave-Ayland409e9f72022-03-05 15:09:53 +0000895
Murilo Opsfelder Araujoc9f80042022-05-10 20:54:39 -0300896#if defined(CONFIG_MOS6522)
Mark Cave-Ayland409e9f72022-03-05 15:09:53 +0000897 {
898 .name = "via",
899 .args_type = "",
900 .params = "",
901 .help = "show guest mos6522 VIA devices",
902 .cmd = hmp_info_via,
903 },
904#endif
905
906SRST
907 ``info via``
908 Show guest mos6522 VIA devices.
909ERST
Mark Kanda433815f2022-04-26 12:17:35 +0200910
911 {
912 .name = "stats",
Paolo Bonzini39cd0c72022-04-26 14:09:31 +0200913 .args_type = "target:s,names:s?,provider:s?",
914 .params = "target [names] [provider]",
915 .help = "show statistics for the given target (vm or vcpu); optionally filter by"
916 "name (comma-separated list, or * for all) and provider",
Mark Kanda433815f2022-04-26 12:17:35 +0200917 .cmd = hmp_info_stats,
918 },
919
920SRST
921 ``stats``
922 Show runtime-collected statistics
923ERST