Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1 | HXCOMM Use DEFHEADING() to define headings in both help text and texi |
| 2 | HXCOMM Text between STEXI and ETEXI are copied to texi version and |
| 3 | HXCOMM discarded from C version |
| 4 | HXCOMM DEF(command, args, callback, arg_string, help) is used to construct |
| 5 | HXCOMM monitor commands |
| 6 | HXCOMM HXCOMM can be used for comments, discarded from both texi and C |
| 7 | |
| 8 | STEXI |
| 9 | @table @option |
| 10 | ETEXI |
| 11 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 12 | { |
| 13 | .name = "help|?", |
| 14 | .args_type = "name:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 15 | .params = "[cmd]", |
| 16 | .help = "show the help", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 17 | .mhandler.cmd = do_help_cmd, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 18 | }, |
| 19 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 20 | STEXI |
| 21 | @item help or ? [@var{cmd}] |
| 22 | Show the help for all commands or just for command @var{cmd}. |
| 23 | ETEXI |
| 24 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 25 | { |
| 26 | .name = "commit", |
| 27 | .args_type = "device:B", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 28 | .params = "device|all", |
| 29 | .help = "commit changes to the disk images (if -snapshot is used) or backing files", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 30 | .mhandler.cmd = do_commit, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 31 | }, |
| 32 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 33 | STEXI |
| 34 | @item commit |
| 35 | Commit changes to the disk images (if -snapshot is used) or backing files. |
| 36 | ETEXI |
| 37 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 38 | { |
| 39 | .name = "info", |
| 40 | .args_type = "item:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 41 | .params = "[subcommand]", |
| 42 | .help = "show various information about the system state", |
Luiz Capitulino | 13c7425 | 2009-10-07 13:41:55 -0300 | [diff] [blame] | 43 | .user_print = monitor_user_noop, |
| 44 | .mhandler.cmd_new = do_info, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 45 | }, |
| 46 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 47 | STEXI |
| 48 | @item info @var{subcommand} |
| 49 | Show various information about the system state. |
| 50 | |
| 51 | @table @option |
| 52 | @item info version |
| 53 | show the version of QEMU |
| 54 | @item info network |
| 55 | show the various VLANs and the associated devices |
| 56 | @item info chardev |
| 57 | show the character devices |
| 58 | @item info block |
| 59 | show the block devices |
| 60 | @item info block |
| 61 | show block device statistics |
| 62 | @item info registers |
| 63 | show the cpu registers |
| 64 | @item info cpus |
| 65 | show infos for each CPU |
| 66 | @item info history |
| 67 | show the command line history |
| 68 | @item info irq |
| 69 | show the interrupts statistics (if available) |
| 70 | @item info pic |
| 71 | show i8259 (PIC) state |
| 72 | @item info pci |
| 73 | show emulated PCI device info |
| 74 | @item info tlb |
| 75 | show virtual to physical memory mappings (i386 only) |
| 76 | @item info mem |
| 77 | show the active virtual memory mappings (i386 only) |
| 78 | @item info hpet |
| 79 | show state of HPET (i386 only) |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 80 | @item info kvm |
| 81 | show KVM information |
| 82 | @item info usb |
| 83 | show USB devices plugged on the virtual USB hub |
| 84 | @item info usbhost |
| 85 | show all USB host devices |
| 86 | @item info profile |
| 87 | show profiling information |
| 88 | @item info capture |
| 89 | show information about active capturing |
| 90 | @item info snapshots |
| 91 | show list of VM snapshots |
| 92 | @item info status |
| 93 | show the current VM status (running|paused) |
| 94 | @item info pcmcia |
| 95 | show guest PCMCIA status |
| 96 | @item info mice |
| 97 | show which guest mouse is receiving events |
| 98 | @item info vnc |
| 99 | show the vnc server status |
| 100 | @item info name |
| 101 | show the current VM name |
| 102 | @item info uuid |
| 103 | show the current VM UUID |
| 104 | @item info cpustats |
| 105 | show CPU statistics |
Jan Kiszka | 6dbe553 | 2009-06-24 14:42:29 +0200 | [diff] [blame] | 106 | @item info usernet |
| 107 | show user network stack connection states |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 108 | @item info migrate |
| 109 | show migration status |
| 110 | @item info balloon |
| 111 | show balloon information |
| 112 | @item info qtree |
| 113 | show device tree |
| 114 | @end table |
| 115 | ETEXI |
| 116 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 117 | { |
| 118 | .name = "q|quit", |
| 119 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 120 | .params = "", |
| 121 | .help = "quit the emulator", |
Luiz Capitulino | b223f35 | 2009-10-07 13:41:56 -0300 | [diff] [blame] | 122 | .user_print = monitor_user_noop, |
| 123 | .mhandler.cmd_new = do_quit, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 124 | }, |
| 125 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 126 | STEXI |
| 127 | @item q or quit |
| 128 | Quit the emulator. |
| 129 | ETEXI |
| 130 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 131 | { |
| 132 | .name = "eject", |
Luiz Capitulino | 78d714e | 2009-12-14 18:53:21 -0200 | [diff] [blame] | 133 | .args_type = "force:-f,device:B", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 134 | .params = "[-f] device", |
| 135 | .help = "eject a removable medium (use -f to force it)", |
Luiz Capitulino | e1c923a | 2009-10-16 12:23:49 -0300 | [diff] [blame] | 136 | .user_print = monitor_user_noop, |
| 137 | .mhandler.cmd_new = do_eject, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 138 | }, |
| 139 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 140 | STEXI |
| 141 | @item eject [-f] @var{device} |
| 142 | Eject a removable medium (use -f to force it). |
| 143 | ETEXI |
| 144 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 145 | { |
| 146 | .name = "change", |
| 147 | .args_type = "device:B,target:F,arg:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 148 | .params = "device filename [format]", |
| 149 | .help = "change a removable medium, optional format", |
Markus Armbruster | ec3b82a | 2009-12-07 21:37:09 +0100 | [diff] [blame] | 150 | .user_print = monitor_user_noop, |
| 151 | .mhandler.cmd_new = do_change, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 152 | }, |
| 153 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 154 | STEXI |
| 155 | @item change @var{device} @var{setting} |
| 156 | |
| 157 | Change the configuration of a device. |
| 158 | |
| 159 | @table @option |
| 160 | @item change @var{diskdevice} @var{filename} [@var{format}] |
| 161 | Change the medium for a removable disk device to point to @var{filename}. eg |
| 162 | |
| 163 | @example |
| 164 | (qemu) change ide1-cd0 /path/to/some.iso |
| 165 | @end example |
| 166 | |
| 167 | @var{format} is optional. |
| 168 | |
| 169 | @item change vnc @var{display},@var{options} |
| 170 | Change the configuration of the VNC server. The valid syntax for @var{display} |
| 171 | and @var{options} are described at @ref{sec_invocation}. eg |
| 172 | |
| 173 | @example |
| 174 | (qemu) change vnc localhost:1 |
| 175 | @end example |
| 176 | |
| 177 | @item change vnc password [@var{password}] |
| 178 | |
| 179 | Change the password associated with the VNC server. If the new password is not |
| 180 | supplied, the monitor will prompt for it to be entered. VNC passwords are only |
| 181 | significant up to 8 letters. eg |
| 182 | |
| 183 | @example |
| 184 | (qemu) change vnc password |
| 185 | Password: ******** |
| 186 | @end example |
| 187 | |
| 188 | @end table |
| 189 | ETEXI |
| 190 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 191 | { |
| 192 | .name = "screendump", |
| 193 | .args_type = "filename:F", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 194 | .params = "filename", |
| 195 | .help = "save screen into PPM image 'filename'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 196 | .mhandler.cmd = do_screen_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 197 | }, |
| 198 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 199 | STEXI |
| 200 | @item screendump @var{filename} |
| 201 | Save screen into PPM image @var{filename}. |
| 202 | ETEXI |
| 203 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 204 | { |
| 205 | .name = "logfile", |
| 206 | .args_type = "filename:F", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 207 | .params = "filename", |
| 208 | .help = "output logs to 'filename'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 209 | .mhandler.cmd = do_logfile, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 210 | }, |
| 211 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 212 | STEXI |
| 213 | @item logfile @var{filename} |
| 214 | Output logs to @var{filename}. |
| 215 | ETEXI |
| 216 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 217 | { |
| 218 | .name = "log", |
| 219 | .args_type = "items:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 220 | .params = "item1[,...]", |
| 221 | .help = "activate logging of the specified items to '/tmp/qemu.log'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 222 | .mhandler.cmd = do_log, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 223 | }, |
| 224 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 225 | STEXI |
| 226 | @item log @var{item1}[,...] |
| 227 | Activate logging of the specified items to @file{/tmp/qemu.log}. |
| 228 | ETEXI |
| 229 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 230 | { |
| 231 | .name = "savevm", |
| 232 | .args_type = "name:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 233 | .params = "[tag|id]", |
| 234 | .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 235 | .mhandler.cmd = do_savevm, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 236 | }, |
| 237 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 238 | STEXI |
| 239 | @item savevm [@var{tag}|@var{id}] |
| 240 | Create a snapshot of the whole virtual machine. If @var{tag} is |
| 241 | provided, it is used as human readable identifier. If there is already |
| 242 | a snapshot with the same tag or ID, it is replaced. More info at |
| 243 | @ref{vm_snapshots}. |
| 244 | ETEXI |
| 245 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 246 | { |
| 247 | .name = "loadvm", |
| 248 | .args_type = "name:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 249 | .params = "tag|id", |
| 250 | .help = "restore a VM snapshot from its tag or id", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 251 | .mhandler.cmd = do_loadvm, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 252 | }, |
| 253 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 254 | STEXI |
| 255 | @item loadvm @var{tag}|@var{id} |
| 256 | Set the whole virtual machine to the snapshot identified by the tag |
| 257 | @var{tag} or the unique snapshot ID @var{id}. |
| 258 | ETEXI |
| 259 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 260 | { |
| 261 | .name = "delvm", |
| 262 | .args_type = "name:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 263 | .params = "tag|id", |
| 264 | .help = "delete a VM snapshot from its tag or id", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 265 | .mhandler.cmd = do_delvm, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 266 | }, |
| 267 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 268 | STEXI |
| 269 | @item delvm @var{tag}|@var{id} |
| 270 | Delete the snapshot identified by @var{tag} or @var{id}. |
| 271 | ETEXI |
| 272 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 273 | { |
| 274 | .name = "singlestep", |
| 275 | .args_type = "option:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 276 | .params = "[on|off]", |
| 277 | .help = "run emulation in singlestep mode or switch to normal mode", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 278 | .mhandler.cmd = do_singlestep, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 279 | }, |
| 280 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 281 | STEXI |
| 282 | @item singlestep [off] |
| 283 | Run the emulation in single step mode. |
| 284 | If called with option off, the emulation returns to normal mode. |
| 285 | ETEXI |
| 286 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 287 | { |
| 288 | .name = "stop", |
| 289 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 290 | .params = "", |
| 291 | .help = "stop emulation", |
Luiz Capitulino | e0c97bd | 2009-10-07 13:41:57 -0300 | [diff] [blame] | 292 | .user_print = monitor_user_noop, |
| 293 | .mhandler.cmd_new = do_stop, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 294 | }, |
| 295 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 296 | STEXI |
| 297 | @item stop |
| 298 | Stop emulation. |
| 299 | ETEXI |
| 300 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 301 | { |
| 302 | .name = "c|cont", |
| 303 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 304 | .params = "", |
| 305 | .help = "resume emulation", |
Luiz Capitulino | a1f896a | 2009-10-07 13:42:00 -0300 | [diff] [blame] | 306 | .user_print = monitor_user_noop, |
| 307 | .mhandler.cmd_new = do_cont, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 308 | }, |
| 309 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 310 | STEXI |
| 311 | @item c or cont |
| 312 | Resume emulation. |
| 313 | ETEXI |
| 314 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 315 | { |
| 316 | .name = "gdbserver", |
| 317 | .args_type = "device:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 318 | .params = "[device]", |
| 319 | .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 320 | .mhandler.cmd = do_gdbserver, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 321 | }, |
| 322 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 323 | STEXI |
| 324 | @item gdbserver [@var{port}] |
| 325 | Start gdbserver session (default @var{port}=1234) |
| 326 | ETEXI |
| 327 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 328 | { |
| 329 | .name = "x", |
| 330 | .args_type = "fmt:/,addr:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 331 | .params = "/fmt addr", |
| 332 | .help = "virtual memory dump starting at 'addr'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 333 | .mhandler.cmd = do_memory_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 334 | }, |
| 335 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 336 | STEXI |
| 337 | @item x/fmt @var{addr} |
| 338 | Virtual memory dump starting at @var{addr}. |
| 339 | ETEXI |
| 340 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 341 | { |
| 342 | .name = "xp", |
| 343 | .args_type = "fmt:/,addr:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 344 | .params = "/fmt addr", |
| 345 | .help = "physical memory dump starting at 'addr'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 346 | .mhandler.cmd = do_physical_memory_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 347 | }, |
| 348 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 349 | STEXI |
| 350 | @item xp /@var{fmt} @var{addr} |
| 351 | Physical memory dump starting at @var{addr}. |
| 352 | |
| 353 | @var{fmt} is a format which tells the command how to format the |
| 354 | data. Its syntax is: @option{/@{count@}@{format@}@{size@}} |
| 355 | |
| 356 | @table @var |
| 357 | @item count |
| 358 | is the number of items to be dumped. |
| 359 | |
| 360 | @item format |
| 361 | can be x (hex), d (signed decimal), u (unsigned decimal), o (octal), |
| 362 | c (char) or i (asm instruction). |
| 363 | |
| 364 | @item size |
| 365 | can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86, |
| 366 | @code{h} or @code{w} can be specified with the @code{i} format to |
| 367 | respectively select 16 or 32 bit code instruction size. |
| 368 | |
| 369 | @end table |
| 370 | |
| 371 | Examples: |
| 372 | @itemize |
| 373 | @item |
| 374 | Dump 10 instructions at the current instruction pointer: |
| 375 | @example |
| 376 | (qemu) x/10i $eip |
| 377 | 0x90107063: ret |
| 378 | 0x90107064: sti |
| 379 | 0x90107065: lea 0x0(%esi,1),%esi |
| 380 | 0x90107069: lea 0x0(%edi,1),%edi |
| 381 | 0x90107070: ret |
| 382 | 0x90107071: jmp 0x90107080 |
| 383 | 0x90107073: nop |
| 384 | 0x90107074: nop |
| 385 | 0x90107075: nop |
| 386 | 0x90107076: nop |
| 387 | @end example |
| 388 | |
| 389 | @item |
| 390 | Dump 80 16 bit values at the start of the video memory. |
| 391 | @smallexample |
| 392 | (qemu) xp/80hx 0xb8000 |
| 393 | 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42 |
| 394 | 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41 |
| 395 | 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72 |
| 396 | 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73 |
| 397 | 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20 |
| 398 | 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720 |
| 399 | 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 400 | 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 401 | 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 402 | 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 403 | @end smallexample |
| 404 | @end itemize |
| 405 | ETEXI |
| 406 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 407 | { |
| 408 | .name = "p|print", |
| 409 | .args_type = "fmt:/,val:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 410 | .params = "/fmt expr", |
| 411 | .help = "print expression value (use $reg for CPU register access)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 412 | .mhandler.cmd = do_print, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 413 | }, |
| 414 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 415 | STEXI |
| 416 | @item p or print/@var{fmt} @var{expr} |
| 417 | |
| 418 | Print expression value. Only the @var{format} part of @var{fmt} is |
| 419 | used. |
| 420 | ETEXI |
| 421 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 422 | { |
| 423 | .name = "i", |
| 424 | .args_type = "fmt:/,addr:i,index:i.", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 425 | .params = "/fmt addr", |
| 426 | .help = "I/O port read", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 427 | .mhandler.cmd = do_ioport_read, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 428 | }, |
| 429 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 430 | STEXI |
| 431 | Read I/O port. |
| 432 | ETEXI |
| 433 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 434 | { |
| 435 | .name = "o", |
| 436 | .args_type = "fmt:/,addr:i,val:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 437 | .params = "/fmt addr value", |
| 438 | .help = "I/O port write", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 439 | .mhandler.cmd = do_ioport_write, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 440 | }, |
| 441 | |
Jan Kiszka | f114784 | 2009-07-14 10:20:11 +0200 | [diff] [blame] | 442 | STEXI |
| 443 | Write to I/O port. |
| 444 | ETEXI |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 445 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 446 | { |
| 447 | .name = "sendkey", |
| 448 | .args_type = "string:s,hold_time:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 449 | .params = "keys [hold_ms]", |
| 450 | .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 451 | .mhandler.cmd = do_sendkey, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 452 | }, |
| 453 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 454 | STEXI |
| 455 | @item sendkey @var{keys} |
| 456 | |
| 457 | Send @var{keys} to the emulator. @var{keys} could be the name of the |
| 458 | key or @code{#} followed by the raw value in either decimal or hexadecimal |
| 459 | format. Use @code{-} to press several keys simultaneously. Example: |
| 460 | @example |
| 461 | sendkey ctrl-alt-f1 |
| 462 | @end example |
| 463 | |
| 464 | This command is useful to send keys that your graphical user interface |
| 465 | intercepts at low level, such as @code{ctrl-alt-f1} in X Window. |
| 466 | ETEXI |
| 467 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 468 | { |
| 469 | .name = "system_reset", |
| 470 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 471 | .params = "", |
| 472 | .help = "reset the system", |
Luiz Capitulino | c80d259 | 2009-10-07 13:41:58 -0300 | [diff] [blame] | 473 | .user_print = monitor_user_noop, |
| 474 | .mhandler.cmd_new = do_system_reset, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 475 | }, |
| 476 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 477 | STEXI |
| 478 | @item system_reset |
| 479 | |
| 480 | Reset the system. |
| 481 | ETEXI |
| 482 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 483 | { |
| 484 | .name = "system_powerdown", |
| 485 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 486 | .params = "", |
| 487 | .help = "send system power down event", |
Luiz Capitulino | 4307666 | 2009-10-07 13:41:59 -0300 | [diff] [blame] | 488 | .user_print = monitor_user_noop, |
| 489 | .mhandler.cmd_new = do_system_powerdown, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 490 | }, |
| 491 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 492 | STEXI |
| 493 | @item system_powerdown |
| 494 | |
| 495 | Power down the system (if supported). |
| 496 | ETEXI |
| 497 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 498 | { |
| 499 | .name = "sum", |
| 500 | .args_type = "start:i,size:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 501 | .params = "addr size", |
| 502 | .help = "compute the checksum of a memory region", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 503 | .mhandler.cmd = do_sum, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 504 | }, |
| 505 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 506 | STEXI |
| 507 | @item sum @var{addr} @var{size} |
| 508 | |
| 509 | Compute the checksum of a memory region. |
| 510 | ETEXI |
| 511 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 512 | { |
| 513 | .name = "usb_add", |
| 514 | .args_type = "devname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 515 | .params = "device", |
| 516 | .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 517 | .mhandler.cmd = do_usb_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 518 | }, |
| 519 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 520 | STEXI |
| 521 | @item usb_add @var{devname} |
| 522 | |
| 523 | Add the USB device @var{devname}. For details of available devices see |
| 524 | @ref{usb_devices} |
| 525 | ETEXI |
| 526 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 527 | { |
| 528 | .name = "usb_del", |
| 529 | .args_type = "devname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 530 | .params = "device", |
| 531 | .help = "remove USB device 'bus.addr'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 532 | .mhandler.cmd = do_usb_del, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 533 | }, |
| 534 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 535 | STEXI |
| 536 | @item usb_del @var{devname} |
| 537 | |
| 538 | Remove the USB device @var{devname} from the QEMU virtual USB |
| 539 | hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor |
| 540 | command @code{info usb} to see the devices you can remove. |
| 541 | ETEXI |
| 542 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 543 | { |
| 544 | .name = "device_add", |
| 545 | .args_type = "config:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 546 | .params = "device", |
| 547 | .help = "add device, like -device on the command line", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 548 | .mhandler.cmd = do_device_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 549 | }, |
| 550 | |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 551 | STEXI |
| 552 | @item device_add @var{config} |
| 553 | |
| 554 | Add device. |
| 555 | ETEXI |
| 556 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 557 | { |
| 558 | .name = "device_del", |
| 559 | .args_type = "id:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 560 | .params = "device", |
| 561 | .help = "remove device", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 562 | .mhandler.cmd = do_device_del, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 563 | }, |
| 564 | |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 565 | STEXI |
| 566 | @item device_del @var{id} |
| 567 | |
| 568 | Remove device @var{id}. |
| 569 | ETEXI |
| 570 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 571 | { |
| 572 | .name = "cpu", |
| 573 | .args_type = "index:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 574 | .params = "index", |
| 575 | .help = "set the default CPU", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 576 | .mhandler.cmd = do_cpu_set, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 577 | }, |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 578 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 579 | STEXI |
| 580 | Set the default CPU. |
| 581 | ETEXI |
| 582 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 583 | { |
| 584 | .name = "mouse_move", |
| 585 | .args_type = "dx_str:s,dy_str:s,dz_str:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 586 | .params = "dx dy [dz]", |
| 587 | .help = "send mouse move events", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 588 | .mhandler.cmd = do_mouse_move, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 589 | }, |
| 590 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 591 | STEXI |
| 592 | @item mouse_move @var{dx} @var{dy} [@var{dz}] |
| 593 | Move the active mouse to the specified coordinates @var{dx} @var{dy} |
| 594 | with optional scroll axis @var{dz}. |
| 595 | ETEXI |
| 596 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 597 | { |
| 598 | .name = "mouse_button", |
| 599 | .args_type = "button_state:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 600 | .params = "state", |
| 601 | .help = "change mouse button state (1=L, 2=M, 4=R)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 602 | .mhandler.cmd = do_mouse_button, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 603 | }, |
| 604 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 605 | STEXI |
| 606 | @item mouse_button @var{val} |
| 607 | Change the active mouse button state @var{val} (1=L, 2=M, 4=R). |
| 608 | ETEXI |
| 609 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 610 | { |
| 611 | .name = "mouse_set", |
| 612 | .args_type = "index:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 613 | .params = "index", |
| 614 | .help = "set which mouse device receives events", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 615 | .mhandler.cmd = do_mouse_set, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 616 | }, |
| 617 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 618 | STEXI |
| 619 | @item mouse_set @var{index} |
| 620 | Set which mouse device receives events at given @var{index}, index |
| 621 | can be obtained with |
| 622 | @example |
| 623 | info mice |
| 624 | @end example |
| 625 | ETEXI |
| 626 | |
| 627 | #ifdef HAS_AUDIO |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 628 | { |
| 629 | .name = "wavcapture", |
| 630 | .args_type = "path:F,freq:i?,bits:i?,nchannels:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 631 | .params = "path [frequency [bits [channels]]]", |
| 632 | .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 633 | .mhandler.cmd = do_wav_capture, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 634 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 635 | #endif |
| 636 | STEXI |
| 637 | @item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]] |
| 638 | Capture audio into @var{filename}. Using sample rate @var{frequency} |
| 639 | bits per sample @var{bits} and number of channels @var{channels}. |
| 640 | |
| 641 | Defaults: |
| 642 | @itemize @minus |
| 643 | @item Sample rate = 44100 Hz - CD quality |
| 644 | @item Bits = 16 |
| 645 | @item Number of channels = 2 - Stereo |
| 646 | @end itemize |
| 647 | ETEXI |
| 648 | |
| 649 | #ifdef HAS_AUDIO |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 650 | { |
| 651 | .name = "stopcapture", |
| 652 | .args_type = "n:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 653 | .params = "capture index", |
| 654 | .help = "stop capture", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 655 | .mhandler.cmd = do_stop_capture, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 656 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 657 | #endif |
| 658 | STEXI |
| 659 | @item stopcapture @var{index} |
| 660 | Stop capture with a given @var{index}, index can be obtained with |
| 661 | @example |
| 662 | info capture |
| 663 | @end example |
| 664 | ETEXI |
| 665 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 666 | { |
| 667 | .name = "memsave", |
| 668 | .args_type = "val:l,size:i,filename:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 669 | .params = "addr size file", |
| 670 | .help = "save to disk virtual memory dump starting at 'addr' of size 'size'", |
Luiz Capitulino | 57e0945 | 2009-10-16 12:23:43 -0300 | [diff] [blame] | 671 | .user_print = monitor_user_noop, |
| 672 | .mhandler.cmd_new = do_memory_save, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 673 | }, |
| 674 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 675 | STEXI |
| 676 | @item memsave @var{addr} @var{size} @var{file} |
| 677 | save to disk virtual memory dump starting at @var{addr} of size @var{size}. |
| 678 | ETEXI |
| 679 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 680 | { |
| 681 | .name = "pmemsave", |
| 682 | .args_type = "val:l,size:i,filename:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 683 | .params = "addr size file", |
| 684 | .help = "save to disk physical memory dump starting at 'addr' of size 'size'", |
Luiz Capitulino | 18f5a8b | 2009-10-16 12:23:44 -0300 | [diff] [blame] | 685 | .user_print = monitor_user_noop, |
| 686 | .mhandler.cmd_new = do_physical_memory_save, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 687 | }, |
| 688 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 689 | STEXI |
| 690 | @item pmemsave @var{addr} @var{size} @var{file} |
| 691 | save to disk physical memory dump starting at @var{addr} of size @var{size}. |
| 692 | ETEXI |
| 693 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 694 | { |
| 695 | .name = "boot_set", |
| 696 | .args_type = "bootdevice:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 697 | .params = "bootdevice", |
| 698 | .help = "define new values for the boot device list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 699 | .mhandler.cmd = do_boot_set, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 700 | }, |
| 701 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 702 | STEXI |
| 703 | @item boot_set @var{bootdevicelist} |
| 704 | |
| 705 | Define new values for the boot device list. Those values will override |
| 706 | the values specified on the command line through the @code{-boot} option. |
| 707 | |
| 708 | The values that can be specified here depend on the machine type, but are |
| 709 | the same that can be specified in the @code{-boot} command line option. |
| 710 | ETEXI |
| 711 | |
| 712 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 713 | { |
| 714 | .name = "nmi", |
| 715 | .args_type = "cpu_index:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 716 | .params = "cpu", |
| 717 | .help = "inject an NMI on the given CPU", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 718 | .mhandler.cmd = do_inject_nmi, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 719 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 720 | #endif |
| 721 | STEXI |
| 722 | @item nmi @var{cpu} |
| 723 | Inject an NMI on the given CPU (x86 only). |
| 724 | ETEXI |
| 725 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 726 | { |
| 727 | .name = "migrate", |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 728 | .args_type = "detach:-d,blk:-b,inc:-i,uri:s", |
| 729 | .params = "[-d] [-b] [-i] uri", |
| 730 | .help = "migrate to URI (using -d to not wait for completion)" |
| 731 | "\n\t\t\t -b for migration without shared storage with" |
| 732 | " full copy of disk\n\t\t\t -i for migration without " |
| 733 | "shared storage with incremental copy of disk " |
| 734 | "(base image shared between src and destination)", |
| 735 | .user_print = monitor_user_noop, |
| 736 | .mhandler.cmd_new = do_migrate, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 737 | }, |
| 738 | |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 739 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 740 | STEXI |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 741 | @item migrate [-d] [-b] [-i] @var{uri} |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 742 | Migrate to @var{uri} (using -d to not wait for completion). |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 743 | -b for migration with full copy of disk |
| 744 | -i for migration with incremental copy of disk (base image is shared) |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 745 | ETEXI |
| 746 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 747 | { |
| 748 | .name = "migrate_cancel", |
| 749 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 750 | .params = "", |
| 751 | .help = "cancel the current VM migration", |
Luiz Capitulino | 911d296 | 2009-10-16 12:23:47 -0300 | [diff] [blame] | 752 | .user_print = monitor_user_noop, |
| 753 | .mhandler.cmd_new = do_migrate_cancel, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 754 | }, |
| 755 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 756 | STEXI |
| 757 | @item migrate_cancel |
| 758 | Cancel the current VM migration. |
| 759 | ETEXI |
| 760 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 761 | { |
| 762 | .name = "migrate_set_speed", |
| 763 | .args_type = "value:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 764 | .params = "value", |
| 765 | .help = "set maximum speed (in bytes) for migrations", |
Anthony Liguori | 13232b8 | 2009-12-18 14:51:49 -0600 | [diff] [blame] | 766 | .mhandler.cmd = do_migrate_set_speed, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 767 | }, |
| 768 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 769 | STEXI |
| 770 | @item migrate_set_speed @var{value} |
| 771 | Set maximum speed to @var{value} (in bytes) for migrations. |
| 772 | ETEXI |
| 773 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 774 | { |
| 775 | .name = "migrate_set_downtime", |
| 776 | .args_type = "value:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 777 | .params = "value", |
| 778 | .help = "set maximum tolerated downtime (in seconds) for migrations", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 779 | .mhandler.cmd = do_migrate_set_downtime, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 780 | }, |
Glauber Costa | 2ea4295 | 2009-05-28 15:22:58 -0400 | [diff] [blame] | 781 | |
| 782 | STEXI |
| 783 | @item migrate_set_downtime @var{second} |
| 784 | Set maximum tolerated downtime (in seconds) for migration. |
| 785 | ETEXI |
| 786 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 787 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 788 | { |
| 789 | .name = "drive_add", |
| 790 | .args_type = "pci_addr:s,opts:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 791 | .params = "[[<domain>:]<bus>:]<slot>\n" |
| 792 | "[file=file][,if=type][,bus=n]\n" |
| 793 | "[,unit=m][,media=d][index=i]\n" |
| 794 | "[,cyls=c,heads=h,secs=s[,trans=t]]\n" |
| 795 | "[snapshot=on|off][,cache=on|off]", |
| 796 | .help = "add drive to PCI storage controller", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 797 | .mhandler.cmd = drive_hot_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 798 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 799 | #endif |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 800 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 801 | STEXI |
| 802 | @item drive_add |
| 803 | Add drive to PCI storage controller. |
| 804 | ETEXI |
| 805 | |
| 806 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 807 | { |
| 808 | .name = "pci_add", |
| 809 | .args_type = "pci_addr:s,type:s,opts:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 810 | .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", |
| 811 | .help = "hot-add PCI device", |
Luiz Capitulino | 7a344f7 | 2009-12-10 17:16:09 -0200 | [diff] [blame] | 812 | .user_print = pci_device_hot_add_print, |
| 813 | .mhandler.cmd_new = pci_device_hot_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 814 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 815 | #endif |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 816 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 817 | STEXI |
| 818 | @item pci_add |
| 819 | Hot-add PCI device. |
| 820 | ETEXI |
| 821 | |
| 822 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 823 | { |
| 824 | .name = "pci_del", |
| 825 | .args_type = "pci_addr:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 826 | .params = "[[<domain>:]<bus>:]<slot>", |
| 827 | .help = "hot remove PCI device", |
Luiz Capitulino | 6848d82 | 2009-10-16 12:23:48 -0300 | [diff] [blame] | 828 | .user_print = monitor_user_noop, |
| 829 | .mhandler.cmd_new = do_pci_device_hot_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 830 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 831 | #endif |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 832 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 833 | STEXI |
| 834 | @item pci_del |
| 835 | Hot remove PCI device. |
| 836 | ETEXI |
| 837 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 838 | { |
| 839 | .name = "host_net_add", |
| 840 | .args_type = "device:s,opts:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 841 | .params = "tap|user|socket|vde|dump [options]", |
| 842 | .help = "add host VLAN client", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 843 | .mhandler.cmd = net_host_device_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 844 | }, |
| 845 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 846 | STEXI |
| 847 | @item host_net_add |
| 848 | Add host VLAN client. |
| 849 | ETEXI |
| 850 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 851 | { |
| 852 | .name = "host_net_remove", |
| 853 | .args_type = "vlan_id:i,device:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 854 | .params = "vlan_id name", |
| 855 | .help = "remove host VLAN client", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 856 | .mhandler.cmd = net_host_device_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 857 | }, |
| 858 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 859 | STEXI |
| 860 | @item host_net_remove |
| 861 | Remove host VLAN client. |
| 862 | ETEXI |
| 863 | |
| 864 | #ifdef CONFIG_SLIRP |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 865 | { |
| 866 | .name = "hostfwd_add", |
| 867 | .args_type = "arg1:s,arg2:s?,arg3:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 868 | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport", |
| 869 | .help = "redirect TCP or UDP connections from host to guest (requires -net user)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 870 | .mhandler.cmd = net_slirp_hostfwd_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 871 | }, |
| 872 | |
| 873 | { |
| 874 | .name = "hostfwd_remove", |
| 875 | .args_type = "arg1:s,arg2:s?,arg3:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 876 | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport", |
| 877 | .help = "remove host-to-guest TCP or UDP redirection", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 878 | .mhandler.cmd = net_slirp_hostfwd_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 879 | }, |
| 880 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 881 | #endif |
| 882 | STEXI |
| 883 | @item host_net_redir |
| 884 | Redirect TCP or UDP connections from host to guest (requires -net user). |
| 885 | ETEXI |
| 886 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 887 | { |
| 888 | .name = "balloon", |
Luiz Capitulino | 3b0bd6e | 2009-12-18 13:25:05 -0200 | [diff] [blame] | 889 | .args_type = "value:M", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 890 | .params = "target", |
| 891 | .help = "request VM to change it's memory allocation (in MB)", |
Luiz Capitulino | 83fb1de | 2009-10-07 13:42:01 -0300 | [diff] [blame] | 892 | .user_print = monitor_user_noop, |
| 893 | .mhandler.cmd_new = do_balloon, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 894 | }, |
| 895 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 896 | STEXI |
| 897 | @item balloon @var{value} |
| 898 | Request VM to change its memory allocation to @var{value} (in MB). |
| 899 | ETEXI |
| 900 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 901 | { |
| 902 | .name = "set_link", |
| 903 | .args_type = "name:s,up_or_down:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 904 | .params = "name up|down", |
| 905 | .help = "change the link status of a network adapter", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 906 | .mhandler.cmd = do_set_link, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 907 | }, |
| 908 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 909 | STEXI |
| 910 | @item set_link @var{name} [up|down] |
| 911 | Set link @var{name} up or down. |
| 912 | ETEXI |
| 913 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 914 | { |
| 915 | .name = "watchdog_action", |
| 916 | .args_type = "action:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 917 | .params = "[reset|shutdown|poweroff|pause|debug|none]", |
| 918 | .help = "change watchdog action", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 919 | .mhandler.cmd = do_watchdog_action, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 920 | }, |
| 921 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 922 | STEXI |
| 923 | @item watchdog_action |
| 924 | Change watchdog action. |
| 925 | ETEXI |
| 926 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 927 | { |
| 928 | .name = "acl_show", |
| 929 | .args_type = "aclname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 930 | .params = "aclname", |
| 931 | .help = "list rules in the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 932 | .mhandler.cmd = do_acl_show, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 933 | }, |
| 934 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 935 | STEXI |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 936 | @item acl_show @var{aclname} |
| 937 | List all the matching rules in the access control list, and the default |
| 938 | policy. There are currently two named access control lists, |
| 939 | @var{vnc.x509dname} and @var{vnc.username} matching on the x509 client |
| 940 | certificate distinguished name, and SASL username respectively. |
| 941 | ETEXI |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 942 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 943 | { |
| 944 | .name = "acl_policy", |
| 945 | .args_type = "aclname:s,policy:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 946 | .params = "aclname allow|deny", |
| 947 | .help = "set default access control list policy", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 948 | .mhandler.cmd = do_acl_policy, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 949 | }, |
| 950 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 951 | STEXI |
Jan Kiszka | cbbfacc | 2009-07-03 08:46:05 +0200 | [diff] [blame] | 952 | @item acl_policy @var{aclname} @code{allow|deny} |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 953 | Set the default access control list policy, used in the event that |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 954 | none of the explicit rules match. The default policy at startup is |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 955 | always @code{deny}. |
| 956 | ETEXI |
| 957 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 958 | { |
| 959 | .name = "acl_add", |
| 960 | .args_type = "aclname:s,match:s,policy:s,index:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 961 | .params = "aclname match allow|deny [index]", |
| 962 | .help = "add a match rule to the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 963 | .mhandler.cmd = do_acl_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 964 | }, |
| 965 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 966 | STEXI |
| 967 | @item acl_allow @var{aclname} @var{match} @code{allow|deny} [@var{index}] |
| 968 | Add a match rule to the access control list, allowing or denying access. |
| 969 | The match will normally be an exact username or x509 distinguished name, |
| 970 | but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to |
| 971 | allow all users in the @code{EXAMPLE.COM} kerberos realm. The match will |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 972 | normally be appended to the end of the ACL, but can be inserted |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 973 | earlier in the list if the optional @var{index} parameter is supplied. |
| 974 | ETEXI |
| 975 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 976 | { |
| 977 | .name = "acl_remove", |
| 978 | .args_type = "aclname:s,match:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 979 | .params = "aclname match", |
| 980 | .help = "remove a match rule from the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 981 | .mhandler.cmd = do_acl_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 982 | }, |
| 983 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 984 | STEXI |
| 985 | @item acl_remove @var{aclname} @var{match} |
| 986 | Remove the specified match rule from the access control list. |
| 987 | ETEXI |
| 988 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 989 | { |
| 990 | .name = "acl_reset", |
| 991 | .args_type = "aclname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 992 | .params = "aclname", |
| 993 | .help = "reset the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 994 | .mhandler.cmd = do_acl_reset, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 995 | }, |
| 996 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 997 | STEXI |
| 998 | @item acl_remove @var{aclname} @var{match} |
| 999 | Remove all matches from the access control list, and set the default |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1000 | policy back to @code{deny}. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1001 | ETEXI |
| 1002 | |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1003 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1004 | |
| 1005 | { |
| 1006 | .name = "mce", |
| 1007 | .args_type = "cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1008 | .params = "cpu bank status mcgstatus addr misc", |
| 1009 | .help = "inject a MCE on the given CPU", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1010 | .mhandler.cmd = do_inject_mce, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1011 | }, |
| 1012 | |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1013 | #endif |
| 1014 | STEXI |
| 1015 | @item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc} |
| 1016 | Inject an MCE on the given CPU (x86 only). |
| 1017 | ETEXI |
| 1018 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1019 | { |
| 1020 | .name = "getfd", |
| 1021 | .args_type = "fdname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1022 | .params = "getfd name", |
| 1023 | .help = "receive a file descriptor via SCM rights and assign it a name", |
Luiz Capitulino | f0d6000 | 2009-10-16 12:23:50 -0300 | [diff] [blame] | 1024 | .user_print = monitor_user_noop, |
| 1025 | .mhandler.cmd_new = do_getfd, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1026 | }, |
| 1027 | |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1028 | STEXI |
| 1029 | @item getfd @var{fdname} |
| 1030 | If a file descriptor is passed alongside this command using the SCM_RIGHTS |
| 1031 | mechanism on unix sockets, it is stored using the name @var{fdname} for |
| 1032 | later use by other monitor commands. |
| 1033 | ETEXI |
| 1034 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1035 | { |
| 1036 | .name = "closefd", |
| 1037 | .args_type = "fdname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1038 | .params = "closefd name", |
| 1039 | .help = "close a file descriptor previously passed via SCM rights", |
Luiz Capitulino | 18f3a51 | 2009-10-16 12:23:51 -0300 | [diff] [blame] | 1040 | .user_print = monitor_user_noop, |
| 1041 | .mhandler.cmd_new = do_closefd, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1042 | }, |
| 1043 | |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1044 | STEXI |
| 1045 | @item closefd @var{fdname} |
| 1046 | Close the file descriptor previously assigned to @var{fdname} using the |
| 1047 | @code{getfd} command. This is only needed if the file descriptor was never |
| 1048 | used by another monitor command. |
| 1049 | ETEXI |
| 1050 | |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1051 | { |
| 1052 | .name = "block_passwd", |
| 1053 | .args_type = "device:B,password:s", |
| 1054 | .params = "block_passwd device password", |
| 1055 | .help = "set the password of encrypted block devices", |
| 1056 | .user_print = monitor_user_noop, |
| 1057 | .mhandler.cmd_new = do_block_set_passwd, |
| 1058 | }, |
| 1059 | |
| 1060 | STEXI |
| 1061 | @item block_passwd @var{device} @var{password} |
| 1062 | Set the encrypted device @var{device} password to @var{password} |
| 1063 | ETEXI |
| 1064 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1065 | STEXI |
| 1066 | @end table |
| 1067 | ETEXI |