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}] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 22 | @findex help |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 23 | Show the help for all commands or just for command @var{cmd}. |
| 24 | ETEXI |
| 25 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 26 | { |
| 27 | .name = "commit", |
| 28 | .args_type = "device:B", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 29 | .params = "device|all", |
| 30 | .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] | 31 | .mhandler.cmd = do_commit, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 32 | }, |
| 33 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 34 | STEXI |
| 35 | @item commit |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 36 | @findex commit |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 37 | Commit changes to the disk images (if -snapshot is used) or backing files. |
| 38 | ETEXI |
| 39 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 40 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 41 | .name = "q|quit", |
| 42 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 43 | .params = "", |
| 44 | .help = "quit the emulator", |
Luiz Capitulino | b223f35 | 2009-10-07 13:41:56 -0300 | [diff] [blame] | 45 | .user_print = monitor_user_noop, |
Luiz Capitulino | 7a7f325 | 2011-09-15 14:20:28 -0300 | [diff] [blame] | 46 | .mhandler.cmd = hmp_quit, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 47 | }, |
| 48 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 49 | STEXI |
| 50 | @item q or quit |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 51 | @findex quit |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 52 | Quit the emulator. |
| 53 | ETEXI |
| 54 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 55 | { |
Christoph Hellwig | 6d4a2b3 | 2011-01-24 13:32:33 +0100 | [diff] [blame] | 56 | .name = "block_resize", |
| 57 | .args_type = "device:B,size:o", |
| 58 | .params = "device size", |
| 59 | .help = "resize a block image", |
| 60 | .user_print = monitor_user_noop, |
| 61 | .mhandler.cmd_new = do_block_resize, |
| 62 | }, |
| 63 | |
| 64 | STEXI |
| 65 | @item block_resize |
| 66 | @findex block_resize |
| 67 | Resize a block image while a guest is running. Usually requires guest |
| 68 | action to see the updated size. Resize to a lower size is supported, |
| 69 | but should be used with extreme caution. Note that this command only |
| 70 | resizes image files, it can not resize block devices like LVM volumes. |
| 71 | ETEXI |
| 72 | |
| 73 | |
| 74 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 75 | .name = "eject", |
Luiz Capitulino | 78d714e | 2009-12-14 18:53:21 -0200 | [diff] [blame] | 76 | .args_type = "force:-f,device:B", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 77 | .params = "[-f] device", |
| 78 | .help = "eject a removable medium (use -f to force it)", |
Luiz Capitulino | e1c923a | 2009-10-16 12:23:49 -0300 | [diff] [blame] | 79 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 80 | .mhandler.cmd_new = do_eject, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 81 | }, |
| 82 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 83 | STEXI |
| 84 | @item eject [-f] @var{device} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 85 | @findex eject |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 86 | Eject a removable medium (use -f to force it). |
| 87 | ETEXI |
| 88 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 89 | { |
Ryan Harper | 9063f81 | 2010-11-12 11:07:13 -0600 | [diff] [blame] | 90 | .name = "drive_del", |
| 91 | .args_type = "id:s", |
| 92 | .params = "device", |
| 93 | .help = "remove host block device", |
| 94 | .user_print = monitor_user_noop, |
| 95 | .mhandler.cmd_new = do_drive_del, |
| 96 | }, |
| 97 | |
| 98 | STEXI |
| 99 | @item drive_del @var{device} |
| 100 | @findex drive_del |
| 101 | Remove host block device. The result is that guest generated IO is no longer |
| 102 | submitted against the host device underlying the disk. Once a drive has |
| 103 | been deleted, the QEMU Block layer returns -EIO which results in IO |
| 104 | errors in the guest for applications that are reading/writing to the device. |
| 105 | ETEXI |
| 106 | |
| 107 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 108 | .name = "change", |
| 109 | .args_type = "device:B,target:F,arg:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 110 | .params = "device filename [format]", |
| 111 | .help = "change a removable medium, optional format", |
Markus Armbruster | ec3b82a | 2009-12-07 21:37:09 +0100 | [diff] [blame] | 112 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 113 | .mhandler.cmd_new = do_change, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 114 | }, |
| 115 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 116 | STEXI |
| 117 | @item change @var{device} @var{setting} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 118 | @findex change |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 119 | |
| 120 | Change the configuration of a device. |
| 121 | |
| 122 | @table @option |
| 123 | @item change @var{diskdevice} @var{filename} [@var{format}] |
| 124 | Change the medium for a removable disk device to point to @var{filename}. eg |
| 125 | |
| 126 | @example |
| 127 | (qemu) change ide1-cd0 /path/to/some.iso |
| 128 | @end example |
| 129 | |
| 130 | @var{format} is optional. |
| 131 | |
| 132 | @item change vnc @var{display},@var{options} |
| 133 | Change the configuration of the VNC server. The valid syntax for @var{display} |
| 134 | and @var{options} are described at @ref{sec_invocation}. eg |
| 135 | |
| 136 | @example |
| 137 | (qemu) change vnc localhost:1 |
| 138 | @end example |
| 139 | |
| 140 | @item change vnc password [@var{password}] |
| 141 | |
| 142 | Change the password associated with the VNC server. If the new password is not |
| 143 | supplied, the monitor will prompt for it to be entered. VNC passwords are only |
| 144 | significant up to 8 letters. eg |
| 145 | |
| 146 | @example |
| 147 | (qemu) change vnc password |
| 148 | Password: ******** |
| 149 | @end example |
| 150 | |
| 151 | @end table |
| 152 | ETEXI |
| 153 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 154 | { |
| 155 | .name = "screendump", |
| 156 | .args_type = "filename:F", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 157 | .params = "filename", |
| 158 | .help = "save screen into PPM image 'filename'", |
Luiz Capitulino | f1dc58e | 2010-03-31 15:21:49 -0300 | [diff] [blame] | 159 | .user_print = monitor_user_noop, |
| 160 | .mhandler.cmd_new = do_screen_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 161 | }, |
| 162 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 163 | STEXI |
| 164 | @item screendump @var{filename} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 165 | @findex screendump |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 166 | Save screen into PPM image @var{filename}. |
| 167 | ETEXI |
| 168 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 169 | { |
| 170 | .name = "logfile", |
| 171 | .args_type = "filename:F", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 172 | .params = "filename", |
| 173 | .help = "output logs to 'filename'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 174 | .mhandler.cmd = do_logfile, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 175 | }, |
| 176 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 177 | STEXI |
| 178 | @item logfile @var{filename} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 179 | @findex logfile |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 180 | Output logs to @var{filename}. |
| 181 | ETEXI |
| 182 | |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 183 | { |
| 184 | .name = "trace-event", |
| 185 | .args_type = "name:s,option:b", |
| 186 | .params = "name on|off", |
| 187 | .help = "changes status of a specific trace event", |
Lluís | fc76410 | 2011-08-31 20:31:18 +0200 | [diff] [blame] | 188 | .mhandler.cmd = do_trace_event_set_state, |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 189 | }, |
| 190 | |
| 191 | STEXI |
| 192 | @item trace-event |
| 193 | @findex trace-event |
| 194 | changes status of a trace event |
| 195 | ETEXI |
Stefan Hajnoczi | c5ceb52 | 2010-07-13 09:26:33 +0100 | [diff] [blame] | 196 | |
Michael Roth | c45a816 | 2011-10-02 08:44:37 -0500 | [diff] [blame] | 197 | #if defined(CONFIG_TRACE_SIMPLE) |
Stefan Hajnoczi | c5ceb52 | 2010-07-13 09:26:33 +0100 | [diff] [blame] | 198 | { |
| 199 | .name = "trace-file", |
| 200 | .args_type = "op:s?,arg:F?", |
| 201 | .params = "on|off|flush|set [arg]", |
| 202 | .help = "open, close, or flush trace file, or set a new file name", |
| 203 | .mhandler.cmd = do_trace_file, |
| 204 | }, |
| 205 | |
| 206 | STEXI |
| 207 | @item trace-file on|off|flush |
| 208 | @findex trace-file |
| 209 | Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed. |
| 210 | ETEXI |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 211 | #endif |
| 212 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 213 | { |
| 214 | .name = "log", |
| 215 | .args_type = "items:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 216 | .params = "item1[,...]", |
| 217 | .help = "activate logging of the specified items to '/tmp/qemu.log'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 218 | .mhandler.cmd = do_log, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 219 | }, |
| 220 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 221 | STEXI |
| 222 | @item log @var{item1}[,...] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 223 | @findex log |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 224 | Activate logging of the specified items to @file{/tmp/qemu.log}. |
| 225 | ETEXI |
| 226 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 227 | { |
| 228 | .name = "savevm", |
| 229 | .args_type = "name:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 230 | .params = "[tag|id]", |
| 231 | .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] | 232 | .mhandler.cmd = do_savevm, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 233 | }, |
| 234 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 235 | STEXI |
| 236 | @item savevm [@var{tag}|@var{id}] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 237 | @findex savevm |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 238 | Create a snapshot of the whole virtual machine. If @var{tag} is |
| 239 | provided, it is used as human readable identifier. If there is already |
| 240 | a snapshot with the same tag or ID, it is replaced. More info at |
| 241 | @ref{vm_snapshots}. |
| 242 | ETEXI |
| 243 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 244 | { |
| 245 | .name = "loadvm", |
| 246 | .args_type = "name:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 247 | .params = "tag|id", |
| 248 | .help = "restore a VM snapshot from its tag or id", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 249 | .mhandler.cmd = do_loadvm, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 250 | }, |
| 251 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 252 | STEXI |
| 253 | @item loadvm @var{tag}|@var{id} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 254 | @findex loadvm |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 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} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 269 | @findex delvm |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 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] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 283 | @findex singlestep |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 284 | Run the emulation in single step mode. |
| 285 | If called with option off, the emulation returns to normal mode. |
| 286 | ETEXI |
| 287 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 288 | { |
| 289 | .name = "stop", |
| 290 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 291 | .params = "", |
| 292 | .help = "stop emulation", |
Luiz Capitulino | 5f158f2 | 2011-09-15 14:34:39 -0300 | [diff] [blame] | 293 | .mhandler.cmd = hmp_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 |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 298 | @findex stop |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 299 | Stop emulation. |
| 300 | ETEXI |
| 301 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 302 | { |
| 303 | .name = "c|cont", |
| 304 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 305 | .params = "", |
| 306 | .help = "resume emulation", |
Luiz Capitulino | a1f896a | 2009-10-07 13:42:00 -0300 | [diff] [blame] | 307 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 308 | .mhandler.cmd_new = do_cont, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 309 | }, |
| 310 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 311 | STEXI |
| 312 | @item c or cont |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 313 | @findex cont |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 314 | Resume emulation. |
| 315 | ETEXI |
| 316 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 317 | { |
| 318 | .name = "gdbserver", |
| 319 | .args_type = "device:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 320 | .params = "[device]", |
| 321 | .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 322 | .mhandler.cmd = do_gdbserver, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 323 | }, |
| 324 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 325 | STEXI |
| 326 | @item gdbserver [@var{port}] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 327 | @findex gdbserver |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 328 | Start gdbserver session (default @var{port}=1234) |
| 329 | ETEXI |
| 330 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 331 | { |
| 332 | .name = "x", |
| 333 | .args_type = "fmt:/,addr:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 334 | .params = "/fmt addr", |
| 335 | .help = "virtual memory dump starting at 'addr'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 336 | .mhandler.cmd = do_memory_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 337 | }, |
| 338 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 339 | STEXI |
| 340 | @item x/fmt @var{addr} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 341 | @findex x |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 342 | Virtual memory dump starting at @var{addr}. |
| 343 | ETEXI |
| 344 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 345 | { |
| 346 | .name = "xp", |
| 347 | .args_type = "fmt:/,addr:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 348 | .params = "/fmt addr", |
| 349 | .help = "physical memory dump starting at 'addr'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 350 | .mhandler.cmd = do_physical_memory_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 351 | }, |
| 352 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 353 | STEXI |
| 354 | @item xp /@var{fmt} @var{addr} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 355 | @findex xp |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 356 | Physical memory dump starting at @var{addr}. |
| 357 | |
| 358 | @var{fmt} is a format which tells the command how to format the |
| 359 | data. Its syntax is: @option{/@{count@}@{format@}@{size@}} |
| 360 | |
| 361 | @table @var |
| 362 | @item count |
| 363 | is the number of items to be dumped. |
| 364 | |
| 365 | @item format |
| 366 | can be x (hex), d (signed decimal), u (unsigned decimal), o (octal), |
| 367 | c (char) or i (asm instruction). |
| 368 | |
| 369 | @item size |
| 370 | can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86, |
| 371 | @code{h} or @code{w} can be specified with the @code{i} format to |
| 372 | respectively select 16 or 32 bit code instruction size. |
| 373 | |
| 374 | @end table |
| 375 | |
| 376 | Examples: |
| 377 | @itemize |
| 378 | @item |
| 379 | Dump 10 instructions at the current instruction pointer: |
| 380 | @example |
| 381 | (qemu) x/10i $eip |
| 382 | 0x90107063: ret |
| 383 | 0x90107064: sti |
| 384 | 0x90107065: lea 0x0(%esi,1),%esi |
| 385 | 0x90107069: lea 0x0(%edi,1),%edi |
| 386 | 0x90107070: ret |
| 387 | 0x90107071: jmp 0x90107080 |
| 388 | 0x90107073: nop |
| 389 | 0x90107074: nop |
| 390 | 0x90107075: nop |
| 391 | 0x90107076: nop |
| 392 | @end example |
| 393 | |
| 394 | @item |
| 395 | Dump 80 16 bit values at the start of the video memory. |
| 396 | @smallexample |
| 397 | (qemu) xp/80hx 0xb8000 |
| 398 | 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42 |
| 399 | 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41 |
| 400 | 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72 |
| 401 | 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73 |
| 402 | 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20 |
| 403 | 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720 |
| 404 | 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 405 | 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 406 | 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 407 | 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 408 | @end smallexample |
| 409 | @end itemize |
| 410 | ETEXI |
| 411 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 412 | { |
| 413 | .name = "p|print", |
| 414 | .args_type = "fmt:/,val:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 415 | .params = "/fmt expr", |
| 416 | .help = "print expression value (use $reg for CPU register access)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 417 | .mhandler.cmd = do_print, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 418 | }, |
| 419 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 420 | STEXI |
| 421 | @item p or print/@var{fmt} @var{expr} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 422 | @findex print |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 423 | |
| 424 | Print expression value. Only the @var{format} part of @var{fmt} is |
| 425 | used. |
| 426 | ETEXI |
| 427 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 428 | { |
| 429 | .name = "i", |
| 430 | .args_type = "fmt:/,addr:i,index:i.", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 431 | .params = "/fmt addr", |
| 432 | .help = "I/O port read", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 433 | .mhandler.cmd = do_ioport_read, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 434 | }, |
| 435 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 436 | STEXI |
| 437 | Read I/O port. |
| 438 | ETEXI |
| 439 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 440 | { |
| 441 | .name = "o", |
| 442 | .args_type = "fmt:/,addr:i,val:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 443 | .params = "/fmt addr value", |
| 444 | .help = "I/O port write", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 445 | .mhandler.cmd = do_ioport_write, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 446 | }, |
| 447 | |
Jan Kiszka | f114784 | 2009-07-14 10:20:11 +0200 | [diff] [blame] | 448 | STEXI |
| 449 | Write to I/O port. |
| 450 | ETEXI |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 451 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 452 | { |
| 453 | .name = "sendkey", |
| 454 | .args_type = "string:s,hold_time:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 455 | .params = "keys [hold_ms]", |
| 456 | .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] | 457 | .mhandler.cmd = do_sendkey, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 458 | }, |
| 459 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 460 | STEXI |
| 461 | @item sendkey @var{keys} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 462 | @findex sendkey |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 463 | |
| 464 | Send @var{keys} to the emulator. @var{keys} could be the name of the |
| 465 | key or @code{#} followed by the raw value in either decimal or hexadecimal |
| 466 | format. Use @code{-} to press several keys simultaneously. Example: |
| 467 | @example |
| 468 | sendkey ctrl-alt-f1 |
| 469 | @end example |
| 470 | |
| 471 | This command is useful to send keys that your graphical user interface |
| 472 | intercepts at low level, such as @code{ctrl-alt-f1} in X Window. |
| 473 | ETEXI |
| 474 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 475 | { |
| 476 | .name = "system_reset", |
| 477 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 478 | .params = "", |
| 479 | .help = "reset the system", |
Luiz Capitulino | 38d2265 | 2011-09-15 14:41:46 -0300 | [diff] [blame] | 480 | .mhandler.cmd = hmp_system_reset, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 481 | }, |
| 482 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 483 | STEXI |
| 484 | @item system_reset |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 485 | @findex system_reset |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 486 | |
| 487 | Reset the system. |
| 488 | ETEXI |
| 489 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 490 | { |
| 491 | .name = "system_powerdown", |
| 492 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 493 | .params = "", |
| 494 | .help = "send system power down event", |
Luiz Capitulino | 5bc465e | 2011-09-28 11:06:15 -0300 | [diff] [blame] | 495 | .mhandler.cmd = hmp_system_powerdown, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 496 | }, |
| 497 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 498 | STEXI |
| 499 | @item system_powerdown |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 500 | @findex system_powerdown |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 501 | |
| 502 | Power down the system (if supported). |
| 503 | ETEXI |
| 504 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 505 | { |
| 506 | .name = "sum", |
| 507 | .args_type = "start:i,size:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 508 | .params = "addr size", |
| 509 | .help = "compute the checksum of a memory region", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 510 | .mhandler.cmd = do_sum, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 511 | }, |
| 512 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 513 | STEXI |
| 514 | @item sum @var{addr} @var{size} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 515 | @findex sum |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 516 | |
| 517 | Compute the checksum of a memory region. |
| 518 | ETEXI |
| 519 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 520 | { |
| 521 | .name = "usb_add", |
| 522 | .args_type = "devname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 523 | .params = "device", |
| 524 | .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] | 525 | .mhandler.cmd = do_usb_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 526 | }, |
| 527 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 528 | STEXI |
| 529 | @item usb_add @var{devname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 530 | @findex usb_add |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 531 | |
| 532 | Add the USB device @var{devname}. For details of available devices see |
| 533 | @ref{usb_devices} |
| 534 | ETEXI |
| 535 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 536 | { |
| 537 | .name = "usb_del", |
| 538 | .args_type = "devname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 539 | .params = "device", |
| 540 | .help = "remove USB device 'bus.addr'", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 541 | .mhandler.cmd = do_usb_del, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 542 | }, |
| 543 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 544 | STEXI |
| 545 | @item usb_del @var{devname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 546 | @findex usb_del |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 547 | |
| 548 | Remove the USB device @var{devname} from the QEMU virtual USB |
| 549 | hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor |
| 550 | command @code{info usb} to see the devices you can remove. |
| 551 | ETEXI |
| 552 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 553 | { |
| 554 | .name = "device_add", |
Markus Armbruster | c7e4e8c | 2010-02-10 20:47:28 +0100 | [diff] [blame] | 555 | .args_type = "device:O", |
| 556 | .params = "driver[,prop=value][,...]", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 557 | .help = "add device, like -device on the command line", |
Markus Armbruster | 8bc2724 | 2010-02-10 20:52:01 +0100 | [diff] [blame] | 558 | .user_print = monitor_user_noop, |
| 559 | .mhandler.cmd_new = do_device_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 560 | }, |
| 561 | |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 562 | STEXI |
| 563 | @item device_add @var{config} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 564 | @findex device_add |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 565 | |
| 566 | Add device. |
| 567 | ETEXI |
| 568 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 569 | { |
| 570 | .name = "device_del", |
| 571 | .args_type = "id:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 572 | .params = "device", |
| 573 | .help = "remove device", |
Markus Armbruster | 17a38ea | 2010-03-22 11:38:14 +0100 | [diff] [blame] | 574 | .user_print = monitor_user_noop, |
| 575 | .mhandler.cmd_new = do_device_del, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 576 | }, |
| 577 | |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 578 | STEXI |
| 579 | @item device_del @var{id} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 580 | @findex device_del |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 581 | |
| 582 | Remove device @var{id}. |
| 583 | ETEXI |
| 584 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 585 | { |
| 586 | .name = "cpu", |
| 587 | .args_type = "index:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 588 | .params = "index", |
| 589 | .help = "set the default CPU", |
Luiz Capitulino | 755f196 | 2011-10-06 14:31:39 -0300 | [diff] [blame] | 590 | .mhandler.cmd = hmp_cpu, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 591 | }, |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 592 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 593 | STEXI |
Markus Armbruster | c427ea9 | 2010-05-04 13:20:32 +0200 | [diff] [blame] | 594 | @item cpu @var{index} |
| 595 | @findex cpu |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 596 | Set the default CPU. |
| 597 | ETEXI |
| 598 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 599 | { |
| 600 | .name = "mouse_move", |
| 601 | .args_type = "dx_str:s,dy_str:s,dz_str:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 602 | .params = "dx dy [dz]", |
| 603 | .help = "send mouse move events", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 604 | .mhandler.cmd = do_mouse_move, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 605 | }, |
| 606 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 607 | STEXI |
| 608 | @item mouse_move @var{dx} @var{dy} [@var{dz}] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 609 | @findex mouse_move |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 610 | Move the active mouse to the specified coordinates @var{dx} @var{dy} |
| 611 | with optional scroll axis @var{dz}. |
| 612 | ETEXI |
| 613 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 614 | { |
| 615 | .name = "mouse_button", |
| 616 | .args_type = "button_state:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 617 | .params = "state", |
| 618 | .help = "change mouse button state (1=L, 2=M, 4=R)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 619 | .mhandler.cmd = do_mouse_button, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 620 | }, |
| 621 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 622 | STEXI |
| 623 | @item mouse_button @var{val} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 624 | @findex mouse_button |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 625 | Change the active mouse button state @var{val} (1=L, 2=M, 4=R). |
| 626 | ETEXI |
| 627 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 628 | { |
| 629 | .name = "mouse_set", |
| 630 | .args_type = "index:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 631 | .params = "index", |
| 632 | .help = "set which mouse device receives events", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 633 | .mhandler.cmd = do_mouse_set, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 634 | }, |
| 635 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 636 | STEXI |
| 637 | @item mouse_set @var{index} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 638 | @findex mouse_set |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 639 | Set which mouse device receives events at given @var{index}, index |
| 640 | can be obtained with |
| 641 | @example |
| 642 | info mice |
| 643 | @end example |
| 644 | ETEXI |
| 645 | |
| 646 | #ifdef HAS_AUDIO |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 647 | { |
| 648 | .name = "wavcapture", |
| 649 | .args_type = "path:F,freq:i?,bits:i?,nchannels:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 650 | .params = "path [frequency [bits [channels]]]", |
| 651 | .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] | 652 | .mhandler.cmd = do_wav_capture, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 653 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 654 | #endif |
| 655 | STEXI |
| 656 | @item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 657 | @findex wavcapture |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 658 | Capture audio into @var{filename}. Using sample rate @var{frequency} |
| 659 | bits per sample @var{bits} and number of channels @var{channels}. |
| 660 | |
| 661 | Defaults: |
| 662 | @itemize @minus |
| 663 | @item Sample rate = 44100 Hz - CD quality |
| 664 | @item Bits = 16 |
| 665 | @item Number of channels = 2 - Stereo |
| 666 | @end itemize |
| 667 | ETEXI |
| 668 | |
| 669 | #ifdef HAS_AUDIO |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 670 | { |
| 671 | .name = "stopcapture", |
| 672 | .args_type = "n:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 673 | .params = "capture index", |
| 674 | .help = "stop capture", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 675 | .mhandler.cmd = do_stop_capture, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 676 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 677 | #endif |
| 678 | STEXI |
| 679 | @item stopcapture @var{index} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 680 | @findex stopcapture |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 681 | Stop capture with a given @var{index}, index can be obtained with |
| 682 | @example |
| 683 | info capture |
| 684 | @end example |
| 685 | ETEXI |
| 686 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 687 | { |
| 688 | .name = "memsave", |
| 689 | .args_type = "val:l,size:i,filename:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 690 | .params = "addr size file", |
| 691 | .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] | 692 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 693 | .mhandler.cmd_new = do_memory_save, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 694 | }, |
| 695 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 696 | STEXI |
| 697 | @item memsave @var{addr} @var{size} @var{file} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 698 | @findex memsave |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 699 | save to disk virtual memory dump starting at @var{addr} of size @var{size}. |
| 700 | ETEXI |
| 701 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 702 | { |
| 703 | .name = "pmemsave", |
| 704 | .args_type = "val:l,size:i,filename:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 705 | .params = "addr size file", |
| 706 | .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] | 707 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 708 | .mhandler.cmd_new = do_physical_memory_save, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 709 | }, |
| 710 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 711 | STEXI |
| 712 | @item pmemsave @var{addr} @var{size} @var{file} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 713 | @findex pmemsave |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 714 | save to disk physical memory dump starting at @var{addr} of size @var{size}. |
| 715 | ETEXI |
| 716 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 717 | { |
| 718 | .name = "boot_set", |
| 719 | .args_type = "bootdevice:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 720 | .params = "bootdevice", |
| 721 | .help = "define new values for the boot device list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 722 | .mhandler.cmd = do_boot_set, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 723 | }, |
| 724 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 725 | STEXI |
| 726 | @item boot_set @var{bootdevicelist} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 727 | @findex boot_set |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 728 | |
| 729 | Define new values for the boot device list. Those values will override |
| 730 | the values specified on the command line through the @code{-boot} option. |
| 731 | |
| 732 | The values that can be specified here depend on the machine type, but are |
| 733 | the same that can be specified in the @code{-boot} command line option. |
| 734 | ETEXI |
| 735 | |
| 736 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 737 | { |
| 738 | .name = "nmi", |
Luiz Capitulino | e9b4b43 | 2011-04-29 12:11:50 -0300 | [diff] [blame] | 739 | .args_type = "", |
| 740 | .params = "", |
| 741 | .help = "inject an NMI on all guest's CPUs", |
| 742 | .user_print = monitor_user_noop, |
| 743 | .mhandler.cmd_new = do_inject_nmi, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 744 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 745 | #endif |
| 746 | STEXI |
| 747 | @item nmi @var{cpu} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 748 | @findex nmi |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 749 | Inject an NMI on the given CPU (x86 only). |
| 750 | ETEXI |
| 751 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 752 | { |
| 753 | .name = "migrate", |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 754 | .args_type = "detach:-d,blk:-b,inc:-i,uri:s", |
| 755 | .params = "[-d] [-b] [-i] uri", |
| 756 | .help = "migrate to URI (using -d to not wait for completion)" |
| 757 | "\n\t\t\t -b for migration without shared storage with" |
| 758 | " full copy of disk\n\t\t\t -i for migration without " |
| 759 | "shared storage with incremental copy of disk " |
| 760 | "(base image shared between src and destination)", |
| 761 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 762 | .mhandler.cmd_new = do_migrate, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 763 | }, |
| 764 | |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 765 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 766 | STEXI |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 767 | @item migrate [-d] [-b] [-i] @var{uri} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 768 | @findex migrate |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 769 | 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] | 770 | -b for migration with full copy of disk |
| 771 | -i for migration with incremental copy of disk (base image is shared) |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 772 | ETEXI |
| 773 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 774 | { |
| 775 | .name = "migrate_cancel", |
| 776 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 777 | .params = "", |
| 778 | .help = "cancel the current VM migration", |
Luiz Capitulino | 911d296 | 2009-10-16 12:23:47 -0300 | [diff] [blame] | 779 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 780 | .mhandler.cmd_new = do_migrate_cancel, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 781 | }, |
| 782 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 783 | STEXI |
| 784 | @item migrate_cancel |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 785 | @findex migrate_cancel |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 786 | Cancel the current VM migration. |
| 787 | ETEXI |
| 788 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 789 | { |
| 790 | .name = "migrate_set_speed", |
Jes Sorensen | ed3d4a8 | 2010-10-21 17:15:48 +0200 | [diff] [blame] | 791 | .args_type = "value:o", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 792 | .params = "value", |
Jes Sorensen | ed3d4a8 | 2010-10-21 17:15:48 +0200 | [diff] [blame] | 793 | .help = "set maximum speed (in bytes) for migrations. " |
| 794 | "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T", |
Markus Armbruster | 5fd9083 | 2010-01-25 14:23:05 +0100 | [diff] [blame] | 795 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 796 | .mhandler.cmd_new = do_migrate_set_speed, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 797 | }, |
| 798 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 799 | STEXI |
| 800 | @item migrate_set_speed @var{value} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 801 | @findex migrate_set_speed |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 802 | Set maximum speed to @var{value} (in bytes) for migrations. |
| 803 | ETEXI |
| 804 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 805 | { |
| 806 | .name = "migrate_set_downtime", |
Markus Armbruster | b0fbf7d | 2010-01-25 14:23:07 +0100 | [diff] [blame] | 807 | .args_type = "value:T", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 808 | .params = "value", |
| 809 | .help = "set maximum tolerated downtime (in seconds) for migrations", |
Markus Armbruster | c6027f5 | 2010-01-25 14:23:08 +0100 | [diff] [blame] | 810 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 811 | .mhandler.cmd_new = do_migrate_set_downtime, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 812 | }, |
Glauber Costa | 2ea4295 | 2009-05-28 15:22:58 -0400 | [diff] [blame] | 813 | |
| 814 | STEXI |
| 815 | @item migrate_set_downtime @var{second} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 816 | @findex migrate_set_downtime |
Glauber Costa | 2ea4295 | 2009-05-28 15:22:58 -0400 | [diff] [blame] | 817 | Set maximum tolerated downtime (in seconds) for migration. |
| 818 | ETEXI |
| 819 | |
Jes Sorensen | f888256 | 2010-12-16 13:52:16 +0100 | [diff] [blame] | 820 | { |
Jes Sorensen | 2ea720d | 2011-03-09 16:54:34 +0100 | [diff] [blame] | 821 | .name = "client_migrate_info", |
| 822 | .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?", |
| 823 | .params = "protocol hostname port tls-port cert-subject", |
| 824 | .help = "send migration info to spice/vnc client", |
| 825 | .user_print = monitor_user_noop, |
Yonit Halperin | edc5cb1 | 2011-10-17 10:03:18 +0200 | [diff] [blame] | 826 | .mhandler.cmd_async = client_migrate_info, |
| 827 | .flags = MONITOR_CMD_ASYNC, |
Jes Sorensen | f888256 | 2010-12-16 13:52:16 +0100 | [diff] [blame] | 828 | }, |
| 829 | |
| 830 | STEXI |
Gerd Hoffmann | e866e23 | 2010-04-23 13:28:21 +0200 | [diff] [blame] | 831 | @item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject} |
| 832 | @findex client_migrate_info |
| 833 | Set the spice/vnc connection info for the migration target. The spice/vnc |
| 834 | server will ask the spice/vnc client to automatically reconnect using the |
| 835 | new parameters (if specified) once the vm migration finished successfully. |
| 836 | ETEXI |
| 837 | |
| 838 | { |
Jes Sorensen | 2ea720d | 2011-03-09 16:54:34 +0100 | [diff] [blame] | 839 | .name = "snapshot_blkdev", |
Jes Sorensen | d967b2f | 2011-07-11 20:01:09 +0200 | [diff] [blame] | 840 | .args_type = "device:B,snapshot-file:s?,format:s?", |
Jes Sorensen | 2ea720d | 2011-03-09 16:54:34 +0100 | [diff] [blame] | 841 | .params = "device [new-image-file] [format]", |
| 842 | .help = "initiates a live snapshot\n\t\t\t" |
| 843 | "of device. If a new image file is specified, the\n\t\t\t" |
| 844 | "new image file will become the new root image.\n\t\t\t" |
| 845 | "If format is specified, the snapshot file will\n\t\t\t" |
| 846 | "be created in that format. Otherwise the\n\t\t\t" |
| 847 | "snapshot will be internal! (currently unsupported)", |
| 848 | .mhandler.cmd_new = do_snapshot_blkdev, |
Gerd Hoffmann | e866e23 | 2010-04-23 13:28:21 +0200 | [diff] [blame] | 849 | }, |
| 850 | |
| 851 | STEXI |
Jes Sorensen | f888256 | 2010-12-16 13:52:16 +0100 | [diff] [blame] | 852 | @item snapshot_blkdev |
| 853 | @findex snapshot_blkdev |
| 854 | Snapshot device, using snapshot file as target if provided |
| 855 | ETEXI |
| 856 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 857 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 858 | { |
| 859 | .name = "drive_add", |
| 860 | .args_type = "pci_addr:s,opts:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 861 | .params = "[[<domain>:]<bus>:]<slot>\n" |
| 862 | "[file=file][,if=type][,bus=n]\n" |
| 863 | "[,unit=m][,media=d][index=i]\n" |
| 864 | "[,cyls=c,heads=h,secs=s[,trans=t]]\n" |
| 865 | "[snapshot=on|off][,cache=on|off]", |
| 866 | .help = "add drive to PCI storage controller", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 867 | .mhandler.cmd = drive_hot_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 868 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 869 | #endif |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 870 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 871 | STEXI |
| 872 | @item drive_add |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 873 | @findex drive_add |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 874 | Add drive to PCI storage controller. |
| 875 | ETEXI |
| 876 | |
| 877 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 878 | { |
| 879 | .name = "pci_add", |
| 880 | .args_type = "pci_addr:s,type:s,opts:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 881 | .params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...", |
| 882 | .help = "hot-add PCI device", |
Markus Armbruster | 6c6a58a | 2010-05-12 10:53:00 +0200 | [diff] [blame] | 883 | .mhandler.cmd = pci_device_hot_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 884 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 885 | #endif |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 886 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 887 | STEXI |
| 888 | @item pci_add |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 889 | @findex pci_add |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 890 | Hot-add PCI device. |
| 891 | ETEXI |
| 892 | |
| 893 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 894 | { |
| 895 | .name = "pci_del", |
| 896 | .args_type = "pci_addr:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 897 | .params = "[[<domain>:]<bus>:]<slot>", |
| 898 | .help = "hot remove PCI device", |
Markus Armbruster | b752daf | 2010-05-12 10:53:01 +0200 | [diff] [blame] | 899 | .mhandler.cmd = do_pci_device_hot_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 900 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 901 | #endif |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 902 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 903 | STEXI |
| 904 | @item pci_del |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 905 | @findex pci_del |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 906 | Hot remove PCI device. |
| 907 | ETEXI |
| 908 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 909 | { |
Isaku Yamahata | 2ae63bd | 2010-12-24 12:14:14 +0900 | [diff] [blame] | 910 | .name = "pcie_aer_inject_error", |
| 911 | .args_type = "advisory_non_fatal:-a,correctable:-c," |
| 912 | "id:s,error_status:s," |
| 913 | "header0:i?,header1:i?,header2:i?,header3:i?," |
| 914 | "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?", |
| 915 | .params = "[-a] [-c] id " |
| 916 | "<error_status> [<tlp header> [<tlp header prefix>]]", |
| 917 | .help = "inject pcie aer error\n\t\t\t" |
| 918 | " -a for advisory non fatal error\n\t\t\t" |
| 919 | " -c for correctable error\n\t\t\t" |
| 920 | "<id> = qdev device id\n\t\t\t" |
| 921 | "<error_status> = error string or 32bit\n\t\t\t" |
| 922 | "<tlb header> = 32bit x 4\n\t\t\t" |
| 923 | "<tlb header prefix> = 32bit x 4", |
| 924 | .user_print = pcie_aer_inject_error_print, |
| 925 | .mhandler.cmd_new = do_pcie_aer_inejct_error, |
| 926 | }, |
| 927 | |
| 928 | STEXI |
| 929 | @item pcie_aer_inject_error |
| 930 | @findex pcie_aer_inject_error |
| 931 | Inject PCIe AER error |
| 932 | ETEXI |
| 933 | |
| 934 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 935 | .name = "host_net_add", |
| 936 | .args_type = "device:s,opts:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 937 | .params = "tap|user|socket|vde|dump [options]", |
| 938 | .help = "add host VLAN client", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 939 | .mhandler.cmd = net_host_device_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 940 | }, |
| 941 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 942 | STEXI |
| 943 | @item host_net_add |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 944 | @findex host_net_add |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 945 | Add host VLAN client. |
| 946 | ETEXI |
| 947 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 948 | { |
| 949 | .name = "host_net_remove", |
| 950 | .args_type = "vlan_id:i,device:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 951 | .params = "vlan_id name", |
| 952 | .help = "remove host VLAN client", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 953 | .mhandler.cmd = net_host_device_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 954 | }, |
| 955 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 956 | STEXI |
| 957 | @item host_net_remove |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 958 | @findex host_net_remove |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 959 | Remove host VLAN client. |
| 960 | ETEXI |
| 961 | |
Markus Armbruster | ae82d32 | 2010-03-25 17:22:40 +0100 | [diff] [blame] | 962 | { |
| 963 | .name = "netdev_add", |
| 964 | .args_type = "netdev:O", |
| 965 | .params = "[user|tap|socket],id=str[,prop=value][,...]", |
| 966 | .help = "add host network device", |
| 967 | .user_print = monitor_user_noop, |
| 968 | .mhandler.cmd_new = do_netdev_add, |
| 969 | }, |
| 970 | |
| 971 | STEXI |
| 972 | @item netdev_add |
| 973 | @findex netdev_add |
| 974 | Add host network device. |
| 975 | ETEXI |
| 976 | |
| 977 | { |
| 978 | .name = "netdev_del", |
| 979 | .args_type = "id:s", |
| 980 | .params = "id", |
| 981 | .help = "remove host network device", |
| 982 | .user_print = monitor_user_noop, |
| 983 | .mhandler.cmd_new = do_netdev_del, |
| 984 | }, |
| 985 | |
| 986 | STEXI |
| 987 | @item netdev_del |
| 988 | @findex netdev_del |
| 989 | Remove host network device. |
| 990 | ETEXI |
| 991 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 992 | #ifdef CONFIG_SLIRP |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 993 | { |
| 994 | .name = "hostfwd_add", |
| 995 | .args_type = "arg1:s,arg2:s?,arg3:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 996 | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport", |
| 997 | .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] | 998 | .mhandler.cmd = net_slirp_hostfwd_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 999 | }, |
Markus Armbruster | 21413d6 | 2010-05-04 13:20:30 +0200 | [diff] [blame] | 1000 | #endif |
| 1001 | STEXI |
| 1002 | @item hostfwd_add |
| 1003 | @findex hostfwd_add |
| 1004 | Redirect TCP or UDP connections from host to guest (requires -net user). |
| 1005 | ETEXI |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1006 | |
Markus Armbruster | 21413d6 | 2010-05-04 13:20:30 +0200 | [diff] [blame] | 1007 | #ifdef CONFIG_SLIRP |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1008 | { |
| 1009 | .name = "hostfwd_remove", |
| 1010 | .args_type = "arg1:s,arg2:s?,arg3:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1011 | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport", |
| 1012 | .help = "remove host-to-guest TCP or UDP redirection", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1013 | .mhandler.cmd = net_slirp_hostfwd_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1014 | }, |
| 1015 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1016 | #endif |
| 1017 | STEXI |
Markus Armbruster | 21413d6 | 2010-05-04 13:20:30 +0200 | [diff] [blame] | 1018 | @item hostfwd_remove |
| 1019 | @findex hostfwd_remove |
| 1020 | Remove host-to-guest TCP or UDP redirection. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1021 | ETEXI |
| 1022 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1023 | { |
| 1024 | .name = "balloon", |
Luiz Capitulino | 3b0bd6e | 2009-12-18 13:25:05 -0200 | [diff] [blame] | 1025 | .args_type = "value:M", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1026 | .params = "target", |
Riccardo Magliocchetti | 3c05613 | 2010-05-19 18:49:28 +0200 | [diff] [blame] | 1027 | .help = "request VM to change its memory allocation (in MB)", |
Luiz Capitulino | 83fb1de | 2009-10-07 13:42:01 -0300 | [diff] [blame] | 1028 | .user_print = monitor_user_noop, |
Adam Litke | 625a5be | 2010-01-26 14:17:35 -0600 | [diff] [blame] | 1029 | .mhandler.cmd_async = do_balloon, |
Jan Kiszka | 8ac470c | 2010-06-16 00:38:39 +0200 | [diff] [blame] | 1030 | .flags = MONITOR_CMD_ASYNC, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1031 | }, |
| 1032 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1033 | STEXI |
| 1034 | @item balloon @var{value} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1035 | @findex balloon |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1036 | Request VM to change its memory allocation to @var{value} (in MB). |
| 1037 | ETEXI |
| 1038 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1039 | { |
| 1040 | .name = "set_link", |
Markus Armbruster | c9b26a4 | 2010-03-26 09:07:10 +0100 | [diff] [blame] | 1041 | .args_type = "name:s,up:b", |
| 1042 | .params = "name on|off", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1043 | .help = "change the link status of a network adapter", |
Markus Armbruster | 5369e3c | 2010-03-26 09:07:11 +0100 | [diff] [blame] | 1044 | .user_print = monitor_user_noop, |
| 1045 | .mhandler.cmd_new = do_set_link, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1046 | }, |
| 1047 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1048 | STEXI |
Markus Armbruster | c9b26a4 | 2010-03-26 09:07:10 +0100 | [diff] [blame] | 1049 | @item set_link @var{name} [on|off] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1050 | @findex set_link |
Markus Armbruster | c9b26a4 | 2010-03-26 09:07:10 +0100 | [diff] [blame] | 1051 | Switch link @var{name} on (i.e. up) or off (i.e. down). |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1052 | ETEXI |
| 1053 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1054 | { |
| 1055 | .name = "watchdog_action", |
| 1056 | .args_type = "action:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1057 | .params = "[reset|shutdown|poweroff|pause|debug|none]", |
| 1058 | .help = "change watchdog action", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1059 | .mhandler.cmd = do_watchdog_action, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1060 | }, |
| 1061 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1062 | STEXI |
| 1063 | @item watchdog_action |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1064 | @findex watchdog_action |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1065 | Change watchdog action. |
| 1066 | ETEXI |
| 1067 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1068 | { |
| 1069 | .name = "acl_show", |
| 1070 | .args_type = "aclname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1071 | .params = "aclname", |
| 1072 | .help = "list rules in the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1073 | .mhandler.cmd = do_acl_show, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1074 | }, |
| 1075 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1076 | STEXI |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1077 | @item acl_show @var{aclname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1078 | @findex acl_show |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1079 | List all the matching rules in the access control list, and the default |
| 1080 | policy. There are currently two named access control lists, |
| 1081 | @var{vnc.x509dname} and @var{vnc.username} matching on the x509 client |
| 1082 | certificate distinguished name, and SASL username respectively. |
| 1083 | ETEXI |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1084 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1085 | { |
| 1086 | .name = "acl_policy", |
| 1087 | .args_type = "aclname:s,policy:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1088 | .params = "aclname allow|deny", |
| 1089 | .help = "set default access control list policy", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1090 | .mhandler.cmd = do_acl_policy, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1091 | }, |
| 1092 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1093 | STEXI |
Jan Kiszka | cbbfacc | 2009-07-03 08:46:05 +0200 | [diff] [blame] | 1094 | @item acl_policy @var{aclname} @code{allow|deny} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1095 | @findex acl_policy |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1096 | Set the default access control list policy, used in the event that |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1097 | none of the explicit rules match. The default policy at startup is |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1098 | always @code{deny}. |
| 1099 | ETEXI |
| 1100 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1101 | { |
| 1102 | .name = "acl_add", |
| 1103 | .args_type = "aclname:s,match:s,policy:s,index:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1104 | .params = "aclname match allow|deny [index]", |
| 1105 | .help = "add a match rule to the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1106 | .mhandler.cmd = do_acl_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1107 | }, |
| 1108 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1109 | STEXI |
Markus Armbruster | 0e4aec9 | 2010-05-04 13:20:31 +0200 | [diff] [blame] | 1110 | @item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}] |
| 1111 | @findex acl_add |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1112 | Add a match rule to the access control list, allowing or denying access. |
| 1113 | The match will normally be an exact username or x509 distinguished name, |
| 1114 | but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to |
| 1115 | 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] | 1116 | 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] | 1117 | earlier in the list if the optional @var{index} parameter is supplied. |
| 1118 | ETEXI |
| 1119 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1120 | { |
| 1121 | .name = "acl_remove", |
| 1122 | .args_type = "aclname:s,match:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1123 | .params = "aclname match", |
| 1124 | .help = "remove a match rule from the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1125 | .mhandler.cmd = do_acl_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1126 | }, |
| 1127 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1128 | STEXI |
| 1129 | @item acl_remove @var{aclname} @var{match} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1130 | @findex acl_remove |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1131 | Remove the specified match rule from the access control list. |
| 1132 | ETEXI |
| 1133 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1134 | { |
| 1135 | .name = "acl_reset", |
| 1136 | .args_type = "aclname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1137 | .params = "aclname", |
| 1138 | .help = "reset the access control list", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1139 | .mhandler.cmd = do_acl_reset, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1140 | }, |
| 1141 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1142 | STEXI |
Markus Armbruster | 0e4aec9 | 2010-05-04 13:20:31 +0200 | [diff] [blame] | 1143 | @item acl_reset @var{aclname} |
| 1144 | @findex acl_reset |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1145 | Remove all matches from the access control list, and set the default |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1146 | policy back to @code{deny}. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1147 | ETEXI |
| 1148 | |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1149 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1150 | |
| 1151 | { |
| 1152 | .name = "mce", |
Jin Dongming | 31ce5e0 | 2010-12-10 17:21:02 +0900 | [diff] [blame] | 1153 | .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", |
| 1154 | .params = "[-b] cpu bank status mcgstatus addr misc", |
| 1155 | .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 1156 | .mhandler.cmd = do_inject_mce, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1157 | }, |
| 1158 | |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1159 | #endif |
| 1160 | STEXI |
| 1161 | @item mce @var{cpu} @var{bank} @var{status} @var{mcgstatus} @var{addr} @var{misc} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1162 | @findex mce (x86) |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1163 | Inject an MCE on the given CPU (x86 only). |
| 1164 | ETEXI |
| 1165 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1166 | { |
| 1167 | .name = "getfd", |
| 1168 | .args_type = "fdname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1169 | .params = "getfd name", |
| 1170 | .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] | 1171 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 1172 | .mhandler.cmd_new = do_getfd, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1173 | }, |
| 1174 | |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1175 | STEXI |
| 1176 | @item getfd @var{fdname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1177 | @findex getfd |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1178 | If a file descriptor is passed alongside this command using the SCM_RIGHTS |
| 1179 | mechanism on unix sockets, it is stored using the name @var{fdname} for |
| 1180 | later use by other monitor commands. |
| 1181 | ETEXI |
| 1182 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1183 | { |
| 1184 | .name = "closefd", |
| 1185 | .args_type = "fdname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1186 | .params = "closefd name", |
| 1187 | .help = "close a file descriptor previously passed via SCM rights", |
Luiz Capitulino | 18f3a51 | 2009-10-16 12:23:51 -0300 | [diff] [blame] | 1188 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 1189 | .mhandler.cmd_new = do_closefd, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1190 | }, |
| 1191 | |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1192 | STEXI |
| 1193 | @item closefd @var{fdname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1194 | @findex closefd |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1195 | Close the file descriptor previously assigned to @var{fdname} using the |
| 1196 | @code{getfd} command. This is only needed if the file descriptor was never |
| 1197 | used by another monitor command. |
| 1198 | ETEXI |
| 1199 | |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1200 | { |
| 1201 | .name = "block_passwd", |
| 1202 | .args_type = "device:B,password:s", |
| 1203 | .params = "block_passwd device password", |
| 1204 | .help = "set the password of encrypted block devices", |
| 1205 | .user_print = monitor_user_noop, |
Luiz Capitulino | 261394d | 2010-02-10 23:50:02 -0200 | [diff] [blame] | 1206 | .mhandler.cmd_new = do_block_set_passwd, |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1207 | }, |
| 1208 | |
| 1209 | STEXI |
Zhi Yong Wu | 727f005 | 2011-11-08 13:00:31 +0800 | [diff] [blame^] | 1210 | @item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr} |
| 1211 | @findex block_set_io_throttle |
| 1212 | Change I/O throttle limits for a block drive to @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr} |
| 1213 | ETEXI |
| 1214 | |
| 1215 | { |
| 1216 | .name = "block_set_io_throttle", |
| 1217 | .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l", |
| 1218 | .params = "device bps bps_rd bps_wr iops iops_rd iops_wr", |
| 1219 | .help = "change I/O throttle limits for a block drive", |
| 1220 | .user_print = monitor_user_noop, |
| 1221 | .mhandler.cmd_new = do_block_set_io_throttle, |
| 1222 | }, |
| 1223 | |
| 1224 | STEXI |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1225 | @item block_passwd @var{device} @var{password} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1226 | @findex block_passwd |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1227 | Set the encrypted device @var{device} password to @var{password} |
| 1228 | ETEXI |
Jan Kiszka | b40292e | 2010-05-31 14:43:31 -0300 | [diff] [blame] | 1229 | |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1230 | { |
Gerd Hoffmann | 7572150 | 2010-10-07 12:22:54 +0200 | [diff] [blame] | 1231 | .name = "set_password", |
| 1232 | .args_type = "protocol:s,password:s,connected:s?", |
| 1233 | .params = "protocol password action-if-connected", |
| 1234 | .help = "set spice/vnc password", |
| 1235 | .user_print = monitor_user_noop, |
| 1236 | .mhandler.cmd_new = set_password, |
| 1237 | }, |
| 1238 | |
| 1239 | STEXI |
| 1240 | @item set_password [ vnc | spice ] password [ action-if-connected ] |
| 1241 | @findex set_password |
| 1242 | |
| 1243 | Change spice/vnc password. Use zero to make the password stay valid |
| 1244 | forever. @var{action-if-connected} specifies what should happen in |
| 1245 | case a connection is established: @var{fail} makes the password change |
| 1246 | fail. @var{disconnect} changes the password and disconnects the |
| 1247 | client. @var{keep} changes the password and keeps the connection up. |
| 1248 | @var{keep} is the default. |
| 1249 | ETEXI |
| 1250 | |
| 1251 | { |
| 1252 | .name = "expire_password", |
| 1253 | .args_type = "protocol:s,time:s", |
| 1254 | .params = "protocol time", |
| 1255 | .help = "set spice/vnc password expire-time", |
| 1256 | .user_print = monitor_user_noop, |
| 1257 | .mhandler.cmd_new = expire_password, |
| 1258 | }, |
| 1259 | |
| 1260 | STEXI |
| 1261 | @item expire_password [ vnc | spice ] expire-time |
| 1262 | @findex expire_password |
| 1263 | |
| 1264 | Specify when a password for spice/vnc becomes |
| 1265 | invalid. @var{expire-time} accepts: |
| 1266 | |
| 1267 | @table @var |
| 1268 | @item now |
| 1269 | Invalidate password instantly. |
| 1270 | |
| 1271 | @item never |
| 1272 | Password stays valid forever. |
| 1273 | |
| 1274 | @item +nsec |
| 1275 | Password stays valid for @var{nsec} seconds starting now. |
| 1276 | |
| 1277 | @item nsec |
| 1278 | Password is invalidated at the given time. @var{nsec} are the seconds |
| 1279 | passed since 1970, i.e. unix epoch. |
| 1280 | |
| 1281 | @end table |
| 1282 | ETEXI |
| 1283 | |
| 1284 | { |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1285 | .name = "info", |
| 1286 | .args_type = "item:s?", |
| 1287 | .params = "[subcommand]", |
| 1288 | .help = "show various information about the system state", |
Luiz Capitulino | 1162daa | 2010-09-13 12:15:26 -0300 | [diff] [blame] | 1289 | .mhandler.cmd = do_info, |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1290 | }, |
| 1291 | |
| 1292 | STEXI |
| 1293 | @item info @var{subcommand} |
| 1294 | @findex info |
| 1295 | Show various information about the system state. |
| 1296 | |
| 1297 | @table @option |
| 1298 | @item info version |
| 1299 | show the version of QEMU |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1300 | @item info network |
| 1301 | show the various VLANs and the associated devices |
| 1302 | @item info chardev |
| 1303 | show the character devices |
| 1304 | @item info block |
| 1305 | show the block devices |
| 1306 | @item info blockstats |
| 1307 | show block device statistics |
| 1308 | @item info registers |
| 1309 | show the cpu registers |
| 1310 | @item info cpus |
| 1311 | show infos for each CPU |
| 1312 | @item info history |
| 1313 | show the command line history |
| 1314 | @item info irq |
| 1315 | show the interrupts statistics (if available) |
| 1316 | @item info pic |
| 1317 | show i8259 (PIC) state |
| 1318 | @item info pci |
| 1319 | show emulated PCI device info |
| 1320 | @item info tlb |
Scott Wood | bebabbc | 2011-08-18 10:38:42 +0000 | [diff] [blame] | 1321 | show virtual to physical memory mappings (i386, SH4, SPARC, and PPC only) |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1322 | @item info mem |
| 1323 | show the active virtual memory mappings (i386 only) |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1324 | @item info jit |
| 1325 | show dynamic compiler info |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1326 | @item info numa |
| 1327 | show NUMA information |
Jan Kiszka | b40292e | 2010-05-31 14:43:31 -0300 | [diff] [blame] | 1328 | @item info kvm |
| 1329 | show KVM information |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1330 | @item info usb |
| 1331 | show USB devices plugged on the virtual USB hub |
| 1332 | @item info usbhost |
| 1333 | show all USB host devices |
| 1334 | @item info profile |
| 1335 | show profiling information |
| 1336 | @item info capture |
| 1337 | show information about active capturing |
| 1338 | @item info snapshots |
| 1339 | show list of VM snapshots |
| 1340 | @item info status |
| 1341 | show the current VM status (running|paused) |
| 1342 | @item info pcmcia |
| 1343 | show guest PCMCIA status |
| 1344 | @item info mice |
| 1345 | show which guest mouse is receiving events |
| 1346 | @item info vnc |
| 1347 | show the vnc server status |
| 1348 | @item info name |
| 1349 | show the current VM name |
| 1350 | @item info uuid |
| 1351 | show the current VM UUID |
| 1352 | @item info cpustats |
| 1353 | show CPU statistics |
| 1354 | @item info usernet |
| 1355 | show user network stack connection states |
| 1356 | @item info migrate |
| 1357 | show migration status |
| 1358 | @item info balloon |
| 1359 | show balloon information |
| 1360 | @item info qtree |
| 1361 | show device tree |
| 1362 | @item info qdm |
| 1363 | show qdev device model list |
| 1364 | @item info roms |
| 1365 | show roms |
| 1366 | @end table |
| 1367 | ETEXI |
| 1368 | |
Lluís | 6d8a764 | 2011-08-31 20:30:43 +0200 | [diff] [blame] | 1369 | #ifdef CONFIG_TRACE_SIMPLE |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 1370 | STEXI |
| 1371 | @item info trace |
| 1372 | show contents of trace buffer |
Lluís | 31965ae | 2011-08-31 20:31:24 +0200 | [diff] [blame] | 1373 | ETEXI |
| 1374 | #endif |
| 1375 | |
| 1376 | STEXI |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 1377 | @item info trace-events |
| 1378 | show available trace events and their state |
| 1379 | ETEXI |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 1380 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1381 | STEXI |
| 1382 | @end table |
| 1383 | ETEXI |