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