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