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|?", |
Wenchao Xia | 129be00 | 2013-08-27 20:38:26 +0800 | [diff] [blame] | 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", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 31 | .mhandler.cmd = hmp_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. |
Jeff Cody | 3722290 | 2014-01-24 09:02:37 -0500 | [diff] [blame] | 38 | If the backing file is smaller than the snapshot, then the backing file will be |
| 39 | resized to be the same size as the snapshot. If the snapshot is smaller than |
| 40 | the backing file, the backing file will not be truncated. If you want the |
| 41 | backing file to match the size of the smaller snapshot, you can safely truncate |
| 42 | it yourself once the commit operation successfully completes. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 43 | ETEXI |
| 44 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 45 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 46 | .name = "q|quit", |
| 47 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 48 | .params = "", |
| 49 | .help = "quit the emulator", |
Luiz Capitulino | 7a7f325 | 2011-09-15 14:20:28 -0300 | [diff] [blame] | 50 | .mhandler.cmd = hmp_quit, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 51 | }, |
| 52 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 53 | STEXI |
| 54 | @item q or quit |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 55 | @findex quit |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 56 | Quit the emulator. |
| 57 | ETEXI |
| 58 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 59 | { |
Christoph Hellwig | 6d4a2b3 | 2011-01-24 13:32:33 +0100 | [diff] [blame] | 60 | .name = "block_resize", |
| 61 | .args_type = "device:B,size:o", |
| 62 | .params = "device size", |
| 63 | .help = "resize a block image", |
Luiz Capitulino | 5e7caac | 2011-11-25 14:57:10 -0200 | [diff] [blame] | 64 | .mhandler.cmd = hmp_block_resize, |
Christoph Hellwig | 6d4a2b3 | 2011-01-24 13:32:33 +0100 | [diff] [blame] | 65 | }, |
| 66 | |
| 67 | STEXI |
| 68 | @item block_resize |
| 69 | @findex block_resize |
| 70 | Resize a block image while a guest is running. Usually requires guest |
| 71 | action to see the updated size. Resize to a lower size is supported, |
| 72 | but should be used with extreme caution. Note that this command only |
| 73 | resizes image files, it can not resize block devices like LVM volumes. |
| 74 | ETEXI |
| 75 | |
Stefan Hajnoczi | 12bd451 | 2012-01-18 14:40:46 +0000 | [diff] [blame] | 76 | { |
| 77 | .name = "block_stream", |
Stefan Hajnoczi | c83c66c | 2012-04-25 16:51:03 +0100 | [diff] [blame] | 78 | .args_type = "device:B,speed:o?,base:s?", |
| 79 | .params = "device [speed [base]]", |
Stefan Hajnoczi | 12bd451 | 2012-01-18 14:40:46 +0000 | [diff] [blame] | 80 | .help = "copy data from a backing file into a block device", |
| 81 | .mhandler.cmd = hmp_block_stream, |
| 82 | }, |
| 83 | |
| 84 | STEXI |
| 85 | @item block_stream |
| 86 | @findex block_stream |
| 87 | Copy data from a backing file into a block device. |
| 88 | ETEXI |
Christoph Hellwig | 6d4a2b3 | 2011-01-24 13:32:33 +0100 | [diff] [blame] | 89 | |
| 90 | { |
Stefan Hajnoczi | 2d47c6e | 2012-01-18 14:40:47 +0000 | [diff] [blame] | 91 | .name = "block_job_set_speed", |
Stefan Hajnoczi | 882ec7c | 2012-04-25 16:51:02 +0100 | [diff] [blame] | 92 | .args_type = "device:B,speed:o", |
| 93 | .params = "device speed", |
Stefan Hajnoczi | 2d47c6e | 2012-01-18 14:40:47 +0000 | [diff] [blame] | 94 | .help = "set maximum speed for a background block operation", |
| 95 | .mhandler.cmd = hmp_block_job_set_speed, |
| 96 | }, |
| 97 | |
| 98 | STEXI |
Paolo Bonzini | 4451b79 | 2012-04-13 12:03:46 +0200 | [diff] [blame] | 99 | @item block_job_set_speed |
| 100 | @findex block_job_set_speed |
Stefan Hajnoczi | 2d47c6e | 2012-01-18 14:40:47 +0000 | [diff] [blame] | 101 | Set maximum speed for a background block operation. |
| 102 | ETEXI |
| 103 | |
| 104 | { |
Stefan Hajnoczi | 370521a | 2012-01-18 14:40:48 +0000 | [diff] [blame] | 105 | .name = "block_job_cancel", |
Paolo Bonzini | 6e37fb8 | 2012-09-28 17:22:51 +0200 | [diff] [blame] | 106 | .args_type = "force:-f,device:B", |
| 107 | .params = "[-f] device", |
| 108 | .help = "stop an active background block operation (use -f" |
| 109 | "\n\t\t\t if the operation is currently paused)", |
Stefan Hajnoczi | 370521a | 2012-01-18 14:40:48 +0000 | [diff] [blame] | 110 | .mhandler.cmd = hmp_block_job_cancel, |
| 111 | }, |
| 112 | |
| 113 | STEXI |
| 114 | @item block_job_cancel |
| 115 | @findex block_job_cancel |
Paolo Bonzini | aeae883 | 2012-10-18 16:49:21 +0200 | [diff] [blame] | 116 | Stop an active background block operation (streaming, mirroring). |
| 117 | ETEXI |
| 118 | |
| 119 | { |
| 120 | .name = "block_job_complete", |
| 121 | .args_type = "device:B", |
| 122 | .params = "device", |
| 123 | .help = "stop an active background block operation", |
| 124 | .mhandler.cmd = hmp_block_job_complete, |
| 125 | }, |
| 126 | |
| 127 | STEXI |
| 128 | @item block_job_complete |
| 129 | @findex block_job_complete |
| 130 | Manually trigger completion of an active background block operation. |
| 131 | For mirroring, this will switch the device to the destination path. |
Stefan Hajnoczi | 370521a | 2012-01-18 14:40:48 +0000 | [diff] [blame] | 132 | ETEXI |
| 133 | |
| 134 | { |
Paolo Bonzini | 6e37fb8 | 2012-09-28 17:22:51 +0200 | [diff] [blame] | 135 | .name = "block_job_pause", |
| 136 | .args_type = "device:B", |
| 137 | .params = "device", |
| 138 | .help = "pause an active background block operation", |
| 139 | .mhandler.cmd = hmp_block_job_pause, |
| 140 | }, |
| 141 | |
| 142 | STEXI |
| 143 | @item block_job_pause |
| 144 | @findex block_job_pause |
| 145 | Pause an active block streaming operation. |
| 146 | ETEXI |
| 147 | |
| 148 | { |
| 149 | .name = "block_job_resume", |
| 150 | .args_type = "device:B", |
| 151 | .params = "device", |
| 152 | .help = "resume a paused background block operation", |
| 153 | .mhandler.cmd = hmp_block_job_resume, |
| 154 | }, |
| 155 | |
| 156 | STEXI |
| 157 | @item block_job_resume |
| 158 | @findex block_job_resume |
| 159 | Resume a paused block streaming operation. |
| 160 | ETEXI |
| 161 | |
| 162 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 163 | .name = "eject", |
Luiz Capitulino | 78d714e | 2009-12-14 18:53:21 -0200 | [diff] [blame] | 164 | .args_type = "force:-f,device:B", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 165 | .params = "[-f] device", |
| 166 | .help = "eject a removable medium (use -f to force it)", |
Luiz Capitulino | c245b6a | 2011-12-07 16:02:36 -0200 | [diff] [blame] | 167 | .mhandler.cmd = hmp_eject, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 168 | }, |
| 169 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 170 | STEXI |
| 171 | @item eject [-f] @var{device} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 172 | @findex eject |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 173 | Eject a removable medium (use -f to force it). |
| 174 | ETEXI |
| 175 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 176 | { |
Ryan Harper | 9063f81 | 2010-11-12 11:07:13 -0600 | [diff] [blame] | 177 | .name = "drive_del", |
Hani Benhabiles | f7bdc41 | 2014-04-13 16:25:05 +0100 | [diff] [blame] | 178 | .args_type = "id:B", |
Ryan Harper | 9063f81 | 2010-11-12 11:07:13 -0600 | [diff] [blame] | 179 | .params = "device", |
| 180 | .help = "remove host block device", |
Markus Armbruster | 072ebe6 | 2015-03-05 17:00:56 +0100 | [diff] [blame] | 181 | .mhandler.cmd = hmp_drive_del, |
Ryan Harper | 9063f81 | 2010-11-12 11:07:13 -0600 | [diff] [blame] | 182 | }, |
| 183 | |
| 184 | STEXI |
| 185 | @item drive_del @var{device} |
| 186 | @findex drive_del |
| 187 | Remove host block device. The result is that guest generated IO is no longer |
| 188 | submitted against the host device underlying the disk. Once a drive has |
| 189 | been deleted, the QEMU Block layer returns -EIO which results in IO |
| 190 | errors in the guest for applications that are reading/writing to the device. |
Stefan Hajnoczi | 293c51a | 2013-06-05 10:33:14 +0200 | [diff] [blame] | 191 | These errors are always reported to the guest, regardless of the drive's error |
| 192 | actions (drive options rerror, werror). |
Ryan Harper | 9063f81 | 2010-11-12 11:07:13 -0600 | [diff] [blame] | 193 | ETEXI |
| 194 | |
| 195 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 196 | .name = "change", |
Max Reitz | baead0a | 2015-10-26 21:39:18 +0100 | [diff] [blame] | 197 | .args_type = "device:B,target:F,arg:s?,read-only-mode:s?", |
| 198 | .params = "device filename [format [read-only-mode]]", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 199 | .help = "change a removable medium, optional format", |
Luiz Capitulino | 333a96e | 2011-12-08 11:13:50 -0200 | [diff] [blame] | 200 | .mhandler.cmd = hmp_change, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 201 | }, |
| 202 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 203 | STEXI |
| 204 | @item change @var{device} @var{setting} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 205 | @findex change |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 206 | Change the configuration of a device. |
| 207 | |
| 208 | @table @option |
Max Reitz | baead0a | 2015-10-26 21:39:18 +0100 | [diff] [blame] | 209 | @item change @var{diskdevice} @var{filename} [@var{format} [@var{read-only-mode}]] |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 210 | Change the medium for a removable disk device to point to @var{filename}. eg |
| 211 | |
| 212 | @example |
| 213 | (qemu) change ide1-cd0 /path/to/some.iso |
| 214 | @end example |
| 215 | |
| 216 | @var{format} is optional. |
| 217 | |
Max Reitz | baead0a | 2015-10-26 21:39:18 +0100 | [diff] [blame] | 218 | @var{read-only-mode} may be used to change the read-only status of the device. |
| 219 | It accepts the following values: |
| 220 | |
| 221 | @table @var |
| 222 | @item retain |
| 223 | Retains the current status; this is the default. |
| 224 | |
| 225 | @item read-only |
| 226 | Makes the device read-only. |
| 227 | |
| 228 | @item read-write |
| 229 | Makes the device writable. |
| 230 | @end table |
| 231 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 232 | @item change vnc @var{display},@var{options} |
| 233 | Change the configuration of the VNC server. The valid syntax for @var{display} |
| 234 | and @var{options} are described at @ref{sec_invocation}. eg |
| 235 | |
| 236 | @example |
| 237 | (qemu) change vnc localhost:1 |
| 238 | @end example |
| 239 | |
| 240 | @item change vnc password [@var{password}] |
| 241 | |
| 242 | Change the password associated with the VNC server. If the new password is not |
| 243 | supplied, the monitor will prompt for it to be entered. VNC passwords are only |
| 244 | significant up to 8 letters. eg |
| 245 | |
| 246 | @example |
| 247 | (qemu) change vnc password |
| 248 | Password: ******** |
| 249 | @end example |
| 250 | |
| 251 | @end table |
| 252 | ETEXI |
| 253 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 254 | { |
| 255 | .name = "screendump", |
| 256 | .args_type = "filename:F", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 257 | .params = "filename", |
| 258 | .help = "save screen into PPM image 'filename'", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 259 | .mhandler.cmd = hmp_screendump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 260 | }, |
| 261 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 262 | STEXI |
| 263 | @item screendump @var{filename} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 264 | @findex screendump |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 265 | Save screen into PPM image @var{filename}. |
| 266 | ETEXI |
| 267 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 268 | { |
| 269 | .name = "logfile", |
| 270 | .args_type = "filename:F", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 271 | .params = "filename", |
| 272 | .help = "output logs to 'filename'", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 273 | .mhandler.cmd = hmp_logfile, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 274 | }, |
| 275 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 276 | STEXI |
| 277 | @item logfile @var{filename} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 278 | @findex logfile |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 279 | Output logs to @var{filename}. |
| 280 | ETEXI |
| 281 | |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 282 | { |
| 283 | .name = "trace-event", |
| 284 | .args_type = "name:s,option:b", |
| 285 | .params = "name on|off", |
| 286 | .help = "changes status of a specific trace event", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 287 | .mhandler.cmd = hmp_trace_event, |
Dr. David Alan Gilbert | 987bd27 | 2015-08-14 11:27:43 +0100 | [diff] [blame] | 288 | .command_completion = trace_event_completion, |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 289 | }, |
| 290 | |
| 291 | STEXI |
| 292 | @item trace-event |
| 293 | @findex trace-event |
| 294 | changes status of a trace event |
| 295 | ETEXI |
Stefan Hajnoczi | c5ceb52 | 2010-07-13 09:26:33 +0100 | [diff] [blame] | 296 | |
Michael Roth | c45a816 | 2011-10-02 08:44:37 -0500 | [diff] [blame] | 297 | #if defined(CONFIG_TRACE_SIMPLE) |
Stefan Hajnoczi | c5ceb52 | 2010-07-13 09:26:33 +0100 | [diff] [blame] | 298 | { |
| 299 | .name = "trace-file", |
| 300 | .args_type = "op:s?,arg:F?", |
| 301 | .params = "on|off|flush|set [arg]", |
| 302 | .help = "open, close, or flush trace file, or set a new file name", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 303 | .mhandler.cmd = hmp_trace_file, |
Stefan Hajnoczi | c5ceb52 | 2010-07-13 09:26:33 +0100 | [diff] [blame] | 304 | }, |
| 305 | |
| 306 | STEXI |
| 307 | @item trace-file on|off|flush |
| 308 | @findex trace-file |
| 309 | Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed. |
| 310 | ETEXI |
Prerna Saxena | 22890ab | 2010-06-24 17:04:53 +0530 | [diff] [blame] | 311 | #endif |
| 312 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 313 | { |
| 314 | .name = "log", |
| 315 | .args_type = "items:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 316 | .params = "item1[,...]", |
Peter Maydell | 989b697 | 2013-02-26 17:52:40 +0000 | [diff] [blame] | 317 | .help = "activate logging of the specified items", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 318 | .mhandler.cmd = hmp_log, |
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 log @var{item1}[,...] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 323 | @findex log |
Peter Maydell | 989b697 | 2013-02-26 17:52:40 +0000 | [diff] [blame] | 324 | Activate logging of the specified items. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 325 | ETEXI |
| 326 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 327 | { |
| 328 | .name = "savevm", |
| 329 | .args_type = "name:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 330 | .params = "[tag|id]", |
| 331 | .help = "save a VM snapshot. If no tag or id are provided, a new snapshot is created", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 332 | .mhandler.cmd = hmp_savevm, |
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 savevm [@var{tag}|@var{id}] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 337 | @findex savevm |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 338 | Create a snapshot of the whole virtual machine. If @var{tag} is |
| 339 | provided, it is used as human readable identifier. If there is already |
| 340 | a snapshot with the same tag or ID, it is replaced. More info at |
| 341 | @ref{vm_snapshots}. |
| 342 | ETEXI |
| 343 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 344 | { |
| 345 | .name = "loadvm", |
| 346 | .args_type = "name:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 347 | .params = "tag|id", |
| 348 | .help = "restore a VM snapshot from its tag or id", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 349 | .mhandler.cmd = hmp_loadvm, |
Hani Benhabiles | b21631f | 2014-05-27 23:39:37 +0100 | [diff] [blame] | 350 | .command_completion = loadvm_completion, |
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 loadvm @var{tag}|@var{id} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 355 | @findex loadvm |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 356 | Set the whole virtual machine to the snapshot identified by the tag |
| 357 | @var{tag} or the unique snapshot ID @var{id}. |
| 358 | ETEXI |
| 359 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 360 | { |
| 361 | .name = "delvm", |
| 362 | .args_type = "name:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 363 | .params = "tag|id", |
| 364 | .help = "delete a VM snapshot from its tag or id", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 365 | .mhandler.cmd = hmp_delvm, |
Hani Benhabiles | b21631f | 2014-05-27 23:39:37 +0100 | [diff] [blame] | 366 | .command_completion = delvm_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 367 | }, |
| 368 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 369 | STEXI |
| 370 | @item delvm @var{tag}|@var{id} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 371 | @findex delvm |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 372 | Delete the snapshot identified by @var{tag} or @var{id}. |
| 373 | ETEXI |
| 374 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 375 | { |
| 376 | .name = "singlestep", |
| 377 | .args_type = "option:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 378 | .params = "[on|off]", |
| 379 | .help = "run emulation in singlestep mode or switch to normal mode", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 380 | .mhandler.cmd = hmp_singlestep, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 381 | }, |
| 382 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 383 | STEXI |
| 384 | @item singlestep [off] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 385 | @findex singlestep |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 386 | Run the emulation in single step mode. |
| 387 | If called with option off, the emulation returns to normal mode. |
| 388 | ETEXI |
| 389 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 390 | { |
| 391 | .name = "stop", |
| 392 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 393 | .params = "", |
| 394 | .help = "stop emulation", |
Luiz Capitulino | 5f158f2 | 2011-09-15 14:34:39 -0300 | [diff] [blame] | 395 | .mhandler.cmd = hmp_stop, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 396 | }, |
| 397 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 398 | STEXI |
| 399 | @item stop |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 400 | @findex stop |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 401 | Stop emulation. |
| 402 | ETEXI |
| 403 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 404 | { |
| 405 | .name = "c|cont", |
| 406 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 407 | .params = "", |
| 408 | .help = "resume emulation", |
Luiz Capitulino | e42e818 | 2011-11-22 17:58:31 -0200 | [diff] [blame] | 409 | .mhandler.cmd = hmp_cont, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 410 | }, |
| 411 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 412 | STEXI |
| 413 | @item c or cont |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 414 | @findex cont |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 415 | Resume emulation. |
| 416 | ETEXI |
| 417 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 418 | { |
Gerd Hoffmann | 9b9df25 | 2012-02-23 13:45:21 +0100 | [diff] [blame] | 419 | .name = "system_wakeup", |
| 420 | .args_type = "", |
| 421 | .params = "", |
| 422 | .help = "wakeup guest from suspend", |
| 423 | .mhandler.cmd = hmp_system_wakeup, |
| 424 | }, |
| 425 | |
| 426 | STEXI |
| 427 | @item system_wakeup |
| 428 | @findex system_wakeup |
| 429 | Wakeup guest from suspend. |
| 430 | ETEXI |
| 431 | |
| 432 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 433 | .name = "gdbserver", |
| 434 | .args_type = "device:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 435 | .params = "[device]", |
| 436 | .help = "start gdbserver on given device (default 'tcp::1234'), stop with 'none'", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 437 | .mhandler.cmd = hmp_gdbserver, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 438 | }, |
| 439 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 440 | STEXI |
| 441 | @item gdbserver [@var{port}] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 442 | @findex gdbserver |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 443 | Start gdbserver session (default @var{port}=1234) |
| 444 | ETEXI |
| 445 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 446 | { |
| 447 | .name = "x", |
| 448 | .args_type = "fmt:/,addr:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 449 | .params = "/fmt addr", |
| 450 | .help = "virtual memory dump starting at 'addr'", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 451 | .mhandler.cmd = hmp_memory_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 452 | }, |
| 453 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 454 | STEXI |
| 455 | @item x/fmt @var{addr} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 456 | @findex x |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 457 | Virtual memory dump starting at @var{addr}. |
| 458 | ETEXI |
| 459 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 460 | { |
| 461 | .name = "xp", |
| 462 | .args_type = "fmt:/,addr:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 463 | .params = "/fmt addr", |
| 464 | .help = "physical memory dump starting at 'addr'", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 465 | .mhandler.cmd = hmp_physical_memory_dump, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 466 | }, |
| 467 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 468 | STEXI |
| 469 | @item xp /@var{fmt} @var{addr} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 470 | @findex xp |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 471 | Physical memory dump starting at @var{addr}. |
| 472 | |
| 473 | @var{fmt} is a format which tells the command how to format the |
| 474 | data. Its syntax is: @option{/@{count@}@{format@}@{size@}} |
| 475 | |
| 476 | @table @var |
| 477 | @item count |
| 478 | is the number of items to be dumped. |
| 479 | |
| 480 | @item format |
| 481 | can be x (hex), d (signed decimal), u (unsigned decimal), o (octal), |
| 482 | c (char) or i (asm instruction). |
| 483 | |
| 484 | @item size |
| 485 | can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86, |
| 486 | @code{h} or @code{w} can be specified with the @code{i} format to |
| 487 | respectively select 16 or 32 bit code instruction size. |
| 488 | |
| 489 | @end table |
| 490 | |
| 491 | Examples: |
| 492 | @itemize |
| 493 | @item |
| 494 | Dump 10 instructions at the current instruction pointer: |
| 495 | @example |
| 496 | (qemu) x/10i $eip |
| 497 | 0x90107063: ret |
| 498 | 0x90107064: sti |
| 499 | 0x90107065: lea 0x0(%esi,1),%esi |
| 500 | 0x90107069: lea 0x0(%edi,1),%edi |
| 501 | 0x90107070: ret |
| 502 | 0x90107071: jmp 0x90107080 |
| 503 | 0x90107073: nop |
| 504 | 0x90107074: nop |
| 505 | 0x90107075: nop |
| 506 | 0x90107076: nop |
| 507 | @end example |
| 508 | |
| 509 | @item |
| 510 | Dump 80 16 bit values at the start of the video memory. |
| 511 | @smallexample |
| 512 | (qemu) xp/80hx 0xb8000 |
| 513 | 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42 |
| 514 | 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41 |
| 515 | 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72 |
| 516 | 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73 |
| 517 | 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20 |
| 518 | 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720 |
| 519 | 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 520 | 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 521 | 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 522 | 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 |
| 523 | @end smallexample |
| 524 | @end itemize |
| 525 | ETEXI |
| 526 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 527 | { |
| 528 | .name = "p|print", |
| 529 | .args_type = "fmt:/,val:l", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 530 | .params = "/fmt expr", |
| 531 | .help = "print expression value (use $reg for CPU register access)", |
Luiz Capitulino | af4ce88 | 2009-10-07 13:41:52 -0300 | [diff] [blame] | 532 | .mhandler.cmd = do_print, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 533 | }, |
| 534 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 535 | STEXI |
| 536 | @item p or print/@var{fmt} @var{expr} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 537 | @findex print |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 538 | Print expression value. Only the @var{format} part of @var{fmt} is |
| 539 | used. |
| 540 | ETEXI |
| 541 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 542 | { |
| 543 | .name = "i", |
| 544 | .args_type = "fmt:/,addr:i,index:i.", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 545 | .params = "/fmt addr", |
| 546 | .help = "I/O port read", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 547 | .mhandler.cmd = hmp_ioport_read, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 548 | }, |
| 549 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 550 | STEXI |
Markus Armbruster | b76d799 | 2015-03-10 13:23:04 +0100 | [diff] [blame] | 551 | @item i/@var{fmt} @var{addr} [.@var{index}] |
| 552 | @findex i |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 553 | Read I/O port. |
| 554 | ETEXI |
| 555 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 556 | { |
| 557 | .name = "o", |
| 558 | .args_type = "fmt:/,addr:i,val:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 559 | .params = "/fmt addr value", |
| 560 | .help = "I/O port write", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 561 | .mhandler.cmd = hmp_ioport_write, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 562 | }, |
| 563 | |
Jan Kiszka | f114784 | 2009-07-14 10:20:11 +0200 | [diff] [blame] | 564 | STEXI |
Markus Armbruster | b76d799 | 2015-03-10 13:23:04 +0100 | [diff] [blame] | 565 | @item o/@var{fmt} @var{addr} @var{val} |
| 566 | @findex o |
Jan Kiszka | f114784 | 2009-07-14 10:20:11 +0200 | [diff] [blame] | 567 | Write to I/O port. |
| 568 | ETEXI |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 569 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 570 | { |
| 571 | .name = "sendkey", |
Amos Kong | 2ef20c1 | 2012-08-31 10:56:22 +0800 | [diff] [blame] | 572 | .args_type = "keys:s,hold-time:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 573 | .params = "keys [hold_ms]", |
| 574 | .help = "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 575 | .mhandler.cmd = hmp_sendkey, |
Hani Benhabiles | 29136cd | 2014-05-07 23:41:27 +0100 | [diff] [blame] | 576 | .command_completion = sendkey_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 577 | }, |
| 578 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 579 | STEXI |
| 580 | @item sendkey @var{keys} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 581 | @findex sendkey |
Amos Kong | 886cc70 | 2012-08-31 10:56:20 +0800 | [diff] [blame] | 582 | Send @var{keys} to the guest. @var{keys} could be the name of the |
| 583 | key or the raw value in hexadecimal format. Use @code{-} to press |
| 584 | several keys simultaneously. Example: |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 585 | @example |
| 586 | sendkey ctrl-alt-f1 |
| 587 | @end example |
| 588 | |
| 589 | This command is useful to send keys that your graphical user interface |
| 590 | intercepts at low level, such as @code{ctrl-alt-f1} in X Window. |
| 591 | ETEXI |
| 592 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 593 | { |
| 594 | .name = "system_reset", |
| 595 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 596 | .params = "", |
| 597 | .help = "reset the system", |
Luiz Capitulino | 38d2265 | 2011-09-15 14:41:46 -0300 | [diff] [blame] | 598 | .mhandler.cmd = hmp_system_reset, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 599 | }, |
| 600 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 601 | STEXI |
| 602 | @item system_reset |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 603 | @findex system_reset |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 604 | Reset the system. |
| 605 | ETEXI |
| 606 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 607 | { |
| 608 | .name = "system_powerdown", |
| 609 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 610 | .params = "", |
| 611 | .help = "send system power down event", |
Luiz Capitulino | 5bc465e | 2011-09-28 11:06:15 -0300 | [diff] [blame] | 612 | .mhandler.cmd = hmp_system_powerdown, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 613 | }, |
| 614 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 615 | STEXI |
| 616 | @item system_powerdown |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 617 | @findex system_powerdown |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 618 | Power down the system (if supported). |
| 619 | ETEXI |
| 620 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 621 | { |
| 622 | .name = "sum", |
| 623 | .args_type = "start:i,size:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 624 | .params = "addr size", |
| 625 | .help = "compute the checksum of a memory region", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 626 | .mhandler.cmd = hmp_sum, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 627 | }, |
| 628 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 629 | STEXI |
| 630 | @item sum @var{addr} @var{size} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 631 | @findex sum |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 632 | Compute the checksum of a memory region. |
| 633 | ETEXI |
| 634 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 635 | { |
| 636 | .name = "usb_add", |
| 637 | .args_type = "devname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 638 | .params = "device", |
| 639 | .help = "add USB device (e.g. 'host:bus.addr' or 'host:vendor_id:product_id')", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 640 | .mhandler.cmd = hmp_usb_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 641 | }, |
| 642 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 643 | STEXI |
| 644 | @item usb_add @var{devname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 645 | @findex usb_add |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 646 | Add the USB device @var{devname}. For details of available devices see |
| 647 | @ref{usb_devices} |
| 648 | ETEXI |
| 649 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 650 | { |
| 651 | .name = "usb_del", |
| 652 | .args_type = "devname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 653 | .params = "device", |
| 654 | .help = "remove USB device 'bus.addr'", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 655 | .mhandler.cmd = hmp_usb_del, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 656 | }, |
| 657 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 658 | STEXI |
| 659 | @item usb_del @var{devname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 660 | @findex usb_del |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 661 | Remove the USB device @var{devname} from the QEMU virtual USB |
| 662 | hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor |
| 663 | command @code{info usb} to see the devices you can remove. |
| 664 | ETEXI |
| 665 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 666 | { |
| 667 | .name = "device_add", |
Markus Armbruster | c7e4e8c | 2010-02-10 20:47:28 +0100 | [diff] [blame] | 668 | .args_type = "device:O", |
| 669 | .params = "driver[,prop=value][,...]", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 670 | .help = "add device, like -device on the command line", |
Markus Armbruster | 318660f | 2015-03-05 17:24:48 +0100 | [diff] [blame] | 671 | .mhandler.cmd = hmp_device_add, |
Hani Benhabiles | 2da1b3a | 2014-04-13 16:25:07 +0100 | [diff] [blame] | 672 | .command_completion = device_add_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 673 | }, |
| 674 | |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 675 | STEXI |
| 676 | @item device_add @var{config} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 677 | @findex device_add |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 678 | Add device. |
| 679 | ETEXI |
| 680 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 681 | { |
| 682 | .name = "device_del", |
| 683 | .args_type = "id:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 684 | .params = "device", |
| 685 | .help = "remove device", |
Luiz Capitulino | a15fef2 | 2012-03-29 12:38:50 -0300 | [diff] [blame] | 686 | .mhandler.cmd = hmp_device_del, |
Hani Benhabiles | 2da1b3a | 2014-04-13 16:25:07 +0100 | [diff] [blame] | 687 | .command_completion = device_del_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 688 | }, |
| 689 | |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 690 | STEXI |
| 691 | @item device_del @var{id} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 692 | @findex device_del |
Daniel P. Berrange | 6287d82 | 2015-09-11 13:33:56 +0100 | [diff] [blame] | 693 | Remove device @var{id}. @var{id} may be a short ID |
| 694 | or a QOM object path. |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 695 | ETEXI |
| 696 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 697 | { |
| 698 | .name = "cpu", |
| 699 | .args_type = "index:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 700 | .params = "index", |
| 701 | .help = "set the default CPU", |
Luiz Capitulino | 755f196 | 2011-10-06 14:31:39 -0300 | [diff] [blame] | 702 | .mhandler.cmd = hmp_cpu, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 703 | }, |
Gerd Hoffmann | 3418bd2 | 2009-09-25 21:42:41 +0200 | [diff] [blame] | 704 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 705 | STEXI |
Markus Armbruster | c427ea9 | 2010-05-04 13:20:32 +0200 | [diff] [blame] | 706 | @item cpu @var{index} |
| 707 | @findex cpu |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 708 | Set the default CPU. |
| 709 | ETEXI |
| 710 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 711 | { |
| 712 | .name = "mouse_move", |
| 713 | .args_type = "dx_str:s,dy_str:s,dz_str:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 714 | .params = "dx dy [dz]", |
| 715 | .help = "send mouse move events", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 716 | .mhandler.cmd = hmp_mouse_move, |
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 mouse_move @var{dx} @var{dy} [@var{dz}] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 721 | @findex mouse_move |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 722 | Move the active mouse to the specified coordinates @var{dx} @var{dy} |
| 723 | with optional scroll axis @var{dz}. |
| 724 | ETEXI |
| 725 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 726 | { |
| 727 | .name = "mouse_button", |
| 728 | .args_type = "button_state:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 729 | .params = "state", |
| 730 | .help = "change mouse button state (1=L, 2=M, 4=R)", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 731 | .mhandler.cmd = hmp_mouse_button, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 732 | }, |
| 733 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 734 | STEXI |
| 735 | @item mouse_button @var{val} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 736 | @findex mouse_button |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 737 | Change the active mouse button state @var{val} (1=L, 2=M, 4=R). |
| 738 | ETEXI |
| 739 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 740 | { |
| 741 | .name = "mouse_set", |
| 742 | .args_type = "index:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 743 | .params = "index", |
| 744 | .help = "set which mouse device receives events", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 745 | .mhandler.cmd = hmp_mouse_set, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 746 | }, |
| 747 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 748 | STEXI |
| 749 | @item mouse_set @var{index} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 750 | @findex mouse_set |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 751 | Set which mouse device receives events at given @var{index}, index |
| 752 | can be obtained with |
| 753 | @example |
| 754 | info mice |
| 755 | @end example |
| 756 | ETEXI |
| 757 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 758 | { |
| 759 | .name = "wavcapture", |
| 760 | .args_type = "path:F,freq:i?,bits:i?,nchannels:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 761 | .params = "path [frequency [bits [channels]]]", |
| 762 | .help = "capture audio to a wave file (default frequency=44100 bits=16 channels=2)", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 763 | .mhandler.cmd = hmp_wavcapture, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 764 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 765 | STEXI |
| 766 | @item wavcapture @var{filename} [@var{frequency} [@var{bits} [@var{channels}]]] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 767 | @findex wavcapture |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 768 | Capture audio into @var{filename}. Using sample rate @var{frequency} |
| 769 | bits per sample @var{bits} and number of channels @var{channels}. |
| 770 | |
| 771 | Defaults: |
| 772 | @itemize @minus |
| 773 | @item Sample rate = 44100 Hz - CD quality |
| 774 | @item Bits = 16 |
| 775 | @item Number of channels = 2 - Stereo |
| 776 | @end itemize |
| 777 | ETEXI |
| 778 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 779 | { |
| 780 | .name = "stopcapture", |
| 781 | .args_type = "n:i", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 782 | .params = "capture index", |
| 783 | .help = "stop capture", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 784 | .mhandler.cmd = hmp_stopcapture, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 785 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 786 | STEXI |
| 787 | @item stopcapture @var{index} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 788 | @findex stopcapture |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 789 | Stop capture with a given @var{index}, index can be obtained with |
| 790 | @example |
| 791 | info capture |
| 792 | @end example |
| 793 | ETEXI |
| 794 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 795 | { |
| 796 | .name = "memsave", |
| 797 | .args_type = "val:l,size:i,filename:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 798 | .params = "addr size file", |
| 799 | .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] | 800 | .mhandler.cmd = hmp_memsave, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 801 | }, |
| 802 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 803 | STEXI |
| 804 | @item memsave @var{addr} @var{size} @var{file} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 805 | @findex memsave |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 806 | save to disk virtual memory dump starting at @var{addr} of size @var{size}. |
| 807 | ETEXI |
| 808 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 809 | { |
| 810 | .name = "pmemsave", |
| 811 | .args_type = "val:l,size:i,filename:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 812 | .params = "addr size file", |
| 813 | .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] | 814 | .mhandler.cmd = hmp_pmemsave, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 815 | }, |
| 816 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 817 | STEXI |
| 818 | @item pmemsave @var{addr} @var{size} @var{file} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 819 | @findex pmemsave |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 820 | save to disk physical memory dump starting at @var{addr} of size @var{size}. |
| 821 | ETEXI |
| 822 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 823 | { |
| 824 | .name = "boot_set", |
| 825 | .args_type = "bootdevice:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 826 | .params = "bootdevice", |
| 827 | .help = "define new values for the boot device list", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 828 | .mhandler.cmd = hmp_boot_set, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 829 | }, |
| 830 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 831 | STEXI |
| 832 | @item boot_set @var{bootdevicelist} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 833 | @findex boot_set |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 834 | Define new values for the boot device list. Those values will override |
| 835 | the values specified on the command line through the @code{-boot} option. |
| 836 | |
| 837 | The values that can be specified here depend on the machine type, but are |
| 838 | the same that can be specified in the @code{-boot} command line option. |
| 839 | ETEXI |
| 840 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 841 | { |
| 842 | .name = "nmi", |
Luiz Capitulino | e9b4b43 | 2011-04-29 12:11:50 -0300 | [diff] [blame] | 843 | .args_type = "", |
| 844 | .params = "", |
Alexey Kardashevskiy | 9cb805f | 2014-08-20 22:16:33 +1000 | [diff] [blame] | 845 | .help = "inject an NMI", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 846 | .mhandler.cmd = hmp_nmi, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 847 | }, |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 848 | STEXI |
| 849 | @item nmi @var{cpu} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 850 | @findex nmi |
Alexey Kardashevskiy | 9cb805f | 2014-08-20 22:16:33 +1000 | [diff] [blame] | 851 | Inject an NMI on the default CPU (x86/s390) or all CPUs (ppc64). |
Lei Li | 1f590cf | 2013-01-25 00:03:20 +0800 | [diff] [blame] | 852 | |
| 853 | ETEXI |
| 854 | |
| 855 | { |
Markus Armbruster | 3949e59 | 2013-02-06 21:27:24 +0100 | [diff] [blame] | 856 | .name = "ringbuf_write", |
Lei Li | 1f590cf | 2013-01-25 00:03:20 +0800 | [diff] [blame] | 857 | .args_type = "device:s,data:s", |
| 858 | .params = "device data", |
Markus Armbruster | 3949e59 | 2013-02-06 21:27:24 +0100 | [diff] [blame] | 859 | .help = "Write to a ring buffer character device", |
| 860 | .mhandler.cmd = hmp_ringbuf_write, |
Hani Benhabiles | 8e59777 | 2014-05-27 23:39:30 +0100 | [diff] [blame] | 861 | .command_completion = ringbuf_write_completion, |
Lei Li | 1f590cf | 2013-01-25 00:03:20 +0800 | [diff] [blame] | 862 | }, |
| 863 | |
| 864 | STEXI |
Markus Armbruster | 3949e59 | 2013-02-06 21:27:24 +0100 | [diff] [blame] | 865 | @item ringbuf_write @var{device} @var{data} |
| 866 | @findex ringbuf_write |
| 867 | Write @var{data} to ring buffer character device @var{device}. |
| 868 | @var{data} must be a UTF-8 string. |
Lei Li | 1f590cf | 2013-01-25 00:03:20 +0800 | [diff] [blame] | 869 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 870 | ETEXI |
| 871 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 872 | { |
Markus Armbruster | 3949e59 | 2013-02-06 21:27:24 +0100 | [diff] [blame] | 873 | .name = "ringbuf_read", |
Lei Li | 49b6d72 | 2013-01-25 00:03:21 +0800 | [diff] [blame] | 874 | .args_type = "device:s,size:i", |
| 875 | .params = "device size", |
Markus Armbruster | 3949e59 | 2013-02-06 21:27:24 +0100 | [diff] [blame] | 876 | .help = "Read from a ring buffer character device", |
| 877 | .mhandler.cmd = hmp_ringbuf_read, |
Hani Benhabiles | 8e59777 | 2014-05-27 23:39:30 +0100 | [diff] [blame] | 878 | .command_completion = ringbuf_write_completion, |
Lei Li | 49b6d72 | 2013-01-25 00:03:21 +0800 | [diff] [blame] | 879 | }, |
| 880 | |
| 881 | STEXI |
Markus Armbruster | 3949e59 | 2013-02-06 21:27:24 +0100 | [diff] [blame] | 882 | @item ringbuf_read @var{device} |
| 883 | @findex ringbuf_read |
| 884 | Read and print up to @var{size} bytes from ring buffer character |
| 885 | device @var{device}. |
Markus Armbruster | 543f341 | 2013-02-06 21:27:26 +0100 | [diff] [blame] | 886 | Certain non-printable characters are printed \uXXXX, where XXXX is the |
| 887 | character code in hexadecimal. Character \ is printed \\. |
Markus Armbruster | 3949e59 | 2013-02-06 21:27:24 +0100 | [diff] [blame] | 888 | Bug: can screw up when the buffer contains invalid UTF-8 sequences, |
| 889 | NUL characters, after the ring buffer lost data, and when reading |
| 890 | stops because the size limit is reached. |
Lei Li | 49b6d72 | 2013-01-25 00:03:21 +0800 | [diff] [blame] | 891 | |
| 892 | ETEXI |
| 893 | |
| 894 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 895 | .name = "migrate", |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 896 | .args_type = "detach:-d,blk:-b,inc:-i,uri:s", |
| 897 | .params = "[-d] [-b] [-i] uri", |
| 898 | .help = "migrate to URI (using -d to not wait for completion)" |
| 899 | "\n\t\t\t -b for migration without shared storage with" |
| 900 | " full copy of disk\n\t\t\t -i for migration without " |
| 901 | "shared storage with incremental copy of disk " |
| 902 | "(base image shared between src and destination)", |
Luiz Capitulino | e1c37d0 | 2011-12-05 14:48:01 -0200 | [diff] [blame] | 903 | .mhandler.cmd = hmp_migrate, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 904 | }, |
| 905 | |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 906 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 907 | STEXI |
lirans@il.ibm.com | fbc3d96 | 2009-11-02 15:41:13 +0200 | [diff] [blame] | 908 | @item migrate [-d] [-b] [-i] @var{uri} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 909 | @findex migrate |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 910 | 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] | 911 | -b for migration with full copy of disk |
| 912 | -i for migration with incremental copy of disk (base image is shared) |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 913 | ETEXI |
| 914 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 915 | { |
| 916 | .name = "migrate_cancel", |
| 917 | .args_type = "", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 918 | .params = "", |
| 919 | .help = "cancel the current VM migration", |
Luiz Capitulino | 6cdedb0 | 2011-11-27 22:54:09 -0200 | [diff] [blame] | 920 | .mhandler.cmd = hmp_migrate_cancel, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 921 | }, |
| 922 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 923 | STEXI |
| 924 | @item migrate_cancel |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 925 | @findex migrate_cancel |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 926 | Cancel the current VM migration. |
Orit Wasserman | 9e1ba4c | 2012-08-06 21:42:54 +0300 | [diff] [blame] | 927 | |
| 928 | ETEXI |
| 929 | |
| 930 | { |
Dr. David Alan Gilbert | bf1ae1f | 2015-02-19 11:40:28 +0000 | [diff] [blame] | 931 | .name = "migrate_incoming", |
| 932 | .args_type = "uri:s", |
| 933 | .params = "uri", |
| 934 | .help = "Continue an incoming migration from an -incoming defer", |
| 935 | .mhandler.cmd = hmp_migrate_incoming, |
| 936 | }, |
| 937 | |
| 938 | STEXI |
| 939 | @item migrate_incoming @var{uri} |
| 940 | @findex migrate_incoming |
| 941 | Continue an incoming migration using the @var{uri} (that has the same syntax |
| 942 | as the -incoming option). |
| 943 | |
| 944 | ETEXI |
| 945 | |
| 946 | { |
Orit Wasserman | 9e1ba4c | 2012-08-06 21:42:54 +0300 | [diff] [blame] | 947 | .name = "migrate_set_cache_size", |
| 948 | .args_type = "value:o", |
| 949 | .params = "value", |
| 950 | .help = "set cache size (in bytes) for XBZRLE migrations," |
| 951 | "the cache size will be rounded down to the nearest " |
| 952 | "power of 2.\n" |
| 953 | "The cache size affects the number of cache misses." |
| 954 | "In case of a high cache miss ratio you need to increase" |
| 955 | " the cache size", |
| 956 | .mhandler.cmd = hmp_migrate_set_cache_size, |
| 957 | }, |
| 958 | |
| 959 | STEXI |
| 960 | @item migrate_set_cache_size @var{value} |
| 961 | @findex migrate_set_cache_size |
| 962 | Set cache size to @var{value} (in bytes) for xbzrle migrations. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 963 | ETEXI |
| 964 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 965 | { |
| 966 | .name = "migrate_set_speed", |
Jes Sorensen | ed3d4a8 | 2010-10-21 17:15:48 +0200 | [diff] [blame] | 967 | .args_type = "value:o", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 968 | .params = "value", |
Jes Sorensen | ed3d4a8 | 2010-10-21 17:15:48 +0200 | [diff] [blame] | 969 | .help = "set maximum speed (in bytes) for migrations. " |
| 970 | "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] | 971 | .mhandler.cmd = hmp_migrate_set_speed, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 972 | }, |
| 973 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 974 | STEXI |
| 975 | @item migrate_set_speed @var{value} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 976 | @findex migrate_set_speed |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 977 | Set maximum speed to @var{value} (in bytes) for migrations. |
| 978 | ETEXI |
| 979 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 980 | { |
| 981 | .name = "migrate_set_downtime", |
Markus Armbruster | b0fbf7d | 2010-01-25 14:23:07 +0100 | [diff] [blame] | 982 | .args_type = "value:T", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 983 | .params = "value", |
| 984 | .help = "set maximum tolerated downtime (in seconds) for migrations", |
Luiz Capitulino | 4f0a993 | 2011-11-27 23:18:01 -0200 | [diff] [blame] | 985 | .mhandler.cmd = hmp_migrate_set_downtime, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 986 | }, |
Glauber Costa | 2ea4295 | 2009-05-28 15:22:58 -0400 | [diff] [blame] | 987 | |
| 988 | STEXI |
| 989 | @item migrate_set_downtime @var{second} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 990 | @findex migrate_set_downtime |
Glauber Costa | 2ea4295 | 2009-05-28 15:22:58 -0400 | [diff] [blame] | 991 | Set maximum tolerated downtime (in seconds) for migration. |
| 992 | ETEXI |
| 993 | |
Jes Sorensen | f888256 | 2010-12-16 13:52:16 +0100 | [diff] [blame] | 994 | { |
Orit Wasserman | 0045843 | 2012-08-06 21:42:48 +0300 | [diff] [blame] | 995 | .name = "migrate_set_capability", |
| 996 | .args_type = "capability:s,state:b", |
| 997 | .params = "capability state", |
| 998 | .help = "Enable/Disable the usage of a capability for migration", |
| 999 | .mhandler.cmd = hmp_migrate_set_capability, |
Hani Benhabiles | c68a040 | 2014-05-27 23:39:32 +0100 | [diff] [blame] | 1000 | .command_completion = migrate_set_capability_completion, |
Orit Wasserman | 0045843 | 2012-08-06 21:42:48 +0300 | [diff] [blame] | 1001 | }, |
| 1002 | |
| 1003 | STEXI |
| 1004 | @item migrate_set_capability @var{capability} @var{state} |
| 1005 | @findex migrate_set_capability |
| 1006 | Enable/Disable the usage of a capability @var{capability} for migration. |
| 1007 | ETEXI |
| 1008 | |
| 1009 | { |
Liang Li | 50e9a62 | 2015-03-23 16:32:29 +0800 | [diff] [blame] | 1010 | .name = "migrate_set_parameter", |
| 1011 | .args_type = "parameter:s,value:i", |
| 1012 | .params = "parameter value", |
| 1013 | .help = "Set the parameter for migration", |
| 1014 | .mhandler.cmd = hmp_migrate_set_parameter, |
| 1015 | .command_completion = migrate_set_parameter_completion, |
| 1016 | }, |
| 1017 | |
| 1018 | STEXI |
| 1019 | @item migrate_set_parameter @var{parameter} @var{value} |
| 1020 | @findex migrate_set_parameter |
| 1021 | Set the parameter @var{parameter} for migration. |
| 1022 | ETEXI |
| 1023 | |
| 1024 | { |
Dr. David Alan Gilbert | 4886a1b | 2015-11-05 18:10:56 +0000 | [diff] [blame] | 1025 | .name = "migrate_start_postcopy", |
| 1026 | .args_type = "", |
| 1027 | .params = "", |
Dr. David Alan Gilbert | a54d340 | 2015-11-12 11:34:44 +0000 | [diff] [blame] | 1028 | .help = "Followup to a migration command to switch the migration" |
| 1029 | " to postcopy mode. The x-postcopy-ram capability must " |
| 1030 | "be set before the original migration command.", |
Dr. David Alan Gilbert | 4886a1b | 2015-11-05 18:10:56 +0000 | [diff] [blame] | 1031 | .mhandler.cmd = hmp_migrate_start_postcopy, |
| 1032 | }, |
| 1033 | |
| 1034 | STEXI |
| 1035 | @item migrate_start_postcopy |
| 1036 | @findex migrate_start_postcopy |
| 1037 | Switch in-progress migration to postcopy mode. Ignored after the end of |
| 1038 | migration (or once already in postcopy). |
| 1039 | ETEXI |
| 1040 | |
| 1041 | { |
Jes Sorensen | 2ea720d | 2011-03-09 16:54:34 +0100 | [diff] [blame] | 1042 | .name = "client_migrate_info", |
| 1043 | .args_type = "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?", |
| 1044 | .params = "protocol hostname port tls-port cert-subject", |
Markus Armbruster | 13cadef | 2015-03-05 19:16:58 +0100 | [diff] [blame] | 1045 | .help = "set migration information for remote display", |
Markus Armbruster | b8a185b | 2015-03-05 17:29:02 +0100 | [diff] [blame] | 1046 | .mhandler.cmd = hmp_client_migrate_info, |
Jes Sorensen | f888256 | 2010-12-16 13:52:16 +0100 | [diff] [blame] | 1047 | }, |
| 1048 | |
| 1049 | STEXI |
Gerd Hoffmann | e866e23 | 2010-04-23 13:28:21 +0200 | [diff] [blame] | 1050 | @item client_migrate_info @var{protocol} @var{hostname} @var{port} @var{tls-port} @var{cert-subject} |
| 1051 | @findex client_migrate_info |
Markus Armbruster | 13cadef | 2015-03-05 19:16:58 +0100 | [diff] [blame] | 1052 | Set migration information for remote display. This makes the server |
| 1053 | ask the client to automatically reconnect using the new parameters |
| 1054 | once migration finished successfully. Only implemented for SPICE. |
Gerd Hoffmann | e866e23 | 2010-04-23 13:28:21 +0200 | [diff] [blame] | 1055 | ETEXI |
| 1056 | |
Wen Congyang | 783e9b4 | 2012-05-07 12:10:47 +0800 | [diff] [blame] | 1057 | { |
| 1058 | .name = "dump-guest-memory", |
Qiao Nuohan | 1b7a0f7 | 2014-04-17 16:15:07 +0800 | [diff] [blame] | 1059 | .args_type = "paging:-p,zlib:-z,lzo:-l,snappy:-s,filename:F,begin:i?,length:i?", |
| 1060 | .params = "[-p] [-z|-l|-s] filename [begin length]", |
Qiao Nuohan | c20499d | 2014-04-17 16:15:06 +0800 | [diff] [blame] | 1061 | .help = "dump guest memory into file 'filename'.\n\t\t\t" |
| 1062 | "-p: do paging to get guest's memory mapping.\n\t\t\t" |
Qiao Nuohan | 1b7a0f7 | 2014-04-17 16:15:07 +0800 | [diff] [blame] | 1063 | "-z: dump in kdump-compressed format, with zlib compression.\n\t\t\t" |
| 1064 | "-l: dump in kdump-compressed format, with lzo compression.\n\t\t\t" |
| 1065 | "-s: dump in kdump-compressed format, with snappy compression.\n\t\t\t" |
Qiao Nuohan | c20499d | 2014-04-17 16:15:06 +0800 | [diff] [blame] | 1066 | "begin: the starting physical address.\n\t\t\t" |
| 1067 | "length: the memory size, in bytes.", |
Wen Congyang | 783e9b4 | 2012-05-07 12:10:47 +0800 | [diff] [blame] | 1068 | .mhandler.cmd = hmp_dump_guest_memory, |
| 1069 | }, |
| 1070 | |
| 1071 | |
| 1072 | STEXI |
Qiao Nuohan | c20499d | 2014-04-17 16:15:06 +0800 | [diff] [blame] | 1073 | @item dump-guest-memory [-p] @var{filename} @var{begin} @var{length} |
Qiao Nuohan | 1b7a0f7 | 2014-04-17 16:15:07 +0800 | [diff] [blame] | 1074 | @item dump-guest-memory [-z|-l|-s] @var{filename} |
Wen Congyang | 783e9b4 | 2012-05-07 12:10:47 +0800 | [diff] [blame] | 1075 | @findex dump-guest-memory |
| 1076 | Dump guest memory to @var{protocol}. The file can be processed with crash or |
Qiao Nuohan | 1b7a0f7 | 2014-04-17 16:15:07 +0800 | [diff] [blame] | 1077 | gdb. Without -z|-l|-s, the dump format is ELF. |
Qiao Nuohan | c20499d | 2014-04-17 16:15:06 +0800 | [diff] [blame] | 1078 | -p: do paging to get guest's memory mapping. |
Qiao Nuohan | 1b7a0f7 | 2014-04-17 16:15:07 +0800 | [diff] [blame] | 1079 | -z: dump in kdump-compressed format, with zlib compression. |
| 1080 | -l: dump in kdump-compressed format, with lzo compression. |
| 1081 | -s: dump in kdump-compressed format, with snappy compression. |
Qiao Nuohan | c20499d | 2014-04-17 16:15:06 +0800 | [diff] [blame] | 1082 | filename: dump file name. |
Wen Congyang | 783e9b4 | 2012-05-07 12:10:47 +0800 | [diff] [blame] | 1083 | begin: the starting physical address. It's optional, and should be |
Qiao Nuohan | c20499d | 2014-04-17 16:15:06 +0800 | [diff] [blame] | 1084 | specified together with length. |
Wen Congyang | 783e9b4 | 2012-05-07 12:10:47 +0800 | [diff] [blame] | 1085 | length: the memory size, in bytes. It's optional, and should be specified |
Qiao Nuohan | c20499d | 2014-04-17 16:15:06 +0800 | [diff] [blame] | 1086 | together with begin. |
Wen Congyang | 783e9b4 | 2012-05-07 12:10:47 +0800 | [diff] [blame] | 1087 | ETEXI |
Wen Congyang | 783e9b4 | 2012-05-07 12:10:47 +0800 | [diff] [blame] | 1088 | |
Jason J. Herne | a4538a5 | 2015-06-26 14:07:21 -0400 | [diff] [blame] | 1089 | #if defined(TARGET_S390X) |
| 1090 | { |
| 1091 | .name = "dump-skeys", |
| 1092 | .args_type = "filename:F", |
| 1093 | .params = "", |
| 1094 | .help = "Save guest storage keys into file 'filename'.\n", |
| 1095 | .mhandler.cmd = hmp_dump_skeys, |
| 1096 | }, |
| 1097 | #endif |
| 1098 | |
| 1099 | STEXI |
| 1100 | @item dump-skeys @var{filename} |
| 1101 | @findex dump-skeys |
| 1102 | Save guest storage keys to a file. |
| 1103 | ETEXI |
| 1104 | |
Gerd Hoffmann | e866e23 | 2010-04-23 13:28:21 +0200 | [diff] [blame] | 1105 | { |
Jes Sorensen | 2ea720d | 2011-03-09 16:54:34 +0100 | [diff] [blame] | 1106 | .name = "snapshot_blkdev", |
Paolo Bonzini | 6cc2a41 | 2012-03-06 18:55:59 +0100 | [diff] [blame] | 1107 | .args_type = "reuse:-n,device:B,snapshot-file:s?,format:s?", |
| 1108 | .params = "[-n] device [new-image-file] [format]", |
Jes Sorensen | 2ea720d | 2011-03-09 16:54:34 +0100 | [diff] [blame] | 1109 | .help = "initiates a live snapshot\n\t\t\t" |
| 1110 | "of device. If a new image file is specified, the\n\t\t\t" |
| 1111 | "new image file will become the new root image.\n\t\t\t" |
| 1112 | "If format is specified, the snapshot file will\n\t\t\t" |
Wenchao Xia | 775ca88 | 2013-09-11 14:04:37 +0800 | [diff] [blame] | 1113 | "be created in that format.\n\t\t\t" |
Paolo Bonzini | 6cc2a41 | 2012-03-06 18:55:59 +0100 | [diff] [blame] | 1114 | "The default format is qcow2. The -n flag requests QEMU\n\t\t\t" |
| 1115 | "to reuse the image found in new-image-file, instead of\n\t\t\t" |
| 1116 | "recreating it from scratch.", |
Luiz Capitulino | 6106e24 | 2011-11-25 16:15:19 -0200 | [diff] [blame] | 1117 | .mhandler.cmd = hmp_snapshot_blkdev, |
Gerd Hoffmann | e866e23 | 2010-04-23 13:28:21 +0200 | [diff] [blame] | 1118 | }, |
| 1119 | |
| 1120 | STEXI |
Jes Sorensen | f888256 | 2010-12-16 13:52:16 +0100 | [diff] [blame] | 1121 | @item snapshot_blkdev |
| 1122 | @findex snapshot_blkdev |
| 1123 | Snapshot device, using snapshot file as target if provided |
| 1124 | ETEXI |
| 1125 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1126 | { |
Wenchao Xia | 775ca88 | 2013-09-11 14:04:37 +0800 | [diff] [blame] | 1127 | .name = "snapshot_blkdev_internal", |
| 1128 | .args_type = "device:B,name:s", |
| 1129 | .params = "device name", |
| 1130 | .help = "take an internal snapshot of device.\n\t\t\t" |
| 1131 | "The format of the image used by device must\n\t\t\t" |
| 1132 | "support it, such as qcow2.\n\t\t\t", |
| 1133 | .mhandler.cmd = hmp_snapshot_blkdev_internal, |
| 1134 | }, |
| 1135 | |
| 1136 | STEXI |
| 1137 | @item snapshot_blkdev_internal |
| 1138 | @findex snapshot_blkdev_internal |
| 1139 | Take an internal snapshot on device if it support |
| 1140 | ETEXI |
| 1141 | |
| 1142 | { |
Wenchao Xia | 7a4ed2e | 2013-09-11 14:04:38 +0800 | [diff] [blame] | 1143 | .name = "snapshot_delete_blkdev_internal", |
| 1144 | .args_type = "device:B,name:s,id:s?", |
| 1145 | .params = "device name [id]", |
| 1146 | .help = "delete an internal snapshot of device.\n\t\t\t" |
| 1147 | "If id is specified, qemu will try delete\n\t\t\t" |
| 1148 | "the snapshot matching both id and name.\n\t\t\t" |
| 1149 | "The format of the image used by device must\n\t\t\t" |
| 1150 | "support it, such as qcow2.\n\t\t\t", |
| 1151 | .mhandler.cmd = hmp_snapshot_delete_blkdev_internal, |
| 1152 | }, |
| 1153 | |
| 1154 | STEXI |
| 1155 | @item snapshot_delete_blkdev_internal |
| 1156 | @findex snapshot_delete_blkdev_internal |
| 1157 | Delete an internal snapshot on device if it support |
| 1158 | ETEXI |
| 1159 | |
| 1160 | { |
Paolo Bonzini | d9b902d | 2012-10-18 16:49:24 +0200 | [diff] [blame] | 1161 | .name = "drive_mirror", |
| 1162 | .args_type = "reuse:-n,full:-f,device:B,target:s,format:s?", |
| 1163 | .params = "[-n] [-f] device target [format]", |
| 1164 | .help = "initiates live storage\n\t\t\t" |
| 1165 | "migration for a device. The device's contents are\n\t\t\t" |
| 1166 | "copied to the new image file, including data that\n\t\t\t" |
| 1167 | "is written after the command is started.\n\t\t\t" |
| 1168 | "The -n flag requests QEMU to reuse the image found\n\t\t\t" |
| 1169 | "in new-image-file, instead of recreating it from scratch.\n\t\t\t" |
| 1170 | "The -f flag requests QEMU to copy the whole disk,\n\t\t\t" |
| 1171 | "so that the result does not need a backing file.\n\t\t\t", |
| 1172 | .mhandler.cmd = hmp_drive_mirror, |
| 1173 | }, |
| 1174 | STEXI |
| 1175 | @item drive_mirror |
| 1176 | @findex drive_mirror |
| 1177 | Start mirroring a block device's writes to a new destination, |
| 1178 | using the specified target. |
| 1179 | ETEXI |
| 1180 | |
| 1181 | { |
Stefan Hajnoczi | de90930 | 2013-06-26 14:11:58 +0200 | [diff] [blame] | 1182 | .name = "drive_backup", |
| 1183 | .args_type = "reuse:-n,full:-f,device:B,target:s,format:s?", |
| 1184 | .params = "[-n] [-f] device target [format]", |
| 1185 | .help = "initiates a point-in-time\n\t\t\t" |
| 1186 | "copy for a device. The device's contents are\n\t\t\t" |
| 1187 | "copied to the new image file, excluding data that\n\t\t\t" |
| 1188 | "is written after the command is started.\n\t\t\t" |
| 1189 | "The -n flag requests QEMU to reuse the image found\n\t\t\t" |
| 1190 | "in new-image-file, instead of recreating it from scratch.\n\t\t\t" |
| 1191 | "The -f flag requests QEMU to copy the whole disk,\n\t\t\t" |
| 1192 | "so that the result does not need a backing file.\n\t\t\t", |
| 1193 | .mhandler.cmd = hmp_drive_backup, |
| 1194 | }, |
| 1195 | STEXI |
| 1196 | @item drive_backup |
| 1197 | @findex drive_backup |
| 1198 | Start a point-in-time copy of a block device to a specificed target. |
| 1199 | ETEXI |
| 1200 | |
| 1201 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1202 | .name = "drive_add", |
| 1203 | .args_type = "pci_addr:s,opts:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1204 | .params = "[[<domain>:]<bus>:]<slot>\n" |
| 1205 | "[file=file][,if=type][,bus=n]\n" |
Stefan Hajnoczi | fb0490f | 2011-11-17 13:40:32 +0000 | [diff] [blame] | 1206 | "[,unit=m][,media=d][,index=i]\n" |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1207 | "[,cyls=c,heads=h,secs=s[,trans=t]]\n" |
Stefan Hajnoczi | fb0490f | 2011-11-17 13:40:32 +0000 | [diff] [blame] | 1208 | "[,snapshot=on|off][,cache=on|off]\n" |
| 1209 | "[,readonly=on|off][,copy-on-read=on|off]", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1210 | .help = "add drive to PCI storage controller", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1211 | .mhandler.cmd = hmp_drive_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1212 | }, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1213 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1214 | STEXI |
| 1215 | @item drive_add |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1216 | @findex drive_add |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1217 | Add drive to PCI storage controller. |
| 1218 | ETEXI |
| 1219 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1220 | { |
Isaku Yamahata | 2ae63bd | 2010-12-24 12:14:14 +0900 | [diff] [blame] | 1221 | .name = "pcie_aer_inject_error", |
| 1222 | .args_type = "advisory_non_fatal:-a,correctable:-c," |
| 1223 | "id:s,error_status:s," |
| 1224 | "header0:i?,header1:i?,header2:i?,header3:i?," |
| 1225 | "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?", |
| 1226 | .params = "[-a] [-c] id " |
| 1227 | "<error_status> [<tlp header> [<tlp header prefix>]]", |
| 1228 | .help = "inject pcie aer error\n\t\t\t" |
| 1229 | " -a for advisory non fatal error\n\t\t\t" |
| 1230 | " -c for correctable error\n\t\t\t" |
| 1231 | "<id> = qdev device id\n\t\t\t" |
| 1232 | "<error_status> = error string or 32bit\n\t\t\t" |
| 1233 | "<tlb header> = 32bit x 4\n\t\t\t" |
| 1234 | "<tlb header prefix> = 32bit x 4", |
Markus Armbruster | 04e00c9 | 2015-03-05 17:48:49 +0100 | [diff] [blame] | 1235 | .mhandler.cmd = hmp_pcie_aer_inject_error, |
Isaku Yamahata | 2ae63bd | 2010-12-24 12:14:14 +0900 | [diff] [blame] | 1236 | }, |
| 1237 | |
| 1238 | STEXI |
| 1239 | @item pcie_aer_inject_error |
| 1240 | @findex pcie_aer_inject_error |
| 1241 | Inject PCIe AER error |
| 1242 | ETEXI |
| 1243 | |
| 1244 | { |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1245 | .name = "host_net_add", |
| 1246 | .args_type = "device:s,opts:s?", |
Nikolay Nikolaev | 03ce574 | 2014-06-10 13:02:16 +0300 | [diff] [blame] | 1247 | .params = "tap|user|socket|vde|netmap|bridge|vhost-user|dump [options]", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1248 | .help = "add host VLAN client", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1249 | .mhandler.cmd = hmp_host_net_add, |
Hani Benhabiles | e3bb532 | 2014-05-27 23:39:34 +0100 | [diff] [blame] | 1250 | .command_completion = host_net_add_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1251 | }, |
| 1252 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1253 | STEXI |
| 1254 | @item host_net_add |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1255 | @findex host_net_add |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1256 | Add host VLAN client. |
| 1257 | ETEXI |
| 1258 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1259 | { |
| 1260 | .name = "host_net_remove", |
| 1261 | .args_type = "vlan_id:i,device:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1262 | .params = "vlan_id name", |
| 1263 | .help = "remove host VLAN client", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1264 | .mhandler.cmd = hmp_host_net_remove, |
Hani Benhabiles | ddd6b45 | 2014-05-27 23:39:36 +0100 | [diff] [blame] | 1265 | .command_completion = host_net_remove_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1266 | }, |
| 1267 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1268 | STEXI |
| 1269 | @item host_net_remove |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1270 | @findex host_net_remove |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1271 | Remove host VLAN client. |
| 1272 | ETEXI |
| 1273 | |
Markus Armbruster | ae82d32 | 2010-03-25 17:22:40 +0100 | [diff] [blame] | 1274 | { |
| 1275 | .name = "netdev_add", |
| 1276 | .args_type = "netdev:O", |
Nikolay Nikolaev | 03ce574 | 2014-06-10 13:02:16 +0300 | [diff] [blame] | 1277 | .params = "[user|tap|socket|vde|bridge|hubport|netmap|vhost-user],id=str[,prop=value][,...]", |
Markus Armbruster | ae82d32 | 2010-03-25 17:22:40 +0100 | [diff] [blame] | 1278 | .help = "add host network device", |
Luiz Capitulino | 928059a | 2012-04-18 17:34:15 -0300 | [diff] [blame] | 1279 | .mhandler.cmd = hmp_netdev_add, |
Hani Benhabiles | b162b49 | 2014-05-07 23:41:31 +0100 | [diff] [blame] | 1280 | .command_completion = netdev_add_completion, |
Markus Armbruster | ae82d32 | 2010-03-25 17:22:40 +0100 | [diff] [blame] | 1281 | }, |
| 1282 | |
| 1283 | STEXI |
| 1284 | @item netdev_add |
| 1285 | @findex netdev_add |
| 1286 | Add host network device. |
| 1287 | ETEXI |
| 1288 | |
| 1289 | { |
| 1290 | .name = "netdev_del", |
| 1291 | .args_type = "id:s", |
| 1292 | .params = "id", |
| 1293 | .help = "remove host network device", |
Luiz Capitulino | 5f96415 | 2012-04-16 14:36:32 -0300 | [diff] [blame] | 1294 | .mhandler.cmd = hmp_netdev_del, |
Hani Benhabiles | 11b389f | 2014-05-07 23:41:32 +0100 | [diff] [blame] | 1295 | .command_completion = netdev_del_completion, |
Markus Armbruster | ae82d32 | 2010-03-25 17:22:40 +0100 | [diff] [blame] | 1296 | }, |
| 1297 | |
| 1298 | STEXI |
| 1299 | @item netdev_del |
| 1300 | @findex netdev_del |
| 1301 | Remove host network device. |
| 1302 | ETEXI |
| 1303 | |
Paolo Bonzini | ab2d053 | 2013-12-20 23:21:09 +0100 | [diff] [blame] | 1304 | { |
Paolo Bonzini | cff8b2c | 2013-12-20 23:21:10 +0100 | [diff] [blame] | 1305 | .name = "object_add", |
| 1306 | .args_type = "object:O", |
| 1307 | .params = "[qom-type=]type,id=str[,prop=value][,...]", |
| 1308 | .help = "create QOM object", |
| 1309 | .mhandler.cmd = hmp_object_add, |
Hani Benhabiles | bfa40f7 | 2014-04-13 16:25:06 +0100 | [diff] [blame] | 1310 | .command_completion = object_add_completion, |
Paolo Bonzini | cff8b2c | 2013-12-20 23:21:10 +0100 | [diff] [blame] | 1311 | }, |
| 1312 | |
| 1313 | STEXI |
| 1314 | @item object_add |
| 1315 | @findex object_add |
| 1316 | Create QOM object. |
| 1317 | ETEXI |
| 1318 | |
| 1319 | { |
Paolo Bonzini | ab2d053 | 2013-12-20 23:21:09 +0100 | [diff] [blame] | 1320 | .name = "object_del", |
| 1321 | .args_type = "id:s", |
| 1322 | .params = "id", |
| 1323 | .help = "destroy QOM object", |
| 1324 | .mhandler.cmd = hmp_object_del, |
Hani Benhabiles | bfa40f7 | 2014-04-13 16:25:06 +0100 | [diff] [blame] | 1325 | .command_completion = object_del_completion, |
Paolo Bonzini | ab2d053 | 2013-12-20 23:21:09 +0100 | [diff] [blame] | 1326 | }, |
| 1327 | |
| 1328 | STEXI |
| 1329 | @item object_del |
| 1330 | @findex object_del |
| 1331 | Destroy QOM object. |
| 1332 | ETEXI |
| 1333 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1334 | #ifdef CONFIG_SLIRP |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1335 | { |
| 1336 | .name = "hostfwd_add", |
| 1337 | .args_type = "arg1:s,arg2:s?,arg3:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1338 | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport", |
| 1339 | .help = "redirect TCP or UDP connections from host to guest (requires -net user)", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1340 | .mhandler.cmd = hmp_hostfwd_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1341 | }, |
Markus Armbruster | 21413d6 | 2010-05-04 13:20:30 +0200 | [diff] [blame] | 1342 | #endif |
| 1343 | STEXI |
| 1344 | @item hostfwd_add |
| 1345 | @findex hostfwd_add |
| 1346 | Redirect TCP or UDP connections from host to guest (requires -net user). |
| 1347 | ETEXI |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1348 | |
Markus Armbruster | 21413d6 | 2010-05-04 13:20:30 +0200 | [diff] [blame] | 1349 | #ifdef CONFIG_SLIRP |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1350 | { |
| 1351 | .name = "hostfwd_remove", |
| 1352 | .args_type = "arg1:s,arg2:s?,arg3:s?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1353 | .params = "[vlan_id name] [tcp|udp]:[hostaddr]:hostport", |
| 1354 | .help = "remove host-to-guest TCP or UDP redirection", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1355 | .mhandler.cmd = hmp_hostfwd_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1356 | }, |
| 1357 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1358 | #endif |
| 1359 | STEXI |
Markus Armbruster | 21413d6 | 2010-05-04 13:20:30 +0200 | [diff] [blame] | 1360 | @item hostfwd_remove |
| 1361 | @findex hostfwd_remove |
| 1362 | Remove host-to-guest TCP or UDP redirection. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1363 | ETEXI |
| 1364 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1365 | { |
| 1366 | .name = "balloon", |
Luiz Capitulino | 3b0bd6e | 2009-12-18 13:25:05 -0200 | [diff] [blame] | 1367 | .args_type = "value:M", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1368 | .params = "target", |
Riccardo Magliocchetti | 3c05613 | 2010-05-19 18:49:28 +0200 | [diff] [blame] | 1369 | .help = "request VM to change its memory allocation (in MB)", |
Luiz Capitulino | d72f326 | 2011-11-25 14:38:09 -0200 | [diff] [blame] | 1370 | .mhandler.cmd = hmp_balloon, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1371 | }, |
| 1372 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1373 | STEXI |
| 1374 | @item balloon @var{value} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1375 | @findex balloon |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1376 | Request VM to change its memory allocation to @var{value} (in MB). |
| 1377 | ETEXI |
| 1378 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1379 | { |
| 1380 | .name = "set_link", |
Markus Armbruster | c9b26a4 | 2010-03-26 09:07:10 +0100 | [diff] [blame] | 1381 | .args_type = "name:s,up:b", |
| 1382 | .params = "name on|off", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1383 | .help = "change the link status of a network adapter", |
Luiz Capitulino | 4b37156 | 2011-11-23 13:11:55 -0200 | [diff] [blame] | 1384 | .mhandler.cmd = hmp_set_link, |
Hani Benhabiles | 40d1939 | 2014-05-07 23:41:30 +0100 | [diff] [blame] | 1385 | .command_completion = set_link_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1386 | }, |
| 1387 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1388 | STEXI |
Markus Armbruster | c9b26a4 | 2010-03-26 09:07:10 +0100 | [diff] [blame] | 1389 | @item set_link @var{name} [on|off] |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1390 | @findex set_link |
Markus Armbruster | c9b26a4 | 2010-03-26 09:07:10 +0100 | [diff] [blame] | 1391 | 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] | 1392 | ETEXI |
| 1393 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1394 | { |
| 1395 | .name = "watchdog_action", |
| 1396 | .args_type = "action:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1397 | .params = "[reset|shutdown|poweroff|pause|debug|none]", |
| 1398 | .help = "change watchdog action", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1399 | .mhandler.cmd = hmp_watchdog_action, |
Hani Benhabiles | d0ece34 | 2014-05-27 23:39:31 +0100 | [diff] [blame] | 1400 | .command_completion = watchdog_action_completion, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1401 | }, |
| 1402 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1403 | STEXI |
| 1404 | @item watchdog_action |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1405 | @findex watchdog_action |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1406 | Change watchdog action. |
| 1407 | ETEXI |
| 1408 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1409 | { |
| 1410 | .name = "acl_show", |
| 1411 | .args_type = "aclname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1412 | .params = "aclname", |
| 1413 | .help = "list rules in the access control list", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1414 | .mhandler.cmd = hmp_acl_show, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1415 | }, |
| 1416 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1417 | STEXI |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1418 | @item acl_show @var{aclname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1419 | @findex acl_show |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1420 | List all the matching rules in the access control list, and the default |
| 1421 | policy. There are currently two named access control lists, |
| 1422 | @var{vnc.x509dname} and @var{vnc.username} matching on the x509 client |
| 1423 | certificate distinguished name, and SASL username respectively. |
| 1424 | ETEXI |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1425 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1426 | { |
| 1427 | .name = "acl_policy", |
| 1428 | .args_type = "aclname:s,policy:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1429 | .params = "aclname allow|deny", |
| 1430 | .help = "set default access control list policy", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1431 | .mhandler.cmd = hmp_acl_policy, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1432 | }, |
| 1433 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1434 | STEXI |
Jan Kiszka | cbbfacc | 2009-07-03 08:46:05 +0200 | [diff] [blame] | 1435 | @item acl_policy @var{aclname} @code{allow|deny} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1436 | @findex acl_policy |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1437 | Set the default access control list policy, used in the event that |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1438 | none of the explicit rules match. The default policy at startup is |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1439 | always @code{deny}. |
| 1440 | ETEXI |
| 1441 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1442 | { |
| 1443 | .name = "acl_add", |
| 1444 | .args_type = "aclname:s,match:s,policy:s,index:i?", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1445 | .params = "aclname match allow|deny [index]", |
| 1446 | .help = "add a match rule to the access control list", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1447 | .mhandler.cmd = hmp_acl_add, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1448 | }, |
| 1449 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1450 | STEXI |
Markus Armbruster | 0e4aec9 | 2010-05-04 13:20:31 +0200 | [diff] [blame] | 1451 | @item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}] |
| 1452 | @findex acl_add |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1453 | Add a match rule to the access control list, allowing or denying access. |
| 1454 | The match will normally be an exact username or x509 distinguished name, |
| 1455 | but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to |
| 1456 | 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] | 1457 | 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] | 1458 | earlier in the list if the optional @var{index} parameter is supplied. |
| 1459 | ETEXI |
| 1460 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1461 | { |
| 1462 | .name = "acl_remove", |
| 1463 | .args_type = "aclname:s,match:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1464 | .params = "aclname match", |
| 1465 | .help = "remove a match rule from the access control list", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1466 | .mhandler.cmd = hmp_acl_remove, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1467 | }, |
| 1468 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1469 | STEXI |
| 1470 | @item acl_remove @var{aclname} @var{match} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1471 | @findex acl_remove |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1472 | Remove the specified match rule from the access control list. |
| 1473 | ETEXI |
| 1474 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1475 | { |
| 1476 | .name = "acl_reset", |
| 1477 | .args_type = "aclname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1478 | .params = "aclname", |
| 1479 | .help = "reset the access control list", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1480 | .mhandler.cmd = hmp_acl_reset, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1481 | }, |
| 1482 | |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1483 | STEXI |
Markus Armbruster | 0e4aec9 | 2010-05-04 13:20:31 +0200 | [diff] [blame] | 1484 | @item acl_reset @var{aclname} |
| 1485 | @findex acl_reset |
Jan Kiszka | 15dfcd4 | 2009-06-25 08:22:08 +0200 | [diff] [blame] | 1486 | Remove all matches from the access control list, and set the default |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1487 | policy back to @code{deny}. |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 1488 | ETEXI |
| 1489 | |
Paolo Bonzini | 4057725 | 2012-08-23 11:53:04 +0200 | [diff] [blame] | 1490 | { |
| 1491 | .name = "nbd_server_start", |
| 1492 | .args_type = "all:-a,writable:-w,uri:s", |
| 1493 | .params = "nbd_server_start [-a] [-w] host:port", |
| 1494 | .help = "serve block devices on the given host and port", |
| 1495 | .mhandler.cmd = hmp_nbd_server_start, |
| 1496 | }, |
| 1497 | STEXI |
| 1498 | @item nbd_server_start @var{host}:@var{port} |
| 1499 | @findex nbd_server_start |
| 1500 | Start an NBD server on the given host and/or port. If the @option{-a} |
| 1501 | option is included, all of the virtual machine's block devices that |
| 1502 | have an inserted media on them are automatically exported; in this case, |
| 1503 | the @option{-w} option makes the devices writable too. |
| 1504 | ETEXI |
| 1505 | |
| 1506 | { |
| 1507 | .name = "nbd_server_add", |
| 1508 | .args_type = "writable:-w,device:B", |
| 1509 | .params = "nbd_server_add [-w] device", |
| 1510 | .help = "export a block device via NBD", |
| 1511 | .mhandler.cmd = hmp_nbd_server_add, |
| 1512 | }, |
| 1513 | STEXI |
| 1514 | @item nbd_server_add @var{device} |
| 1515 | @findex nbd_server_add |
| 1516 | Export a block device through QEMU's NBD server, which must be started |
| 1517 | beforehand with @command{nbd_server_start}. The @option{-w} option makes the |
| 1518 | exported device writable too. |
| 1519 | ETEXI |
| 1520 | |
| 1521 | { |
| 1522 | .name = "nbd_server_stop", |
| 1523 | .args_type = "", |
| 1524 | .params = "nbd_server_stop", |
| 1525 | .help = "stop serving block devices using the NBD protocol", |
| 1526 | .mhandler.cmd = hmp_nbd_server_stop, |
| 1527 | }, |
| 1528 | STEXI |
| 1529 | @item nbd_server_stop |
| 1530 | @findex nbd_server_stop |
| 1531 | Stop the QEMU embedded NBD server. |
| 1532 | ETEXI |
| 1533 | |
| 1534 | |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1535 | #if defined(TARGET_I386) |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1536 | |
| 1537 | { |
| 1538 | .name = "mce", |
Jin Dongming | 31ce5e0 | 2010-12-10 17:21:02 +0900 | [diff] [blame] | 1539 | .args_type = "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l", |
| 1540 | .params = "[-b] cpu bank status mcgstatus addr misc", |
| 1541 | .help = "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1542 | .mhandler.cmd = hmp_mce, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1543 | }, |
| 1544 | |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1545 | #endif |
| 1546 | STEXI |
| 1547 | @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] | 1548 | @findex mce (x86) |
Huang Ying | 79c4f6b | 2009-06-23 10:05:14 +0800 | [diff] [blame] | 1549 | Inject an MCE on the given CPU (x86 only). |
| 1550 | ETEXI |
| 1551 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1552 | { |
| 1553 | .name = "getfd", |
| 1554 | .args_type = "fdname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1555 | .params = "getfd name", |
| 1556 | .help = "receive a file descriptor via SCM rights and assign it a name", |
Corey Bryant | 208c9d1 | 2012-06-22 14:36:09 -0400 | [diff] [blame] | 1557 | .mhandler.cmd = hmp_getfd, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1558 | }, |
| 1559 | |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1560 | STEXI |
| 1561 | @item getfd @var{fdname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1562 | @findex getfd |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1563 | If a file descriptor is passed alongside this command using the SCM_RIGHTS |
| 1564 | mechanism on unix sockets, it is stored using the name @var{fdname} for |
| 1565 | later use by other monitor commands. |
| 1566 | ETEXI |
| 1567 | |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1568 | { |
| 1569 | .name = "closefd", |
| 1570 | .args_type = "fdname:s", |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1571 | .params = "closefd name", |
| 1572 | .help = "close a file descriptor previously passed via SCM rights", |
Corey Bryant | 208c9d1 | 2012-06-22 14:36:09 -0400 | [diff] [blame] | 1573 | .mhandler.cmd = hmp_closefd, |
Luiz Capitulino | d7f9b68 | 2009-10-07 13:41:50 -0300 | [diff] [blame] | 1574 | }, |
| 1575 | |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1576 | STEXI |
| 1577 | @item closefd @var{fdname} |
Stefan Weil | 70fcbbe | 2010-02-05 23:52:04 +0100 | [diff] [blame] | 1578 | @findex closefd |
Mark McLoughlin | f07918f | 2009-07-22 09:11:40 +0100 | [diff] [blame] | 1579 | Close the file descriptor previously assigned to @var{fdname} using the |
| 1580 | @code{getfd} command. This is only needed if the file descriptor was never |
| 1581 | used by another monitor command. |
| 1582 | ETEXI |
| 1583 | |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1584 | { |
| 1585 | .name = "block_passwd", |
| 1586 | .args_type = "device:B,password:s", |
| 1587 | .params = "block_passwd device password", |
| 1588 | .help = "set the password of encrypted block devices", |
Luiz Capitulino | a4dea8a | 2011-11-23 13:28:21 -0200 | [diff] [blame] | 1589 | .mhandler.cmd = hmp_block_passwd, |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1590 | }, |
| 1591 | |
| 1592 | STEXI |
Markus Armbruster | b76d799 | 2015-03-10 13:23:04 +0100 | [diff] [blame] | 1593 | @item block_passwd @var{device} @var{password} |
| 1594 | @findex block_passwd |
| 1595 | Set the encrypted device @var{device} password to @var{password} |
Zhi Yong Wu | 727f005 | 2011-11-08 13:00:31 +0800 | [diff] [blame] | 1596 | ETEXI |
| 1597 | |
| 1598 | { |
| 1599 | .name = "block_set_io_throttle", |
| 1600 | .args_type = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l", |
| 1601 | .params = "device bps bps_rd bps_wr iops iops_rd iops_wr", |
| 1602 | .help = "change I/O throttle limits for a block drive", |
Luiz Capitulino | 80047da | 2011-12-14 16:49:14 -0200 | [diff] [blame] | 1603 | .mhandler.cmd = hmp_block_set_io_throttle, |
Zhi Yong Wu | 727f005 | 2011-11-08 13:00:31 +0800 | [diff] [blame] | 1604 | }, |
| 1605 | |
| 1606 | STEXI |
Markus Armbruster | b76d799 | 2015-03-10 13:23:04 +0100 | [diff] [blame] | 1607 | @item block_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr} |
| 1608 | @findex block_set_io_throttle |
| 1609 | 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} |
Luiz Capitulino | a3a55a2 | 2009-12-04 15:24:09 -0200 | [diff] [blame] | 1610 | ETEXI |
Jan Kiszka | b40292e | 2010-05-31 14:43:31 -0300 | [diff] [blame] | 1611 | |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1612 | { |
Gerd Hoffmann | 7572150 | 2010-10-07 12:22:54 +0200 | [diff] [blame] | 1613 | .name = "set_password", |
| 1614 | .args_type = "protocol:s,password:s,connected:s?", |
| 1615 | .params = "protocol password action-if-connected", |
| 1616 | .help = "set spice/vnc password", |
Luiz Capitulino | fbf796f | 2011-12-07 11:17:51 -0200 | [diff] [blame] | 1617 | .mhandler.cmd = hmp_set_password, |
Gerd Hoffmann | 7572150 | 2010-10-07 12:22:54 +0200 | [diff] [blame] | 1618 | }, |
| 1619 | |
| 1620 | STEXI |
| 1621 | @item set_password [ vnc | spice ] password [ action-if-connected ] |
| 1622 | @findex set_password |
Gerd Hoffmann | 7572150 | 2010-10-07 12:22:54 +0200 | [diff] [blame] | 1623 | Change spice/vnc password. Use zero to make the password stay valid |
| 1624 | forever. @var{action-if-connected} specifies what should happen in |
| 1625 | case a connection is established: @var{fail} makes the password change |
| 1626 | fail. @var{disconnect} changes the password and disconnects the |
| 1627 | client. @var{keep} changes the password and keeps the connection up. |
| 1628 | @var{keep} is the default. |
| 1629 | ETEXI |
| 1630 | |
| 1631 | { |
| 1632 | .name = "expire_password", |
| 1633 | .args_type = "protocol:s,time:s", |
| 1634 | .params = "protocol time", |
| 1635 | .help = "set spice/vnc password expire-time", |
Luiz Capitulino | 9ad5372 | 2011-12-07 11:47:57 -0200 | [diff] [blame] | 1636 | .mhandler.cmd = hmp_expire_password, |
Gerd Hoffmann | 7572150 | 2010-10-07 12:22:54 +0200 | [diff] [blame] | 1637 | }, |
| 1638 | |
| 1639 | STEXI |
| 1640 | @item expire_password [ vnc | spice ] expire-time |
| 1641 | @findex expire_password |
Gerd Hoffmann | 7572150 | 2010-10-07 12:22:54 +0200 | [diff] [blame] | 1642 | Specify when a password for spice/vnc becomes |
| 1643 | invalid. @var{expire-time} accepts: |
| 1644 | |
| 1645 | @table @var |
| 1646 | @item now |
| 1647 | Invalidate password instantly. |
| 1648 | |
| 1649 | @item never |
| 1650 | Password stays valid forever. |
| 1651 | |
| 1652 | @item +nsec |
| 1653 | Password stays valid for @var{nsec} seconds starting now. |
| 1654 | |
| 1655 | @item nsec |
| 1656 | Password is invalidated at the given time. @var{nsec} are the seconds |
| 1657 | passed since 1970, i.e. unix epoch. |
| 1658 | |
| 1659 | @end table |
| 1660 | ETEXI |
| 1661 | |
Gerd Hoffmann | 4692082 | 2013-02-28 08:46:10 +0100 | [diff] [blame] | 1662 | { |
| 1663 | .name = "chardev-add", |
| 1664 | .args_type = "args:s", |
| 1665 | .params = "args", |
| 1666 | .help = "add chardev", |
| 1667 | .mhandler.cmd = hmp_chardev_add, |
Hani Benhabiles | 13e315d | 2014-05-07 23:41:29 +0100 | [diff] [blame] | 1668 | .command_completion = chardev_add_completion, |
Gerd Hoffmann | 4692082 | 2013-02-28 08:46:10 +0100 | [diff] [blame] | 1669 | }, |
| 1670 | |
| 1671 | STEXI |
Markus Armbruster | b76d799 | 2015-03-10 13:23:04 +0100 | [diff] [blame] | 1672 | @item chardev-add args |
| 1673 | @findex chardev-add |
Gerd Hoffmann | 4692082 | 2013-02-28 08:46:10 +0100 | [diff] [blame] | 1674 | chardev_add accepts the same parameters as the -chardev command line switch. |
| 1675 | |
| 1676 | ETEXI |
| 1677 | |
| 1678 | { |
| 1679 | .name = "chardev-remove", |
| 1680 | .args_type = "id:s", |
| 1681 | .params = "id", |
| 1682 | .help = "remove chardev", |
| 1683 | .mhandler.cmd = hmp_chardev_remove, |
Hani Benhabiles | 6297d9a | 2014-05-07 23:41:28 +0100 | [diff] [blame] | 1684 | .command_completion = chardev_remove_completion, |
Gerd Hoffmann | 4692082 | 2013-02-28 08:46:10 +0100 | [diff] [blame] | 1685 | }, |
| 1686 | |
| 1687 | STEXI |
Markus Armbruster | b76d799 | 2015-03-10 13:23:04 +0100 | [diff] [blame] | 1688 | @item chardev-remove id |
| 1689 | @findex chardev-remove |
Gerd Hoffmann | 4692082 | 2013-02-28 08:46:10 +0100 | [diff] [blame] | 1690 | Removes the chardev @var{id}. |
| 1691 | |
| 1692 | ETEXI |
Gerd Hoffmann | f108890 | 2012-12-19 10:33:40 +0100 | [diff] [blame] | 1693 | |
| 1694 | { |
Kevin Wolf | 587da2c | 2013-06-05 14:19:41 +0200 | [diff] [blame] | 1695 | .name = "qemu-io", |
| 1696 | .args_type = "device:B,command:s", |
| 1697 | .params = "[device] \"[command]\"", |
| 1698 | .help = "run a qemu-io command on a block device", |
| 1699 | .mhandler.cmd = hmp_qemu_io, |
| 1700 | }, |
| 1701 | |
| 1702 | STEXI |
| 1703 | @item qemu-io @var{device} @var{command} |
| 1704 | @findex qemu-io |
Kevin Wolf | 587da2c | 2013-06-05 14:19:41 +0200 | [diff] [blame] | 1705 | Executes a qemu-io command on the given block device. |
| 1706 | |
| 1707 | ETEXI |
| 1708 | |
| 1709 | { |
Jason J. Herne | abf2332 | 2013-12-11 13:24:14 -0500 | [diff] [blame] | 1710 | .name = "cpu-add", |
| 1711 | .args_type = "id:i", |
| 1712 | .params = "id", |
| 1713 | .help = "add cpu", |
| 1714 | .mhandler.cmd = hmp_cpu_add, |
| 1715 | }, |
| 1716 | |
| 1717 | STEXI |
| 1718 | @item cpu-add @var{id} |
Markus Armbruster | b76d799 | 2015-03-10 13:23:04 +0100 | [diff] [blame] | 1719 | @findex cpu-add |
Jason J. Herne | abf2332 | 2013-12-11 13:24:14 -0500 | [diff] [blame] | 1720 | Add CPU with id @var{id} |
| 1721 | ETEXI |
| 1722 | |
| 1723 | { |
Andreas Färber | 89d7fa9 | 2014-05-07 18:08:29 +0200 | [diff] [blame] | 1724 | .name = "qom-list", |
| 1725 | .args_type = "path:s?", |
| 1726 | .params = "path", |
| 1727 | .help = "list QOM properties", |
| 1728 | .mhandler.cmd = hmp_qom_list, |
| 1729 | }, |
| 1730 | |
| 1731 | STEXI |
| 1732 | @item qom-list [@var{path}] |
| 1733 | Print QOM properties of object at location @var{path} |
| 1734 | ETEXI |
| 1735 | |
| 1736 | { |
Andreas Färber | c0e6ee9 | 2014-05-07 19:48:15 +0200 | [diff] [blame] | 1737 | .name = "qom-set", |
| 1738 | .args_type = "path:s,property:s,value:s", |
| 1739 | .params = "path property value", |
| 1740 | .help = "set QOM property", |
| 1741 | .mhandler.cmd = hmp_qom_set, |
| 1742 | }, |
| 1743 | |
| 1744 | STEXI |
| 1745 | @item qom-set @var{path} @var{property} @var{value} |
| 1746 | Set QOM property @var{property} of object at location @var{path} to value @var{value} |
| 1747 | ETEXI |
| 1748 | |
| 1749 | { |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1750 | .name = "info", |
| 1751 | .args_type = "item:s?", |
| 1752 | .params = "[subcommand]", |
| 1753 | .help = "show various information about the system state", |
Markus Armbruster | 3e5a50d | 2015-02-06 13:55:43 +0100 | [diff] [blame] | 1754 | .mhandler.cmd = hmp_info_help, |
Wenchao Xia | 84c4461 | 2013-01-14 14:06:29 +0800 | [diff] [blame] | 1755 | .sub_table = info_cmds, |
Jan Kiszka | 33572ec | 2010-05-31 14:43:30 -0300 | [diff] [blame] | 1756 | }, |
| 1757 | |
| 1758 | STEXI |
Pavel Butsykin | 7070334 | 2015-09-10 18:39:00 +0300 | [diff] [blame] | 1759 | @end table |
| 1760 | ETEXI |