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