Peter Maydell | 3c95fde | 2020-03-06 17:17:44 +0000 | [diff] [blame] | 1 | HXCOMM Use DEFHEADING() to define headings in both help text and rST. |
| 2 | HXCOMM Text between SRST and ERST is copied to the rST version and |
| 3 | HXCOMM discarded from C version. |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 4 | HXCOMM DEF(command, args, callback, arg_string, help) is used to construct |
| 5 | HXCOMM monitor info commands |
Peter Maydell | 3c95fde | 2020-03-06 17:17:44 +0000 | [diff] [blame] | 6 | HXCOMM HXCOMM can be used for comments, discarded from both rST and C. |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 7 | HXCOMM |
| 8 | HXCOMM In this file, generally SRST fragments should have two extra |
| 9 | HXCOMM spaces of indent, so that the documentation list item for "info foo" |
| 10 | HXCOMM appears inside the documentation list item for the top level |
| 11 | HXCOMM "info" documentation entry. The exception is the first SRST |
| 12 | HXCOMM fragment that defines that top level entry. |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 13 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 14 | SRST |
| 15 | ``info`` *subcommand* |
| 16 | Show various information about the system state. |
| 17 | |
| 18 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 19 | |
| 20 | { |
| 21 | .name = "version", |
| 22 | .args_type = "", |
| 23 | .params = "", |
| 24 | .help = "show the version of QEMU", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 25 | .cmd = hmp_info_version, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 26 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 27 | }, |
| 28 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 29 | SRST |
| 30 | ``info version`` |
| 31 | Show the version of QEMU. |
| 32 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 33 | |
| 34 | { |
| 35 | .name = "network", |
| 36 | .args_type = "", |
| 37 | .params = "", |
| 38 | .help = "show the network state", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 39 | .cmd = hmp_info_network, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 40 | }, |
| 41 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 42 | SRST |
| 43 | ``info network`` |
| 44 | Show the network state. |
| 45 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 46 | |
| 47 | { |
| 48 | .name = "chardev", |
| 49 | .args_type = "", |
| 50 | .params = "", |
| 51 | .help = "show the character devices", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 52 | .cmd = hmp_info_chardev, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 53 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 54 | }, |
| 55 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 56 | SRST |
| 57 | ``info chardev`` |
| 58 | Show the character devices. |
| 59 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 60 | |
| 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é Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 67 | .cmd = hmp_info_block, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 68 | }, |
| 69 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 70 | SRST |
| 71 | ``info block`` |
| 72 | Show info of one block device or all block devices. |
| 73 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 74 | |
| 75 | { |
| 76 | .name = "blockstats", |
| 77 | .args_type = "", |
| 78 | .params = "", |
| 79 | .help = "show block device statistics", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 80 | .cmd = hmp_info_blockstats, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 81 | }, |
| 82 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 83 | SRST |
| 84 | ``info blockstats`` |
| 85 | Show block device statistics. |
| 86 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 87 | |
| 88 | { |
| 89 | .name = "block-jobs", |
| 90 | .args_type = "", |
| 91 | .params = "", |
| 92 | .help = "show progress of ongoing block device operations", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 93 | .cmd = hmp_info_block_jobs, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 94 | }, |
| 95 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 96 | SRST |
| 97 | ``info block-jobs`` |
| 98 | Show progress of ongoing block device operations. |
| 99 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 100 | |
| 101 | { |
| 102 | .name = "registers", |
zhenwei pi | 00d60cf | 2022-08-02 15:37:20 +0800 | [diff] [blame] | 103 | .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é Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 108 | .cmd = hmp_info_registers, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 109 | }, |
| 110 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 111 | SRST |
| 112 | ``info registers`` |
| 113 | Show the cpu registers. |
| 114 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 115 | |
Pavel Butsykin | 1f871d4 | 2015-09-22 16:18:18 +0300 | [diff] [blame] | 116 | #if defined(TARGET_I386) |
| 117 | { |
| 118 | .name = "lapic", |
Yi Wang | 1bef228 | 2017-07-26 02:18:37 -0400 | [diff] [blame] | 119 | .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é Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 123 | .cmd = hmp_info_local_apic, |
Pavel Butsykin | 1f871d4 | 2015-09-22 16:18:18 +0300 | [diff] [blame] | 124 | }, |
| 125 | #endif |
| 126 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 127 | SRST |
| 128 | ``info lapic`` |
| 129 | Show local APIC state |
| 130 | ERST |
Pavel Butsykin | 1f871d4 | 2015-09-22 16:18:18 +0300 | [diff] [blame] | 131 | |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 132 | { |
| 133 | .name = "cpus", |
| 134 | .args_type = "", |
| 135 | .params = "", |
| 136 | .help = "show infos for each CPU", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 137 | .cmd = hmp_info_cpus, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 138 | }, |
| 139 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 140 | SRST |
| 141 | ``info cpus`` |
| 142 | Show infos for each CPU. |
| 143 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 144 | |
| 145 | { |
| 146 | .name = "history", |
| 147 | .args_type = "", |
| 148 | .params = "", |
| 149 | .help = "show the command line history", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 150 | .cmd = hmp_info_history, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 151 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 152 | }, |
| 153 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 154 | SRST |
| 155 | ``info history`` |
| 156 | Show the command line history. |
| 157 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 158 | |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 159 | { |
| 160 | .name = "irq", |
| 161 | .args_type = "", |
| 162 | .params = "", |
| 163 | .help = "show the interrupts statistics (if available)", |
Daniel P. Berrangé | 91f2fa7 | 2021-09-08 10:35:43 +0100 | [diff] [blame] | 164 | .cmd_info_hrt = qmp_x_query_irq, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 165 | }, |
| 166 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 167 | SRST |
| 168 | ``info irq`` |
| 169 | Show the interrupts statistics (if available). |
| 170 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 171 | |
| 172 | { |
| 173 | .name = "pic", |
| 174 | .args_type = "", |
| 175 | .params = "", |
Hervé Poussineau | 254316f | 2016-09-26 22:23:28 +0200 | [diff] [blame] | 176 | .help = "show PIC state", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 177 | .cmd = hmp_info_pic, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 178 | }, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 179 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 180 | SRST |
| 181 | ``info pic`` |
| 182 | Show PIC state. |
| 183 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 184 | |
Paolo Bonzini | abadcbc | 2015-09-18 17:18:29 +0200 | [diff] [blame] | 185 | { |
Yuval Shaia | f4b2c02 | 2019-03-11 03:29:09 -0700 | [diff] [blame] | 186 | .name = "rdma", |
| 187 | .args_type = "", |
| 188 | .params = "", |
| 189 | .help = "show RDMA state", |
Daniel P. Berrangé | 8dbbca5 | 2021-09-08 10:35:43 +0100 | [diff] [blame] | 190 | .cmd_info_hrt = qmp_x_query_rdma, |
Yuval Shaia | f4b2c02 | 2019-03-11 03:29:09 -0700 | [diff] [blame] | 191 | }, |
| 192 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 193 | SRST |
| 194 | ``info rdma`` |
| 195 | Show RDMA state. |
| 196 | ERST |
Yuval Shaia | f4b2c02 | 2019-03-11 03:29:09 -0700 | [diff] [blame] | 197 | |
| 198 | { |
Paolo Bonzini | abadcbc | 2015-09-18 17:18:29 +0200 | [diff] [blame] | 199 | .name = "pci", |
| 200 | .args_type = "", |
| 201 | .params = "", |
| 202 | .help = "show PCI info", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 203 | .cmd = hmp_info_pci, |
Paolo Bonzini | abadcbc | 2015-09-18 17:18:29 +0200 | [diff] [blame] | 204 | }, |
| 205 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 206 | SRST |
| 207 | ``info pci`` |
| 208 | Show PCI information. |
| 209 | ERST |
Paolo Bonzini | abadcbc | 2015-09-18 17:18:29 +0200 | [diff] [blame] | 210 | |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 211 | #if defined(TARGET_I386) || defined(TARGET_SH4) || defined(TARGET_SPARC) || \ |
Laurent Vivier | 2097dca | 2018-01-18 20:38:46 +0100 | [diff] [blame] | 212 | defined(TARGET_PPC) || defined(TARGET_XTENSA) || defined(TARGET_M68K) |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 213 | { |
| 214 | .name = "tlb", |
| 215 | .args_type = "", |
| 216 | .params = "", |
| 217 | .help = "show virtual to physical memory mappings", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 218 | .cmd = hmp_info_tlb, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 219 | }, |
| 220 | #endif |
| 221 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 222 | SRST |
| 223 | ``info tlb`` |
| 224 | Show virtual to physical memory mappings. |
| 225 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 226 | |
Bin Meng | df42fdd | 2019-08-14 08:33:32 -0700 | [diff] [blame] | 227 | #if defined(TARGET_I386) || defined(TARGET_RISCV) |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 228 | { |
| 229 | .name = "mem", |
| 230 | .args_type = "", |
| 231 | .params = "", |
| 232 | .help = "show the active virtual memory mappings", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 233 | .cmd = hmp_info_mem, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 234 | }, |
| 235 | #endif |
| 236 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 237 | SRST |
| 238 | ``info mem`` |
| 239 | Show the active virtual memory mappings. |
| 240 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 241 | |
| 242 | { |
| 243 | .name = "mtree", |
Philippe Mathieu-Daudé | 2261d39 | 2020-05-29 14:53:25 +0200 | [diff] [blame] | 244 | .args_type = "flatview:-f,dispatch_tree:-d,owner:-o,disabled:-D", |
| 245 | .params = "[-f][-d][-o][-D]", |
Alexey Kardashevskiy | 5e8fd94 | 2017-09-21 18:51:06 +1000 | [diff] [blame] | 246 | .help = "show memory tree (-f: dump flat view for address spaces;" |
Alexey Kardashevskiy | fc051ae | 2018-06-04 13:25:11 +1000 | [diff] [blame] | 247 | "-d: dump dispatch tree, valid with -f only);" |
Philippe Mathieu-Daudé | 2261d39 | 2020-05-29 14:53:25 +0200 | [diff] [blame] | 248 | "-o: dump region owners/parents;" |
| 249 | "-D: dump disabled regions", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 250 | .cmd = hmp_info_mtree, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 251 | }, |
| 252 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 253 | SRST |
| 254 | ``info mtree`` |
| 255 | Show memory tree. |
| 256 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 257 | |
Paolo Bonzini | f0d14a9 | 2012-09-17 13:42:41 +0200 | [diff] [blame] | 258 | #if defined(CONFIG_TCG) |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 259 | { |
| 260 | .name = "jit", |
| 261 | .args_type = "", |
| 262 | .params = "", |
| 263 | .help = "show dynamic compiler info", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 264 | }, |
Paolo Bonzini | f0d14a9 | 2012-09-17 13:42:41 +0200 | [diff] [blame] | 265 | #endif |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 266 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 267 | SRST |
| 268 | ``info jit`` |
| 269 | Show dynamic compiler info. |
| 270 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 271 | |
Paolo Bonzini | f0d14a9 | 2012-09-17 13:42:41 +0200 | [diff] [blame] | 272 | #if defined(CONFIG_TCG) |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 273 | { |
| 274 | .name = "opcount", |
| 275 | .args_type = "", |
| 276 | .params = "", |
| 277 | .help = "show dynamic compiler opcode counters", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 278 | }, |
Paolo Bonzini | f0d14a9 | 2012-09-17 13:42:41 +0200 | [diff] [blame] | 279 | #endif |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 280 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 281 | SRST |
| 282 | ``info opcount`` |
| 283 | Show dynamic compiler opcode counters |
| 284 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 285 | |
| 286 | { |
Emilio G. Cota | 97bfafe | 2017-08-08 13:54:42 -0400 | [diff] [blame] | 287 | .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 Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 297 | SRST |
| 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. |
| 310 | ERST |
Emilio G. Cota | 97bfafe | 2017-08-08 13:54:42 -0400 | [diff] [blame] | 311 | |
| 312 | { |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 313 | .name = "kvm", |
| 314 | .args_type = "", |
| 315 | .params = "", |
| 316 | .help = "show KVM information", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 317 | .cmd = hmp_info_kvm, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 318 | }, |
| 319 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 320 | SRST |
| 321 | ``info kvm`` |
| 322 | Show KVM information. |
| 323 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 324 | |
| 325 | { |
| 326 | .name = "numa", |
| 327 | .args_type = "", |
| 328 | .params = "", |
| 329 | .help = "show NUMA information", |
Daniel P. Berrangé | 1b8ae79 | 2021-09-08 10:35:43 +0100 | [diff] [blame] | 330 | .cmd_info_hrt = qmp_x_query_numa, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 331 | }, |
| 332 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 333 | SRST |
| 334 | ``info numa`` |
| 335 | Show NUMA information. |
| 336 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 337 | |
| 338 | { |
| 339 | .name = "usb", |
| 340 | .args_type = "", |
| 341 | .params = "", |
| 342 | .help = "show guest USB devices", |
Daniel P. Berrangé | fc30920 | 2021-09-08 10:35:43 +0100 | [diff] [blame] | 343 | .cmd_info_hrt = qmp_x_query_usb, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 344 | }, |
| 345 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 346 | SRST |
| 347 | ``info usb`` |
| 348 | Show guest USB devices. |
| 349 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 350 | |
| 351 | { |
| 352 | .name = "usbhost", |
| 353 | .args_type = "", |
| 354 | .params = "", |
| 355 | .help = "show host USB devices", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 356 | }, |
| 357 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 358 | SRST |
| 359 | ``info usbhost`` |
| 360 | Show host USB devices. |
| 361 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 362 | |
Alex Bennée | 92e28c0 | 2022-01-05 13:49:57 +0000 | [diff] [blame] | 363 | #if defined(CONFIG_TCG) |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 364 | { |
| 365 | .name = "profile", |
| 366 | .args_type = "", |
| 367 | .params = "", |
| 368 | .help = "show profiling information", |
Daniel P. Berrangé | 37087fd | 2021-09-08 10:35:43 +0100 | [diff] [blame] | 369 | .cmd_info_hrt = qmp_x_query_profile, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 370 | }, |
Alex Bennée | 92e28c0 | 2022-01-05 13:49:57 +0000 | [diff] [blame] | 371 | #endif |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 372 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 373 | SRST |
| 374 | ``info profile`` |
| 375 | Show profiling information. |
| 376 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 377 | |
| 378 | { |
| 379 | .name = "capture", |
| 380 | .args_type = "", |
| 381 | .params = "", |
| 382 | .help = "show capture information", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 383 | .cmd = hmp_info_capture, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 384 | }, |
| 385 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 386 | SRST |
| 387 | ``info capture`` |
| 388 | Show capture information. |
| 389 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 390 | |
| 391 | { |
| 392 | .name = "snapshots", |
| 393 | .args_type = "", |
| 394 | .params = "", |
| 395 | .help = "show the currently saved VM snapshots", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 396 | .cmd = hmp_info_snapshots, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 397 | }, |
| 398 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 399 | SRST |
| 400 | ``info snapshots`` |
| 401 | Show the currently saved VM snapshots. |
| 402 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 403 | |
| 404 | { |
| 405 | .name = "status", |
| 406 | .args_type = "", |
| 407 | .params = "", |
| 408 | .help = "show the current VM status (running|paused)", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 409 | .cmd = hmp_info_status, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 410 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 411 | }, |
| 412 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 413 | SRST |
| 414 | ``info status`` |
| 415 | Show the current VM status (running|paused). |
| 416 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 417 | |
| 418 | { |
| 419 | .name = "mice", |
| 420 | .args_type = "", |
| 421 | .params = "", |
| 422 | .help = "show which guest mouse is receiving events", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 423 | .cmd = hmp_info_mice, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 424 | }, |
| 425 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 426 | SRST |
| 427 | ``info mice`` |
| 428 | Show which guest mouse is receiving events. |
| 429 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 430 | |
Marc-André Lureau | 05eb4a2 | 2018-07-03 17:56:47 +0200 | [diff] [blame] | 431 | #if defined(CONFIG_VNC) |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 432 | { |
| 433 | .name = "vnc", |
| 434 | .args_type = "", |
| 435 | .params = "", |
| 436 | .help = "show the vnc server status", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 437 | .cmd = hmp_info_vnc, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 438 | }, |
Marc-André Lureau | 05eb4a2 | 2018-07-03 17:56:47 +0200 | [diff] [blame] | 439 | #endif |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 440 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 441 | SRST |
| 442 | ``info vnc`` |
| 443 | Show the vnc server status. |
| 444 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 445 | |
| 446 | #if defined(CONFIG_SPICE) |
| 447 | { |
| 448 | .name = "spice", |
| 449 | .args_type = "", |
| 450 | .params = "", |
| 451 | .help = "show the spice server status", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 452 | .cmd = hmp_info_spice, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 453 | }, |
| 454 | #endif |
| 455 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 456 | SRST |
| 457 | ``info spice`` |
| 458 | Show the spice server status. |
| 459 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 460 | |
| 461 | { |
| 462 | .name = "name", |
| 463 | .args_type = "", |
| 464 | .params = "", |
| 465 | .help = "show the current VM name", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 466 | .cmd = hmp_info_name, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 467 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 468 | }, |
| 469 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 470 | SRST |
| 471 | ``info name`` |
| 472 | Show the current VM name. |
| 473 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 474 | |
| 475 | { |
| 476 | .name = "uuid", |
| 477 | .args_type = "", |
| 478 | .params = "", |
| 479 | .help = "show the current VM UUID", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 480 | .cmd = hmp_info_uuid, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 481 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 482 | }, |
| 483 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 484 | SRST |
| 485 | ``info uuid`` |
| 486 | Show the current VM UUID. |
| 487 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 488 | |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 489 | #if defined(CONFIG_SLIRP) |
| 490 | { |
| 491 | .name = "usernet", |
| 492 | .args_type = "", |
| 493 | .params = "", |
| 494 | .help = "show user network stack connection states", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 495 | .cmd = hmp_info_usernet, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 496 | }, |
| 497 | #endif |
| 498 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 499 | SRST |
| 500 | ``info usernet`` |
| 501 | Show user network stack connection states. |
| 502 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 503 | |
| 504 | { |
| 505 | .name = "migrate", |
| 506 | .args_type = "", |
| 507 | .params = "", |
| 508 | .help = "show migration status", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 509 | .cmd = hmp_info_migrate, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 510 | }, |
| 511 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 512 | SRST |
| 513 | ``info migrate`` |
| 514 | Show migration status. |
| 515 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 516 | |
| 517 | { |
| 518 | .name = "migrate_capabilities", |
| 519 | .args_type = "", |
| 520 | .params = "", |
| 521 | .help = "show current migration capabilities", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 522 | .cmd = hmp_info_migrate_capabilities, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 523 | }, |
| 524 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 525 | SRST |
| 526 | ``info migrate_capabilities`` |
| 527 | Show current migration capabilities. |
| 528 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 529 | |
| 530 | { |
| 531 | .name = "migrate_parameters", |
| 532 | .args_type = "", |
| 533 | .params = "", |
| 534 | .help = "show current migration parameters", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 535 | .cmd = hmp_info_migrate_parameters, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 536 | }, |
| 537 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 538 | SRST |
| 539 | ``info migrate_parameters`` |
| 540 | Show current migration parameters. |
| 541 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 542 | |
| 543 | { |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 544 | .name = "balloon", |
| 545 | .args_type = "", |
| 546 | .params = "", |
| 547 | .help = "show balloon information", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 548 | .cmd = hmp_info_balloon, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 549 | }, |
| 550 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 551 | SRST |
| 552 | ``info balloon`` |
| 553 | Show balloon information. |
| 554 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 555 | |
| 556 | { |
| 557 | .name = "qtree", |
| 558 | .args_type = "", |
| 559 | .params = "", |
| 560 | .help = "show device tree", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 561 | .cmd = hmp_info_qtree, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 562 | }, |
| 563 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 564 | SRST |
| 565 | ``info qtree`` |
| 566 | Show device tree. |
| 567 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 568 | |
| 569 | { |
| 570 | .name = "qdm", |
| 571 | .args_type = "", |
| 572 | .params = "", |
| 573 | .help = "show qdev device model list", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 574 | .cmd = hmp_info_qdm, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 575 | }, |
| 576 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 577 | SRST |
| 578 | ``info qdm`` |
| 579 | Show qdev device model list. |
| 580 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 581 | |
| 582 | { |
| 583 | .name = "qom-tree", |
| 584 | .args_type = "path:s?", |
| 585 | .params = "[path]", |
| 586 | .help = "show QOM composition tree", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 587 | .cmd = hmp_info_qom_tree, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 588 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 589 | }, |
| 590 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 591 | SRST |
| 592 | ``info qom-tree`` |
| 593 | Show QOM composition tree. |
| 594 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 595 | |
| 596 | { |
| 597 | .name = "roms", |
| 598 | .args_type = "", |
| 599 | .params = "", |
| 600 | .help = "show roms", |
Daniel P. Berrangé | dd98234 | 2021-09-08 10:35:43 +0100 | [diff] [blame] | 601 | .cmd_info_hrt = qmp_x_query_roms, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 602 | }, |
| 603 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 604 | SRST |
| 605 | ``info roms`` |
| 606 | Show roms. |
| 607 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 608 | |
| 609 | { |
| 610 | .name = "trace-events", |
Lluís Vilanova | 77e2b17 | 2016-07-11 12:53:57 +0200 | [diff] [blame] | 611 | .args_type = "name:s?,vcpu:i?", |
| 612 | .params = "[name] [vcpu]", |
Lluís Vilanova | bd71211 | 2016-07-11 12:53:51 +0200 | [diff] [blame] | 613 | .help = "show available trace-events & their state " |
Lluís Vilanova | 77e2b17 | 2016-07-11 12:53:57 +0200 | [diff] [blame] | 614 | "(name: event name pattern; vcpu: vCPU to query, default is any)", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 615 | .cmd = hmp_info_trace_events, |
Lluís Vilanova | bd71211 | 2016-07-11 12:53:51 +0200 | [diff] [blame] | 616 | .command_completion = info_trace_events_completion, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 617 | }, |
| 618 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 619 | SRST |
| 620 | ``info trace-events`` |
| 621 | Show available trace-events & their state. |
| 622 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 623 | |
| 624 | { |
| 625 | .name = "tpm", |
| 626 | .args_type = "", |
| 627 | .params = "", |
| 628 | .help = "show the TPM device", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 629 | .cmd = hmp_info_tpm, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 630 | }, |
| 631 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 632 | SRST |
| 633 | ``info tpm`` |
| 634 | Show the TPM device. |
| 635 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 636 | |
| 637 | { |
| 638 | .name = "memdev", |
| 639 | .args_type = "", |
| 640 | .params = "", |
| 641 | .help = "show memory backends", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 642 | .cmd = hmp_info_memdev, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 643 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 644 | }, |
| 645 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 646 | SRST |
| 647 | ``info memdev`` |
| 648 | Show memory backends |
| 649 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 650 | |
| 651 | { |
| 652 | .name = "memory-devices", |
| 653 | .args_type = "", |
| 654 | .params = "", |
| 655 | .help = "show memory devices", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 656 | .cmd = hmp_info_memory_devices, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 657 | }, |
| 658 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 659 | SRST |
| 660 | ``info memory-devices`` |
| 661 | Show memory devices. |
| 662 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 663 | |
| 664 | { |
| 665 | .name = "iothreads", |
| 666 | .args_type = "", |
| 667 | .params = "", |
| 668 | .help = "show iothreads", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 669 | .cmd = hmp_info_iothreads, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 670 | .flags = "p", |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 671 | }, |
| 672 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 673 | SRST |
| 674 | ``info iothreads`` |
| 675 | Show iothread's identifiers. |
| 676 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 677 | |
| 678 | { |
| 679 | .name = "rocker", |
| 680 | .args_type = "name:s", |
| 681 | .params = "name", |
| 682 | .help = "Show rocker switch", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 683 | .cmd = hmp_rocker, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 684 | }, |
| 685 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 686 | SRST |
| 687 | ``info rocker`` *name* |
| 688 | Show rocker switch. |
| 689 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 690 | |
| 691 | { |
| 692 | .name = "rocker-ports", |
| 693 | .args_type = "name:s", |
| 694 | .params = "name", |
| 695 | .help = "Show rocker ports", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 696 | .cmd = hmp_rocker_ports, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 697 | }, |
| 698 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 699 | SRST |
| 700 | ``info rocker-ports`` *name*-ports |
| 701 | Show rocker ports. |
| 702 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 703 | |
| 704 | { |
| 705 | .name = "rocker-of-dpa-flows", |
| 706 | .args_type = "name:s,tbl_id:i?", |
| 707 | .params = "name [tbl_id]", |
| 708 | .help = "Show rocker OF-DPA flow tables", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 709 | .cmd = hmp_rocker_of_dpa_flows, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 710 | }, |
| 711 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 712 | SRST |
| 713 | ``info rocker-of-dpa-flows`` *name* [*tbl_id*] |
| 714 | Show rocker OF-DPA flow tables. |
| 715 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 716 | |
| 717 | { |
| 718 | .name = "rocker-of-dpa-groups", |
| 719 | .args_type = "name:s,type:i?", |
| 720 | .params = "name [type]", |
| 721 | .help = "Show rocker OF-DPA groups", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 722 | .cmd = hmp_rocker_of_dpa_groups, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 723 | }, |
| 724 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 725 | SRST |
| 726 | ``info rocker-of-dpa-groups`` *name* [*type*] |
| 727 | Show rocker OF-DPA groups. |
| 728 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 729 | |
| 730 | #if defined(TARGET_S390X) |
| 731 | { |
| 732 | .name = "skeys", |
| 733 | .args_type = "addr:l", |
| 734 | .params = "address", |
| 735 | .help = "Display the value of a storage key", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 736 | .cmd = hmp_info_skeys, |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 737 | }, |
| 738 | #endif |
| 739 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 740 | SRST |
| 741 | ``info skeys`` *address* |
| 742 | Display the value of a storage key (s390 only) |
| 743 | ERST |
Pavel Butsykin | da76ee7 | 2015-09-10 18:38:58 +0300 | [diff] [blame] | 744 | |
Claudio Imbrenda | f860d49 | 2016-08-15 18:44:04 +0200 | [diff] [blame] | 745 | #if defined(TARGET_S390X) |
| 746 | { |
| 747 | .name = "cmma", |
| 748 | .args_type = "addr:l,count:l?", |
| 749 | .params = "address [count]", |
| 750 | .help = "Display the values of the CMMA storage attributes for a range of pages", |
| 751 | .cmd = hmp_info_cmma, |
| 752 | }, |
| 753 | #endif |
| 754 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 755 | SRST |
| 756 | ``info cmma`` *address* |
| 757 | Display the values of the CMMA storage attributes for a range of |
| 758 | pages (s390 only) |
| 759 | ERST |
Claudio Imbrenda | f860d49 | 2016-08-15 18:44:04 +0200 | [diff] [blame] | 760 | |
Peter Xu | 4a6b52d | 2016-02-18 13:16:55 +0800 | [diff] [blame] | 761 | { |
| 762 | .name = "dump", |
| 763 | .args_type = "", |
| 764 | .params = "", |
| 765 | .help = "Display the latest dump status", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 766 | .cmd = hmp_info_dump, |
Peter Xu | 4a6b52d | 2016-02-18 13:16:55 +0800 | [diff] [blame] | 767 | }, |
| 768 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 769 | SRST |
| 770 | ``info dump`` |
| 771 | Display the latest dump status. |
| 772 | ERST |
Peter Xu | 4a6b52d | 2016-02-18 13:16:55 +0800 | [diff] [blame] | 773 | |
Bharata B Rao | d2d8d46 | 2016-06-10 06:29:07 +0530 | [diff] [blame] | 774 | { |
Peter Xu | be9b23c | 2017-05-12 12:17:41 +0800 | [diff] [blame] | 775 | .name = "ramblock", |
| 776 | .args_type = "", |
| 777 | .params = "", |
| 778 | .help = "Display system ramblock information", |
Daniel P. Berrangé | ca411b7 | 2021-09-08 10:35:43 +0100 | [diff] [blame] | 779 | .cmd_info_hrt = qmp_x_query_ramblock, |
Peter Xu | be9b23c | 2017-05-12 12:17:41 +0800 | [diff] [blame] | 780 | }, |
| 781 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 782 | SRST |
| 783 | ``info ramblock`` |
| 784 | Dump all the ramblocks of the system. |
| 785 | ERST |
Peter Xu | be9b23c | 2017-05-12 12:17:41 +0800 | [diff] [blame] | 786 | |
| 787 | { |
Bharata B Rao | d2d8d46 | 2016-06-10 06:29:07 +0530 | [diff] [blame] | 788 | .name = "hotpluggable-cpus", |
| 789 | .args_type = "", |
| 790 | .params = "", |
| 791 | .help = "Show information about hotpluggable CPUs", |
Marc-André Lureau | 2b9e357 | 2016-09-12 13:19:06 +0400 | [diff] [blame] | 792 | .cmd = hmp_hotpluggable_cpus, |
Dr. David Alan Gilbert | 8c7c7ec | 2018-06-20 16:39:45 +0100 | [diff] [blame] | 793 | .flags = "p", |
Bharata B Rao | d2d8d46 | 2016-06-10 06:29:07 +0530 | [diff] [blame] | 794 | }, |
| 795 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 796 | SRST |
| 797 | ``info hotpluggable-cpus`` |
| 798 | Show information about hotpluggable CPUs |
| 799 | ERST |
Bharata B Rao | d2d8d46 | 2016-06-10 06:29:07 +0530 | [diff] [blame] | 800 | |
Igor Mammedov | 39164c1 | 2017-02-16 15:15:37 -0800 | [diff] [blame] | 801 | { |
| 802 | .name = "vm-generation-id", |
| 803 | .args_type = "", |
| 804 | .params = "", |
| 805 | .help = "Show Virtual Machine Generation ID", |
| 806 | .cmd = hmp_info_vm_generation_id, |
| 807 | }, |
| 808 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 809 | SRST |
| 810 | ``info vm-generation-id`` |
| 811 | Show Virtual Machine Generation ID |
| 812 | ERST |
Vadim Galitsyn | d0f63c1 | 2017-08-29 17:30:22 +0200 | [diff] [blame] | 813 | |
| 814 | { |
| 815 | .name = "memory_size_summary", |
| 816 | .args_type = "", |
| 817 | .params = "", |
| 818 | .help = "show the amount of initially allocated and " |
| 819 | "present hotpluggable (if enabled) memory in bytes.", |
| 820 | .cmd = hmp_info_memory_size_summary, |
| 821 | }, |
| 822 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 823 | SRST |
| 824 | ``info memory_size_summary`` |
| 825 | Display the amount of initially allocated and present hotpluggable (if |
| 826 | enabled) memory in bytes. |
| 827 | ERST |
Markus Armbruster | a927251 | 2017-10-02 15:45:37 +0200 | [diff] [blame] | 828 | |
Brijesh Singh | 6303631 | 2018-03-08 06:48:47 -0600 | [diff] [blame] | 829 | #if defined(TARGET_I386) |
| 830 | { |
| 831 | .name = "sev", |
| 832 | .args_type = "", |
| 833 | .params = "", |
| 834 | .help = "show SEV information", |
| 835 | .cmd = hmp_info_sev, |
| 836 | }, |
| 837 | #endif |
| 838 | |
Peter Maydell | a12e74c | 2020-02-28 15:36:07 +0000 | [diff] [blame] | 839 | SRST |
| 840 | ``info sev`` |
| 841 | Show SEV information. |
| 842 | ERST |
Brijesh Singh | 6303631 | 2018-03-08 06:48:47 -0600 | [diff] [blame] | 843 | |
Pavel Dovgalyuk | e3b09ad | 2020-10-03 20:13:20 +0300 | [diff] [blame] | 844 | { |
| 845 | .name = "replay", |
| 846 | .args_type = "", |
| 847 | .params = "", |
| 848 | .help = "show record/replay information", |
| 849 | .cmd = hmp_info_replay, |
| 850 | }, |
Pavel Butsykin | 2cd8af2 | 2015-09-10 18:39:01 +0300 | [diff] [blame] | 851 | |
Pavel Dovgalyuk | e3b09ad | 2020-10-03 20:13:20 +0300 | [diff] [blame] | 852 | SRST |
| 853 | ``info replay`` |
| 854 | Display the record/replay information: mode and the current icount. |
| 855 | ERST |
Peter Xu | a4a571d | 2021-06-07 09:11:57 +0800 | [diff] [blame] | 856 | |
| 857 | { |
| 858 | .name = "dirty_rate", |
| 859 | .args_type = "", |
| 860 | .params = "", |
| 861 | .help = "show dirty rate information", |
| 862 | .cmd = hmp_info_dirty_rate, |
| 863 | }, |
| 864 | |
| 865 | SRST |
| 866 | ``info dirty_rate`` |
| 867 | Display the vcpu dirty rate information. |
| 868 | ERST |
Yang Zhong | 57d874c | 2021-09-10 18:22:56 +0800 | [diff] [blame] | 869 | |
Hyman Huang(黄勇) | f3b2e38 | 2022-06-26 01:38:36 +0800 | [diff] [blame] | 870 | { |
| 871 | .name = "vcpu_dirty_limit", |
| 872 | .args_type = "", |
| 873 | .params = "", |
| 874 | .help = "show dirty page limit information of all vCPU", |
| 875 | .cmd = hmp_info_vcpu_dirty_limit, |
| 876 | }, |
| 877 | |
| 878 | SRST |
| 879 | ``info vcpu_dirty_limit`` |
| 880 | Display the vcpu dirty page limit information. |
| 881 | ERST |
| 882 | |
Yang Zhong | 57d874c | 2021-09-10 18:22:56 +0800 | [diff] [blame] | 883 | #if defined(TARGET_I386) |
| 884 | { |
| 885 | .name = "sgx", |
| 886 | .args_type = "", |
| 887 | .params = "", |
| 888 | .help = "show intel SGX information", |
| 889 | .cmd = hmp_info_sgx, |
| 890 | }, |
| 891 | #endif |
| 892 | |
| 893 | SRST |
| 894 | ``info sgx`` |
| 895 | Show intel SGX information. |
| 896 | ERST |
Mark Cave-Ayland | 409e9f7 | 2022-03-05 15:09:53 +0000 | [diff] [blame] | 897 | |
Murilo Opsfelder Araujo | c9f8004 | 2022-05-10 20:54:39 -0300 | [diff] [blame] | 898 | #if defined(CONFIG_MOS6522) |
Mark Cave-Ayland | 409e9f7 | 2022-03-05 15:09:53 +0000 | [diff] [blame] | 899 | { |
| 900 | .name = "via", |
| 901 | .args_type = "", |
| 902 | .params = "", |
| 903 | .help = "show guest mos6522 VIA devices", |
| 904 | .cmd = hmp_info_via, |
| 905 | }, |
| 906 | #endif |
| 907 | |
| 908 | SRST |
| 909 | ``info via`` |
| 910 | Show guest mos6522 VIA devices. |
| 911 | ERST |
Mark Kanda | 433815f | 2022-04-26 12:17:35 +0200 | [diff] [blame] | 912 | |
| 913 | { |
| 914 | .name = "stats", |
Paolo Bonzini | 39cd0c7 | 2022-04-26 14:09:31 +0200 | [diff] [blame] | 915 | .args_type = "target:s,names:s?,provider:s?", |
| 916 | .params = "target [names] [provider]", |
| 917 | .help = "show statistics for the given target (vm or vcpu); optionally filter by" |
| 918 | "name (comma-separated list, or * for all) and provider", |
Mark Kanda | 433815f | 2022-04-26 12:17:35 +0200 | [diff] [blame] | 919 | .cmd = hmp_info_stats, |
| 920 | }, |
| 921 | |
| 922 | SRST |
| 923 | ``stats`` |
| 924 | Show runtime-collected statistics |
| 925 | ERST |
Laurent Vivier | 8a82879 | 2022-08-11 08:24:44 -0400 | [diff] [blame] | 926 | |
| 927 | { |
| 928 | .name = "virtio", |
| 929 | .args_type = "", |
| 930 | .params = "", |
| 931 | .help = "List all available virtio devices", |
| 932 | .cmd = hmp_virtio_query, |
| 933 | .flags = "p", |
| 934 | }, |
| 935 | |
| 936 | SRST |
| 937 | ``info virtio`` |
| 938 | List all available virtio devices |
| 939 | ERST |
| 940 | |
| 941 | { |
| 942 | .name = "virtio-status", |
| 943 | .args_type = "path:s", |
| 944 | .params = "path", |
| 945 | .help = "Display status of a given virtio device", |
| 946 | .cmd = hmp_virtio_status, |
| 947 | .flags = "p", |
| 948 | }, |
| 949 | |
| 950 | SRST |
| 951 | ``info virtio-status`` *path* |
| 952 | Display status of a given virtio device |
| 953 | ERST |
| 954 | |
| 955 | { |
| 956 | .name = "virtio-queue-status", |
| 957 | .args_type = "path:s,queue:i", |
| 958 | .params = "path queue", |
| 959 | .help = "Display status of a given virtio queue", |
| 960 | .cmd = hmp_virtio_queue_status, |
| 961 | .flags = "p", |
| 962 | }, |
| 963 | |
| 964 | SRST |
| 965 | ``info virtio-queue-status`` *path* *queue* |
| 966 | Display status of a given virtio queue |
| 967 | ERST |
| 968 | |
| 969 | { |
| 970 | .name = "virtio-vhost-queue-status", |
| 971 | .args_type = "path:s,queue:i", |
| 972 | .params = "path queue", |
| 973 | .help = "Display status of a given vhost queue", |
| 974 | .cmd = hmp_vhost_queue_status, |
| 975 | .flags = "p", |
| 976 | }, |
| 977 | |
| 978 | SRST |
| 979 | ``info virtio-vhost-queue-status`` *path* *queue* |
| 980 | Display status of a given vhost queue |
| 981 | ERST |
| 982 | |
| 983 | { |
| 984 | .name = "virtio-queue-element", |
| 985 | .args_type = "path:s,queue:i,index:i?", |
| 986 | .params = "path queue [index]", |
| 987 | .help = "Display element of a given virtio queue", |
| 988 | .cmd = hmp_virtio_queue_element, |
| 989 | .flags = "p", |
| 990 | }, |
| 991 | |
| 992 | SRST |
| 993 | ``info virtio-queue-element`` *path* *queue* [*index*] |
| 994 | Display element of a given virtio queue |
| 995 | ERST |