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
14 .args_type
= "name:S?",
16 .help
= "show the help",
22 @item help or ?
[@
var{cmd
}]
24 Show the help
for all commands or just
for command @
var{cmd
}.
27 ``help`` or ``?``
[*cmd
*]
28 Show the help
for all commands or just
for command
*cmd
*.
33 .args_type
= "device:B",
34 .params
= "device|all",
35 .help
= "commit changes to the disk images (if -snapshot is used) or backing files",
42 Commit changes to the disk
images (if -snapshot is used
) or backing files
.
43 If the backing file is smaller than the snapshot
, then the backing file will be
44 resized to be the same size as the snapshot
. If the snapshot is smaller than
45 the backing file
, the backing file will not be truncated
. If you want the
46 backing file to match the size of the smaller snapshot
, you can safely truncate
47 it yourself once the commit operation successfully completes
.
51 Commit changes to the disk
images (if -snapshot is used
) or backing files
.
52 If the backing file is smaller than the snapshot
, then the backing file
53 will be resized to be the same size as the snapshot
. If the snapshot is
54 smaller than the backing file
, the backing file will not be truncated
.
55 If you want the backing file to match the size of the smaller snapshot
,
56 you can safely truncate it yourself once the commit operation successfully
64 .help
= "quit the emulator",
79 .name
= "exit_preconfig",
82 .help
= "exit the preconfig state",
83 .cmd
= hmp_exit_preconfig
,
89 @findex exit_preconfig
90 This command makes QEMU exit the preconfig state and proceed with
91 VM initialization
using configuration data provided on the command line
92 and via the QMP monitor during the preconfig state
. The command is only
93 available during the preconfig
state (i
.e
. when the
--preconfig command
94 line option was
in use
).
98 This command makes QEMU exit the preconfig state and proceed with
99 VM initialization
using configuration data provided on the command line
100 and via the QMP monitor during the preconfig state
. The command is only
101 available during the preconfig
state (i
.e
. when the
--preconfig command
102 line option was
in use
).
106 .name
= "block_resize",
107 .args_type
= "device:B,size:o",
108 .params
= "device size",
109 .help
= "resize a block image",
110 .cmd
= hmp_block_resize
,
116 Resize a block image
while a guest is running
. Usually requires guest
117 action to see the updated size
. Resize to a lower size is supported
,
118 but should be used with extreme caution
. Note that
this command only
119 resizes image files
, it can not resize block devices like LVM volumes
.
123 Resize a block image
while a guest is running
. Usually requires guest
124 action to see the updated size
. Resize to a lower size is supported
,
125 but should be used with extreme caution
. Note that
this command only
126 resizes image files
, it can not resize block devices like LVM volumes
.
130 .name
= "block_stream",
131 .args_type
= "device:B,speed:o?,base:s?",
132 .params
= "device [speed [base]]",
133 .help
= "copy data from a backing file into a block device",
134 .cmd
= hmp_block_stream
,
140 Copy data from a backing file into a block device
.
144 Copy data from a backing file into a block device
.
148 .name
= "block_job_set_speed",
149 .args_type
= "device:B,speed:o",
150 .params
= "device speed",
151 .help
= "set maximum speed for a background block operation",
152 .cmd
= hmp_block_job_set_speed
,
156 @item block_job_set_speed
157 @findex block_job_set_speed
158 Set maximum speed
for a background block operation
.
161 ``block_job_set_speed``
162 Set maximum speed
for a background block operation
.
166 .name
= "block_job_cancel",
167 .args_type
= "force:-f,device:B",
168 .params
= "[-f] device",
169 .help
= "stop an active background block operation (use -f"
170 "\n\t\t\t if you want to abort the operation immediately"
171 "\n\t\t\t instead of keep running until data is in sync)",
172 .cmd
= hmp_block_job_cancel
,
176 @item block_job_cancel
177 @findex block_job_cancel
178 Stop an active background block
operation (streaming
, mirroring
).
182 Stop an active background block
operation (streaming
, mirroring
).
186 .name
= "block_job_complete",
187 .args_type
= "device:B",
189 .help
= "stop an active background block operation",
190 .cmd
= hmp_block_job_complete
,
194 @item block_job_complete
195 @findex block_job_complete
196 Manually trigger completion of an active background block operation
.
197 For mirroring
, this will
switch the device to the destination path
.
200 ``block_job_complete``
201 Manually trigger completion of an active background block operation
.
202 For mirroring
, this will
switch the device to the destination path
.
206 .name
= "block_job_pause",
207 .args_type
= "device:B",
209 .help
= "pause an active background block operation",
210 .cmd
= hmp_block_job_pause
,
214 @item block_job_pause
215 @findex block_job_pause
216 Pause an active block streaming operation
.
220 Pause an active block streaming operation
.
224 .name
= "block_job_resume",
225 .args_type
= "device:B",
227 .help
= "resume a paused background block operation",
228 .cmd
= hmp_block_job_resume
,
232 @item block_job_resume
233 @findex block_job_resume
234 Resume a paused block streaming operation
.
238 Resume a paused block streaming operation
.
243 .args_type
= "force:-f,device:B",
244 .params
= "[-f] device",
245 .help
= "eject a removable medium (use -f to force it)",
250 @item eject
[-f
] @
var{device
}
252 Eject a removable
medium (use
-f to force it
).
255 ``eject
[-f
]``
*device
*
256 Eject a removable
medium (use
-f to force it
).
263 .help
= "remove host block device",
264 .cmd
= hmp_drive_del
,
268 @item drive_del @
var{device
}
270 Remove host block device
. The result is that guest generated IO is no longer
271 submitted against the host device underlying the disk
. Once a drive has
272 been deleted
, the QEMU Block layer returns
-EIO which results
in IO
273 errors
in the guest
for applications that are reading
/writing to the device
.
274 These errors are always reported to the guest
, regardless of the drive
's error
275 actions (drive options rerror, werror).
278 ``drive_del`` *device*
279 Remove host block device. The result is that guest generated IO is no longer
280 submitted against the host device underlying the disk. Once a drive has
281 been deleted, the QEMU Block layer returns -EIO which results in IO
282 errors in the guest for applications that are reading/writing to the device.
283 These errors are always reported to the guest, regardless of the drive's error
284 actions (drive options rerror
, werror
).
289 .args_type
= "device:B,target:F,arg:s?,read-only-mode:s?",
290 .params
= "device filename [format [read-only-mode]]",
291 .help
= "change a removable medium, optional format",
296 @item change @
var{device
} @
var{setting
}
298 Change the configuration of a device
.
301 @item change @
var{diskdevice
} @
var{filename
} [@
var{format
} [@
var{read
-only
-mode
}]]
302 Change the medium
for a removable disk device to point to @
var{filename
}. eg
305 (qemu
) change ide1
-cd0
/path
/to
/some
.iso
308 @
var{format
} is optional
.
310 @
var{read
-only
-mode
} may be used to change the read
-only status of the device
.
311 It accepts the following values
:
315 Retains the current status
; this is the
default.
318 Makes the device read
-only
.
321 Makes the device writable
.
324 @item change vnc @
var{display
},@
var{options
}
325 Change the configuration of the VNC server
. The valid syntax
for @
var{display
}
326 and @
var{options
} are described at @ref
{sec_invocation
}. eg
329 (qemu
) change vnc localhost
:1
332 @item change vnc password
[@
var{password
}]
334 Change the password associated with the VNC server
. If the
new password is not
335 supplied
, the monitor will prompt
for it to be entered
. VNC passwords are only
336 significant up to
8 letters
. eg
339 (qemu
) change vnc password
346 ``change``
*device
* *setting
*
347 Change the configuration of a device
.
349 ``change``
*diskdevice
* *filename
* [*format
* [*read
-only
-mode
*]]
350 Change the medium
for a removable disk device to point to
*filename
*. eg
::
352 (qemu
) change ide1
-cd0
/path
/to
/some
.iso
354 *format
* is optional
.
356 *read
-only
-mode
* may be used to change the read
-only status of the device
.
357 It accepts the following values
:
360 Retains the current status
; this is the
default.
363 Makes the device read
-only
.
366 Makes the device writable
.
368 ``change vnc``
*display
*,\
*options
*
369 Change the configuration of the VNC server
. The valid syntax
for *display
*
370 and
*options
* are described at
:ref
:`sec_005finvocation`
. eg
::
372 (qemu
) change vnc localhost
:1
374 ``change vnc password``
[*password
*]
376 Change the password associated with the VNC server
. If the
new password
377 is not supplied
, the monitor will prompt
for it to be entered
. VNC
378 passwords are only significant up to
8 letters
. eg
::
380 (qemu
) change vnc password
386 .name
= "screendump",
387 .args_type
= "filename:F,device:s?,head:i?",
388 .params
= "filename [device [head]]",
389 .help
= "save screen from head 'head' of display device 'device' "
390 "into PPM image 'filename'",
391 .cmd
= hmp_screendump
,
395 @item screendump @
var{filename
}
397 Save screen into PPM image @
var{filename
}.
400 ``screendump``
*filename
*
401 Save screen into PPM image
*filename
*.
406 .args_type
= "filename:F",
407 .params
= "filename",
408 .help
= "output logs to 'filename'",
413 @item logfile @
var{filename
}
415 Output logs to @
var{filename
}.
418 ``logfile``
*filename
*
419 Output logs to
*filename
*.
423 .name
= "trace-event",
424 .args_type
= "name:s,option:b,vcpu:i?",
425 .params
= "name on|off [vcpu]",
426 .help
= "changes status of a specific trace event "
427 "(vcpu: vCPU to set, default is all)",
428 .cmd
= hmp_trace_event
,
429 .command_completion
= trace_event_completion
,
435 changes status of a
trace event
439 changes status of a
trace event
442 #
if defined(CONFIG_TRACE_SIMPLE
)
444 .name
= "trace-file",
445 .args_type
= "op:s?,arg:F?",
446 .params
= "on|off|flush|set [arg]",
447 .help
= "open, close, or flush trace file, or set a new file name",
448 .cmd
= hmp_trace_file
,
452 @item
trace-file on|off|flush
454 Open
, close
, or flush the
trace file
. If no argument is given
, the status of the
trace file is displayed
.
457 ``
trace-file on|off|flush``
458 Open
, close
, or flush the
trace file
. If no argument is given
, the
459 status of the
trace file is displayed
.
465 .args_type
= "items:s",
466 .params
= "item1[,...]",
467 .help
= "activate logging of the specified items",
472 @item log @
var{item1
}[,...]
474 Activate logging of the specified items
.
477 ``log``
*item1
*\
[,...]
478 Activate logging of the specified items
.
483 .args_type
= "name:s?",
485 .help
= "save a VM snapshot. If no tag is provided, a new snapshot is created",
490 @item savevm @
var{tag
}
492 Create a snapshot of the whole virtual machine
. If @
var{tag
} is
493 provided
, it is used as human readable identifier
. If there is already
494 a snapshot with the same tag
, it is replaced
. More info at
497 Since
4.0, savevm stopped allowing the snapshot id to be set
, accepting
498 only @
var{tag
} as parameter
.
502 Create a snapshot of the whole virtual machine
. If
*tag
* is
503 provided
, it is used as human readable identifier
. If there is already
504 a snapshot with the same tag
, it is replaced
. More info at
505 :ref
:`vm_005fsnapshots`
.
507 Since
4.0, savevm stopped allowing the snapshot id to be set
, accepting
508 only
*tag
* as parameter
.
513 .args_type
= "name:s",
515 .help
= "restore a VM snapshot from its tag",
517 .command_completion
= loadvm_completion
,
521 @item loadvm @
var{tag
}
523 Set the whole virtual machine to the snapshot identified by the tag
526 Since
4.0, loadvm stopped accepting snapshot id as parameter
.
530 Set the whole virtual machine to the snapshot identified by the tag
533 Since
4.0, loadvm stopped accepting snapshot id as parameter
.
538 .args_type
= "name:s",
540 .help
= "delete a VM snapshot from its tag",
542 .command_completion
= delvm_completion
,
546 @item delvm @
var{tag
}
548 Delete the snapshot identified by @
var{tag
}.
550 Since
4.0, delvm stopped deleting snapshots by snapshot id
, accepting
551 only @
var{tag
} as parameter
.
555 Delete the snapshot identified by
*tag
*.
557 Since
4.0, delvm stopped deleting snapshots by snapshot id
, accepting
558 only
*tag
* as parameter
.
562 .name
= "singlestep",
563 .args_type
= "option:s?",
564 .params
= "[on|off]",
565 .help
= "run emulation in singlestep mode or switch to normal mode",
566 .cmd
= hmp_singlestep
,
570 @item singlestep
[off
]
572 Run the emulation
in single step mode
.
573 If called with option off
, the emulation returns to normal mode
.
577 Run the emulation
in single step mode
.
578 If called with option off
, the emulation returns to normal mode
.
585 .help
= "stop emulation",
603 .help
= "resume emulation",
618 .name
= "system_wakeup",
621 .help
= "wakeup guest from suspend",
622 .cmd
= hmp_system_wakeup
,
627 @findex system_wakeup
628 Wakeup guest from suspend
.
632 Wakeup guest from suspend
.
637 .args_type
= "device:s?",
638 .params
= "[device]",
639 .help
= "start gdbserver on given device (default 'tcp::1234'), stop with 'none'",
640 .cmd
= hmp_gdbserver
,
644 @item gdbserver
[@
var{port
}]
646 Start gdbserver
session (default @
var{port
}=1234)
649 ``gdbserver``
[*port
*]
650 Start gdbserver
session (default *port
*\
=1234)
655 .args_type
= "fmt:/,addr:l",
656 .params
= "/fmt addr",
657 .help
= "virtual memory dump starting at 'addr'",
658 .cmd
= hmp_memory_dump
,
662 @item x
/fmt @
var{addr
}
664 Virtual memory dump starting at @
var{addr
}.
668 Virtual memory dump starting at
*addr
*.
673 .args_type
= "fmt:/,addr:l",
674 .params
= "/fmt addr",
675 .help
= "physical memory dump starting at 'addr'",
676 .cmd
= hmp_physical_memory_dump
,
680 @item xp
/@
var{fmt
} @
var{addr
}
682 Physical memory dump starting at @
var{addr
}.
684 @
var{fmt
} is a format which tells the command how to format the
685 data
. Its syntax is
: @option
{/@
{count@
}@
{format@
}@
{size@
}}
689 is the number of items to be dumped
.
692 can be
x (hex
), d (signed decimal
), u (unsigned decimal
), o (octal
),
693 c (char
) or
i (asm instruction
).
696 can be
b (8 bits
), h (16 bits
), w (32 bits
) or
g (64 bits
). On x86
,
697 @code
{h
} or @code
{w
} can be specified with the @code
{i
} format to
698 respectively select
16 or
32 bit code instruction size
.
705 Dump
10 instructions at the current instruction pointer
:
710 0x90107065: lea
0x0(%esi
,1),%esi
711 0x90107069: lea
0x0(%edi
,1),%edi
713 0x90107071: jmp
0x90107080
721 Dump
80 16 bit values at the start of the video memory
.
723 (qemu
) xp
/80hx
0xb8000
724 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
725 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
726 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
727 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
728 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
729 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
730 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
731 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
732 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
733 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
738 ``xp
/``\
*fmt
* *addr
*
739 Physical memory dump starting at
*addr
*.
741 *fmt
* is a format which tells the command how to format the
742 data
. Its syntax is
: ``
/{count
}{format
}{size
}``
745 is the number of items to be dumped
.
747 can be
x (hex
), d (signed decimal
), u (unsigned decimal
), o (octal
),
748 c (char
) or
i (asm instruction
).
750 can be
b (8 bits
), h (16 bits
), w (32 bits
) or
g (64 bits
). On x86
,
751 ``h`` or ``w`` can be specified with the ``i`` format to
752 respectively select
16 or
32 bit code instruction size
.
756 Dump
10 instructions at the current instruction pointer
::
761 0x90107065: lea
0x0(%esi
,1),%esi
762 0x90107069: lea
0x0(%edi
,1),%edi
764 0x90107071: jmp
0x90107080
770 Dump
80 16 bit values at the start of the video memory
::
772 (qemu
) xp
/80hx
0xb8000
773 0x000b8000: 0x0b50 0x0b6c 0x0b65 0x0b78 0x0b38 0x0b36 0x0b2f 0x0b42
774 0x000b8010: 0x0b6f 0x0b63 0x0b68 0x0b73 0x0b20 0x0b56 0x0b47 0x0b41
775 0x000b8020: 0x0b42 0x0b69 0x0b6f 0x0b73 0x0b20 0x0b63 0x0b75 0x0b72
776 0x000b8030: 0x0b72 0x0b65 0x0b6e 0x0b74 0x0b2d 0x0b63 0x0b76 0x0b73
777 0x000b8040: 0x0b20 0x0b30 0x0b35 0x0b20 0x0b4e 0x0b6f 0x0b76 0x0b20
778 0x000b8050: 0x0b32 0x0b30 0x0b30 0x0b33 0x0720 0x0720 0x0720 0x0720
779 0x000b8060: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
780 0x000b8070: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
781 0x000b8080: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
782 0x000b8090: 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720 0x0720
788 .args_type
= "addr:l",
790 .help
= "print the host virtual address corresponding to a guest physical address",
795 @item gpa2hva @
var{addr
}
797 Print the host virtual address at which the guest
's physical address @var{addr}
802 Print the host virtual address at which the guest's physical address
*addr
*
809 .args_type
= "addr:l",
811 .help
= "print the host physical address corresponding to a guest physical address",
817 @item gpa2hpa @
var{addr
}
819 Print the host physical address at which the guest
's physical address @var{addr}
824 Print the host physical address at which the guest's physical address
*addr
*
830 .args_type
= "addr:l",
832 .help
= "print the guest physical address corresponding to a guest virtual address",
837 @item gva2gpa @
var{addr
}
839 Print the guest physical address at which the guest
's virtual address @var{addr}
840 is mapped based on the mapping for the current CPU.
844 Print the guest physical address at which the guest's virtual address
*addr
*
845 is mapped based on the mapping
for the current CPU
.
850 .args_type
= "fmt:/,val:l",
851 .params
= "/fmt expr",
852 .help
= "print expression value (use $reg for CPU register access)",
857 @item p or print
/@
var{fmt
} @
var{expr
}
859 Print expression value
. Only the @
var{format
} part of @
var{fmt
} is
863 ``p`` or ``print
/``\
*fmt
* *expr
*
864 Print expression value
. Only the
*format
* part of
*fmt
* is
870 .args_type
= "fmt:/,addr:i,index:i.",
871 .params
= "/fmt addr",
872 .help
= "I/O port read",
873 .cmd
= hmp_ioport_read
,
877 @item i
/@
var{fmt
} @
var{addr
} [.@
var{index
}]
882 ``i
/``\
*fmt
* *addr
* [.\
*index
*\
]
888 .args_type
= "fmt:/,addr:i,val:i",
889 .params
= "/fmt addr value",
890 .help
= "I/O port write",
891 .cmd
= hmp_ioport_write
,
895 @item o
/@
var{fmt
} @
var{addr
} @
var{val
}
900 ``o
/``\
*fmt
* *addr
* *val
*
906 .args_type
= "keys:s,hold-time:i?",
907 .params
= "keys [hold_ms]",
908 .help
= "send keys to the VM (e.g. 'sendkey ctrl-alt-f1', default hold time=100 ms)",
910 .command_completion
= sendkey_completion
,
914 @item sendkey @
var{keys
}
916 Send @
var{keys
} to the guest
. @
var{keys
} could be the name of the
917 key or the raw value
in hexadecimal format
. Use @code
{-} to press
918 several keys simultaneously
. Example
:
923 This command is useful to send keys that your graphical user
interface
924 intercepts at low level
, such as @code
{ctrl
-alt
-f1
} in X Window
.
928 Send
*keys
* to the guest
. *keys
* could be the name of the
929 key or the raw value
in hexadecimal format
. Use ``
-`` to press
930 several keys simultaneously
. Example
::
934 This command is useful to send keys that your graphical user
interface
935 intercepts at low level
, such as ``ctrl
-alt
-f1``
in X Window
.
938 .name
= "sync-profile",
939 .args_type
= "op:s?",
940 .params
= "[on|off|reset]",
941 .help
= "enable, disable or reset synchronization profiling. "
942 "With no arguments, prints whether profiling is on or off.",
943 .cmd
= hmp_sync_profile
,
947 @item sync
-profile
[on|off|reset
]
949 Enable
, disable or reset synchronization profiling
. With no arguments
, prints
950 whether profiling is on or off
.
953 ``sync
-profile
[on|off|reset
]``
954 Enable
, disable or reset synchronization profiling
. With no arguments
, prints
955 whether profiling is on or off
.
959 .name
= "system_reset",
962 .help
= "reset the system",
963 .cmd
= hmp_system_reset
,
977 .name
= "system_powerdown",
980 .help
= "send system power down event",
981 .cmd
= hmp_system_powerdown
,
985 @item system_powerdown
986 @findex system_powerdown
987 Power down the
system (if supported
).
991 Power down the
system (if supported
).
996 .args_type
= "start:i,size:i",
997 .params
= "addr size",
998 .help
= "compute the checksum of a memory region",
1003 @item sum @
var{addr
} @
var{size
}
1005 Compute the checksum of a memory region
.
1008 ``sum``
*addr
* *size
*
1009 Compute the checksum of a memory region
.
1013 .name
= "device_add",
1014 .args_type
= "device:O",
1015 .params
= "driver[,prop=value][,...]",
1016 .help
= "add device, like -device on the command line",
1017 .cmd
= hmp_device_add
,
1018 .command_completion
= device_add_completion
,
1022 @item device_add @
var{config
}
1027 ``device_add``
*config
*
1032 .name
= "device_del",
1033 .args_type
= "id:s",
1035 .help
= "remove device",
1036 .cmd
= hmp_device_del
,
1037 .command_completion
= device_del_completion
,
1041 @item device_del @
var{id
}
1043 Remove device @
var{id
}. @
var{id
} may be a short ID
1044 or a QOM object path
.
1048 Remove device
*id
*. *id
* may be a short ID
1049 or a QOM object path
.
1054 .args_type
= "index:i",
1056 .help
= "set the default CPU",
1061 @item cpu @
var{index
}
1063 Set the
default CPU
.
1067 Set the
default CPU
.
1071 .name
= "mouse_move",
1072 .args_type
= "dx_str:s,dy_str:s,dz_str:s?",
1073 .params
= "dx dy [dz]",
1074 .help
= "send mouse move events",
1075 .cmd
= hmp_mouse_move
,
1079 @item mouse_move @
var{dx
} @
var{dy
} [@
var{dz
}]
1081 Move the active mouse to the specified coordinates @
var{dx
} @
var{dy
}
1082 with optional scroll axis @
var{dz
}.
1085 ``mouse_move``
*dx
* *dy
* [*dz
*]
1086 Move the active mouse to the specified coordinates
*dx
* *dy
*
1087 with optional scroll axis
*dz
*.
1091 .name
= "mouse_button",
1092 .args_type
= "button_state:i",
1094 .help
= "change mouse button state (1=L, 2=M, 4=R)",
1095 .cmd
= hmp_mouse_button
,
1099 @item mouse_button @
var{val
}
1100 @findex mouse_button
1101 Change the active mouse button state @
var{val
} (1=L
, 2=M
, 4=R
).
1104 ``mouse_button``
*val
*
1105 Change the active mouse button state
*val
* (1=L
, 2=M
, 4=R
).
1109 .name
= "mouse_set",
1110 .args_type
= "index:i",
1112 .help
= "set which mouse device receives events",
1113 .cmd
= hmp_mouse_set
,
1117 @item mouse_set @
var{index
}
1119 Set which mouse device receives events at given @
var{index
}, index
1120 can be obtained with
1126 ``mouse_set``
*index
*
1127 Set which mouse device receives events at given
*index
*, index
1128 can be obtained with
::
1135 .name
= "wavcapture",
1136 .args_type
= "path:F,audiodev:s,freq:i?,bits:i?,nchannels:i?",
1137 .params
= "path audiodev [frequency [bits [channels]]]",
1138 .help
= "capture audio to a wave file (default frequency=44100 bits=16 channels=2)",
1139 .cmd
= hmp_wavcapture
,
1142 @item wavcapture @
var{filename
} @
var{audiodev
} [@
var{frequency
} [@
var{bits
} [@
var{channels
}]]]
1144 Capture audio into @
var{filename
} from @
var{audiodev
}, using sample rate
1145 @
var{frequency
} bits per sample @
var{bits
} and number of channels
1150 @item Sample rate
= 44100 Hz
- CD quality
1152 @item Number of channels
= 2 - Stereo
1156 ``wavcapture``
*filename
* *audiodev
* [*frequency
* [*bits
* [*channels
*]]]
1157 Capture audio into
*filename
* from
*audiodev
*, using sample rate
1158 *frequency
* bits per sample
*bits
* and number of channels
1163 - Sample rate
= 44100 Hz
- CD quality
1165 - Number of channels
= 2 - Stereo
1169 .name
= "stopcapture",
1171 .params
= "capture index",
1172 .help
= "stop capture",
1173 .cmd
= hmp_stopcapture
,
1176 @item stopcapture @
var{index
}
1178 Stop capture with a given @
var{index
}, index can be obtained with
1184 ``stopcapture``
*index
*
1185 Stop capture with a given
*index
*, index can be obtained with
::
1193 .args_type
= "val:l,size:i,filename:s",
1194 .params
= "addr size file",
1195 .help
= "save to disk virtual memory dump starting at 'addr' of size 'size'",
1200 @item memsave @
var{addr
} @
var{size
} @
var{file
}
1202 save to disk virtual memory dump starting at @
var{addr
} of size @
var{size
}.
1205 ``memsave``
*addr
* *size
* *file
*
1206 save to disk virtual memory dump starting at
*addr
* of size
*size
*.
1211 .args_type
= "val:l,size:i,filename:s",
1212 .params
= "addr size file",
1213 .help
= "save to disk physical memory dump starting at 'addr' of size 'size'",
1214 .cmd
= hmp_pmemsave
,
1218 @item pmemsave @
var{addr
} @
var{size
} @
var{file
}
1220 save to disk physical memory dump starting at @
var{addr
} of size @
var{size
}.
1223 ``pmemsave``
*addr
* *size
* *file
*
1224 save to disk physical memory dump starting at
*addr
* of size
*size
*.
1229 .args_type
= "bootdevice:s",
1230 .params
= "bootdevice",
1231 .help
= "define new values for the boot device list",
1232 .cmd
= hmp_boot_set
,
1236 @item boot_set @
var{bootdevicelist
}
1238 Define
new values
for the boot device list
. Those values will
override
1239 the values specified on the command line through the @code
{-boot
} option
.
1241 The values that can be specified
here depend on the machine type
, but are
1242 the same that can be specified
in the @code
{-boot
} command line option
.
1245 ``boot_set``
*bootdevicelist
*
1246 Define
new values
for the boot device list
. Those values will
override
1247 the values specified on the command line through the ``
-boot`` option
.
1249 The values that can be specified
here depend on the machine type
, but are
1250 the same that can be specified
in the ``
-boot`` command line option
.
1257 .help
= "inject an NMI",
1263 Inject an NMI on the
default CPU (x86
/s390
) or all
CPUs (ppc64
).
1268 Inject an NMI on the
default CPU (x86
/s390
) or all
CPUs (ppc64
).
1272 .name
= "ringbuf_write",
1273 .args_type
= "device:s,data:s",
1274 .params
= "device data",
1275 .help
= "Write to a ring buffer character device",
1276 .cmd
= hmp_ringbuf_write
,
1277 .command_completion
= ringbuf_write_completion
,
1281 @item ringbuf_write @
var{device
} @
var{data
}
1282 @findex ringbuf_write
1283 Write @
var{data
} to ring buffer character device @
var{device
}.
1284 @
var{data
} must be a UTF
-8 string
.
1288 ``ringbuf_write``
*device
* *data
*
1289 Write
*data
* to ring buffer character device
*device
*.
1290 *data
* must be a UTF
-8 string
.
1294 .name
= "ringbuf_read",
1295 .args_type
= "device:s,size:i",
1296 .params
= "device size",
1297 .help
= "Read from a ring buffer character device",
1298 .cmd
= hmp_ringbuf_read
,
1299 .command_completion
= ringbuf_write_completion
,
1303 @item ringbuf_read @
var{device
}
1304 @findex ringbuf_read
1305 Read and print up to @
var{size
} bytes from ring buffer character
1306 device @
var{device
}.
1307 Certain non
-printable characters are printed \uXXXX
, where XXXX is the
1308 character code
in hexadecimal
. Character \ is printed
\\.
1309 Bug
: can screw up when the buffer contains invalid UTF
-8 sequences
,
1310 NUL characters
, after the ring buffer lost data
, and when reading
1311 stops because the size limit is reached
.
1315 ``ringbuf_read``
*device
*
1316 Read and print up to
*size
* bytes from ring buffer character
1318 Certain non
-printable characters are printed ``\uXXXX``
, where ``XXXX`` is the
1319 character code
in hexadecimal
. Character ``\`` is printed ``
\\``
.
1320 Bug
: can screw up when the buffer contains invalid UTF
-8 sequences
,
1321 NUL characters
, after the ring buffer lost data
, and when reading
1322 stops because the size limit is reached
.
1326 .name
= "announce_self",
1327 .args_type
= "interfaces:s?,id:s?",
1328 .params
= "[interfaces] [id]",
1329 .help
= "Trigger GARP/RARP announcements",
1330 .cmd
= hmp_announce_self
,
1335 @findex announce_self
1336 Trigger a round of GARP
/RARP broadcasts
; this is useful
for explicitly updating the
1337 network infrastructure after a reconfiguration or some forms of migration
.
1338 The timings of the round are set by the migration announce parameters
.
1339 An optional comma separated @
var{interfaces
} list restricts the announce to the
1340 named set of interfaces
. An optional @
var{id
} can be used to start a separate announce
1341 timer and to change the parameters of it later
.
1345 Trigger a round of GARP
/RARP broadcasts
; this is useful
for explicitly
1346 updating the network infrastructure after a reconfiguration or some forms
1347 of migration
. The timings of the round are set by the migration announce
1348 parameters
. An optional comma separated
*interfaces
* list restricts the
1349 announce to the named set of interfaces
. An optional
*id
* can be used to
1350 start a separate announce timer and to change the parameters of it later
.
1355 .args_type
= "detach:-d,blk:-b,inc:-i,resume:-r,uri:s",
1356 .params
= "[-d] [-b] [-i] [-r] uri",
1357 .help
= "migrate to URI (using -d to not wait for completion)"
1358 "\n\t\t\t -b for migration without shared storage with"
1359 " full copy of disk\n\t\t\t -i for migration without "
1360 "shared storage with incremental copy of disk "
1361 "(base image shared between src and destination)"
1362 "\n\t\t\t -r to resume a paused migration",
1368 @item migrate
[-d
] [-b
] [-i
] @
var{uri
}
1370 Migrate to @
var{uri
} (using -d to not wait
for completion
).
1371 -b
for migration with full copy of disk
1372 -i
for migration with incremental copy of
disk (base image is shared
)
1375 ``migrate
[-d
] [-b
] [-i
]``
*uri
*
1376 Migrate to
*uri
* (using -d to not wait
for completion
).
1379 for migration with full copy of disk
1381 for migration with incremental copy of
disk (base image is shared
)
1385 .name
= "migrate_cancel",
1388 .help
= "cancel the current VM migration",
1389 .cmd
= hmp_migrate_cancel
,
1393 @item migrate_cancel
1394 @findex migrate_cancel
1395 Cancel the current VM migration
.
1399 Cancel the current VM migration
.
1403 .name
= "migrate_continue",
1404 .args_type
= "state:s",
1406 .help
= "Continue migration from the given paused state",
1407 .cmd
= hmp_migrate_continue
,
1410 @item migrate_continue @
var{state
}
1411 @findex migrate_continue
1412 Continue migration from the paused state @
var{state
}
1415 ``migrate_continue``
*state
*
1416 Continue migration from the paused state
*state
*
1420 .name
= "migrate_incoming",
1421 .args_type
= "uri:s",
1423 .help
= "Continue an incoming migration from an -incoming defer",
1424 .cmd
= hmp_migrate_incoming
,
1428 @item migrate_incoming @
var{uri
}
1429 @findex migrate_incoming
1430 Continue an incoming migration
using the @
var{uri
} (that has the same syntax
1431 as the
-incoming option
).
1434 ``migrate_incoming``
*uri
*
1435 Continue an incoming migration
using the
*uri
* (that has the same syntax
1436 as the ``
-incoming`` option
).
1440 .name
= "migrate_recover",
1441 .args_type
= "uri:s",
1443 .help
= "Continue a paused incoming postcopy migration",
1444 .cmd
= hmp_migrate_recover
,
1448 @item migrate_recover @
var{uri
}
1449 @findex migrate_recover
1450 Continue a paused incoming postcopy migration
using the @
var{uri
}.
1453 ``migrate_recover``
*uri
*
1454 Continue a paused incoming postcopy migration
using the
*uri
*.
1458 .name
= "migrate_pause",
1461 .help
= "Pause an ongoing migration (postcopy-only)",
1462 .cmd
= hmp_migrate_pause
,
1467 @findex migrate_pause
1468 Pause an ongoing migration
. Currently it only supports postcopy
.
1472 Pause an ongoing migration
. Currently it only supports postcopy
.
1476 .name
= "migrate_set_cache_size",
1477 .args_type
= "value:o",
1479 .help
= "set cache size (in bytes) for XBZRLE migrations,"
1480 "the cache size will be rounded down to the nearest "
1482 "The cache size affects the number of cache misses."
1483 "In case of a high cache miss ratio you need to increase"
1485 .cmd
= hmp_migrate_set_cache_size
,
1489 @item migrate_set_cache_size @
var{value
}
1490 @findex migrate_set_cache_size
1491 Set cache size to @
var{value
} (in bytes
) for xbzrle migrations
.
1494 ``migrate_set_cache_size``
*value
*
1495 Set cache size to
*value
* (in bytes
) for xbzrle migrations
.
1499 .name
= "migrate_set_speed",
1500 .args_type
= "value:o",
1502 .help
= "set maximum speed (in bytes) for migrations. "
1503 "Defaults to MB if no size suffix is specified, ie. B/K/M/G/T",
1504 .cmd
= hmp_migrate_set_speed
,
1508 @item migrate_set_speed @
var{value
}
1509 @findex migrate_set_speed
1510 Set maximum speed to @
var{value
} (in bytes
) for migrations
.
1513 ``migrate_set_speed``
*value
*
1514 Set maximum speed to
*value
* (in bytes
) for migrations
.
1518 .name
= "migrate_set_downtime",
1519 .args_type
= "value:T",
1521 .help
= "set maximum tolerated downtime (in seconds) for migrations",
1522 .cmd
= hmp_migrate_set_downtime
,
1526 @item migrate_set_downtime @
var{second
}
1527 @findex migrate_set_downtime
1528 Set maximum tolerated
downtime (in seconds
) for migration
.
1531 ``migrate_set_downtime``
*second
*
1532 Set maximum tolerated
downtime (in seconds
) for migration
.
1536 .name
= "migrate_set_capability",
1537 .args_type
= "capability:s,state:b",
1538 .params
= "capability state",
1539 .help
= "Enable/Disable the usage of a capability for migration",
1540 .cmd
= hmp_migrate_set_capability
,
1541 .command_completion
= migrate_set_capability_completion
,
1545 @item migrate_set_capability @
var{capability
} @
var{state
}
1546 @findex migrate_set_capability
1547 Enable
/Disable the usage of a capability @
var{capability
} for migration
.
1550 ``migrate_set_capability``
*capability
* *state
*
1551 Enable
/Disable the usage of a capability
*capability
* for migration
.
1555 .name
= "migrate_set_parameter",
1556 .args_type
= "parameter:s,value:s",
1557 .params
= "parameter value",
1558 .help
= "Set the parameter for migration",
1559 .cmd
= hmp_migrate_set_parameter
,
1560 .command_completion
= migrate_set_parameter_completion
,
1564 @item migrate_set_parameter @
var{parameter
} @
var{value
}
1565 @findex migrate_set_parameter
1566 Set the parameter @
var{parameter
} for migration
.
1569 ``migrate_set_parameter``
*parameter
* *value
*
1570 Set the parameter
*parameter
* for migration
.
1574 .name
= "migrate_start_postcopy",
1577 .help
= "Followup to a migration command to switch the migration"
1578 " to postcopy mode. The postcopy-ram capability must "
1579 "be set on both source and destination before the "
1580 "original migration command .",
1581 .cmd
= hmp_migrate_start_postcopy
,
1585 @item migrate_start_postcopy
1586 @findex migrate_start_postcopy
1587 Switch
in-progress migration to postcopy mode
. Ignored after the end of
1588 migration (or once already
in postcopy
).
1591 ``migrate_start_postcopy``
1592 Switch
in-progress migration to postcopy mode
. Ignored after the end of
1593 migration (or once already
in postcopy
).
1597 .name
= "x_colo_lost_heartbeat",
1600 .help
= "Tell COLO that heartbeat is lost,\n\t\t\t"
1601 "a failover or takeover is needed.",
1602 .cmd
= hmp_x_colo_lost_heartbeat
,
1606 @item x_colo_lost_heartbeat
1607 @findex x_colo_lost_heartbeat
1608 Tell COLO that heartbeat is lost
, a failover or takeover is needed
.
1611 ``x_colo_lost_heartbeat``
1612 Tell COLO that heartbeat is lost
, a failover or takeover is needed
.
1616 .name
= "client_migrate_info",
1617 .args_type
= "protocol:s,hostname:s,port:i?,tls-port:i?,cert-subject:s?",
1618 .params
= "protocol hostname port tls-port cert-subject",
1619 .help
= "set migration information for remote display",
1620 .cmd
= hmp_client_migrate_info
,
1624 @item client_migrate_info @
var{protocol
} @
var{hostname
} @
var{port
} @
var{tls
-port
} @
var{cert
-subject
}
1625 @findex client_migrate_info
1626 Set migration information
for remote display
. This makes the server
1627 ask the client to automatically reconnect
using the
new parameters
1628 once migration finished successfully
. Only implemented
for SPICE
.
1631 ``client_migrate_info``
*protocol
* *hostname
* *port
* *tls
-port
* *cert
-subject
*
1632 Set migration information
for remote display
. This makes the server
1633 ask the client to automatically reconnect
using the
new parameters
1634 once migration finished successfully
. Only implemented
for SPICE
.
1638 .name
= "dump-guest-memory",
1639 .args_type
= "paging:-p,detach:-d,windmp:-w,zlib:-z,lzo:-l,snappy:-s,filename:F,begin:l?,length:l?",
1640 .params
= "[-p] [-d] [-z|-l|-s|-w] filename [begin length]",
1641 .help
= "dump guest memory into file 'filename'.\n\t\t\t"
1642 "-p: do paging to get guest's memory mapping.\n\t\t\t"
1643 "-d: return immediately (do not wait for completion).\n\t\t\t"
1644 "-z: dump in kdump-compressed format, with zlib compression.\n\t\t\t"
1645 "-l: dump in kdump-compressed format, with lzo compression.\n\t\t\t"
1646 "-s: dump in kdump-compressed format, with snappy compression.\n\t\t\t"
1647 "-w: dump in Windows crashdump format (can be used instead of ELF-dump converting),\n\t\t\t"
1648 " for Windows x64 guests with vmcoreinfo driver only.\n\t\t\t"
1649 "begin: the starting physical address.\n\t\t\t"
1650 "length: the memory size, in bytes.",
1651 .cmd
= hmp_dump_guest_memory
,
1655 @item dump
-guest
-memory
[-p
] @
var{filename
} @
var{begin
} @
var{length
}
1656 @item dump
-guest
-memory
[-z|
-l|
-s|
-w
] @
var{filename
}
1657 @findex dump
-guest
-memory
1658 Dump guest memory to @
var{protocol
}. The file can be processed with crash or
1659 gdb
. Without
-z|
-l|
-s|
-w
, the dump format is ELF
.
1660 -p
: do paging to get guest
's memory mapping.
1661 -z: dump in kdump-compressed format, with zlib compression.
1662 -l: dump in kdump-compressed format, with lzo compression.
1663 -s: dump in kdump-compressed format, with snappy compression.
1664 -w: dump in Windows crashdump format (can be used instead of ELF-dump converting),
1665 for Windows x64 guests with vmcoreinfo driver only
1666 filename: dump file name.
1667 begin: the starting physical address. It's optional
, and should be
1668 specified together with length
.
1669 length
: the memory size
, in bytes
. It
's optional, and should be specified
1670 together with begin.
1673 ``dump-guest-memory [-p]`` *filename* *begin* *length*
1675 ``dump-guest-memory [-z|-l|-s|-w]`` *filename*
1676 Dump guest memory to *protocol*. The file can be processed with crash or
1677 gdb. Without ``-z|-l|-s|-w``, the dump format is ELF.
1680 do paging to get guest's memory mapping
.
1682 dump
in kdump
-compressed format
, with zlib compression
.
1684 dump
in kdump
-compressed format
, with lzo compression
.
1686 dump
in kdump
-compressed format
, with snappy compression
.
1688 dump
in Windows crashdump
format (can be used instead of ELF
-dump converting
),
1689 for Windows x64 guests with vmcoreinfo driver only
1693 the starting physical address
. It
's optional, and should be
1694 specified together with *length*.
1696 the memory size, in bytes. It's optional
, and should be specified
1697 together with
*begin
*.
1701 #
if defined(TARGET_S390X
)
1703 .name
= "dump-skeys",
1704 .args_type
= "filename:F",
1706 .help
= "Save guest storage keys into file 'filename'.\n",
1707 .cmd
= hmp_dump_skeys
,
1712 @item dump
-skeys @
var{filename
}
1714 Save guest storage keys to a file
.
1717 ``dump
-skeys``
*filename
*
1718 Save guest storage keys to a file
.
1721 #
if defined(TARGET_S390X
)
1723 .name
= "migration_mode",
1724 .args_type
= "mode:i",
1726 .help
= "Enables or disables migration mode\n",
1727 .cmd
= hmp_migrationmode
,
1732 @item migration_mode @
var{mode
}
1733 @findex migration_mode
1734 Enables or disables migration mode
.
1737 ``migration_mode``
*mode
*
1738 Enables or disables migration mode
.
1742 .name
= "snapshot_blkdev",
1743 .args_type
= "reuse:-n,device:B,snapshot-file:s?,format:s?",
1744 .params
= "[-n] device [new-image-file] [format]",
1745 .help
= "initiates a live snapshot\n\t\t\t"
1746 "of device. If a new image file is specified, the\n\t\t\t"
1747 "new image file will become the new root image.\n\t\t\t"
1748 "If format is specified, the snapshot file will\n\t\t\t"
1749 "be created in that format.\n\t\t\t"
1750 "The default format is qcow2. The -n flag requests QEMU\n\t\t\t"
1751 "to reuse the image found in new-image-file, instead of\n\t\t\t"
1752 "recreating it from scratch.",
1753 .cmd
= hmp_snapshot_blkdev
,
1757 @item snapshot_blkdev
1758 @findex snapshot_blkdev
1759 Snapshot device
, using snapshot file as target
if provided
1763 Snapshot device
, using snapshot file as target
if provided
1767 .name
= "snapshot_blkdev_internal",
1768 .args_type
= "device:B,name:s",
1769 .params
= "device name",
1770 .help
= "take an internal snapshot of device.\n\t\t\t"
1771 "The format of the image used by device must\n\t\t\t"
1772 "support it, such as qcow2.\n\t\t\t",
1773 .cmd
= hmp_snapshot_blkdev_internal
,
1777 @item snapshot_blkdev_internal
1778 @findex snapshot_blkdev_internal
1779 Take an internal snapshot on device
if it support
1782 ``snapshot_blkdev_internal``
1783 Take an internal snapshot on device
if it support
1787 .name
= "snapshot_delete_blkdev_internal",
1788 .args_type
= "device:B,name:s,id:s?",
1789 .params
= "device name [id]",
1790 .help
= "delete an internal snapshot of device.\n\t\t\t"
1791 "If id is specified, qemu will try delete\n\t\t\t"
1792 "the snapshot matching both id and name.\n\t\t\t"
1793 "The format of the image used by device must\n\t\t\t"
1794 "support it, such as qcow2.\n\t\t\t",
1795 .cmd
= hmp_snapshot_delete_blkdev_internal
,
1799 @item snapshot_delete_blkdev_internal
1800 @findex snapshot_delete_blkdev_internal
1801 Delete an internal snapshot on device
if it support
1804 ``snapshot_delete_blkdev_internal``
1805 Delete an internal snapshot on device
if it support
1809 .name
= "drive_mirror",
1810 .args_type
= "reuse:-n,full:-f,device:B,target:s,format:s?",
1811 .params
= "[-n] [-f] device target [format]",
1812 .help
= "initiates live storage\n\t\t\t"
1813 "migration for a device. The device's contents are\n\t\t\t"
1814 "copied to the new image file, including data that\n\t\t\t"
1815 "is written after the command is started.\n\t\t\t"
1816 "The -n flag requests QEMU to reuse the image found\n\t\t\t"
1817 "in new-image-file, instead of recreating it from scratch.\n\t\t\t"
1818 "The -f flag requests QEMU to copy the whole disk,\n\t\t\t"
1819 "so that the result does not need a backing file.\n\t\t\t",
1820 .cmd
= hmp_drive_mirror
,
1824 @findex drive_mirror
1825 Start mirroring a block device
's writes to a new destination,
1826 using the specified target.
1830 Start mirroring a block device's writes to a
new destination
,
1831 using the specified target
.
1835 .name
= "drive_backup",
1836 .args_type
= "reuse:-n,full:-f,compress:-c,device:B,target:s,format:s?",
1837 .params
= "[-n] [-f] [-c] device target [format]",
1838 .help
= "initiates a point-in-time\n\t\t\t"
1839 "copy for a device. The device's contents are\n\t\t\t"
1840 "copied to the new image file, excluding data that\n\t\t\t"
1841 "is written after the command is started.\n\t\t\t"
1842 "The -n flag requests QEMU to reuse the image found\n\t\t\t"
1843 "in new-image-file, instead of recreating it from scratch.\n\t\t\t"
1844 "The -f flag requests QEMU to copy the whole disk,\n\t\t\t"
1845 "so that the result does not need a backing file.\n\t\t\t"
1846 "The -c flag requests QEMU to compress backup data\n\t\t\t"
1847 "(if the target format supports it).\n\t\t\t",
1848 .cmd
= hmp_drive_backup
,
1852 @findex drive_backup
1853 Start a point
-in-time copy of a block device to a specificed target
.
1857 Start a point
-in-time copy of a block device to a specificed target
.
1861 .name
= "drive_add",
1862 .args_type
= "node:-n,pci_addr:s,opts:s",
1863 .params
= "[-n] [[<domain>:]<bus>:]<slot>\n"
1864 "[file=file][,if=type][,bus=n]\n"
1865 "[,unit=m][,media=d][,index=i]\n"
1866 "[,snapshot=on|off][,cache=on|off]\n"
1867 "[,readonly=on|off][,copy-on-read=on|off]",
1868 .help
= "add drive to PCI storage controller",
1869 .cmd
= hmp_drive_add
,
1875 Add drive to PCI storage controller
.
1879 Add drive to PCI storage controller
.
1883 .name
= "pcie_aer_inject_error",
1884 .args_type
= "advisory_non_fatal:-a,correctable:-c,"
1885 "id:s,error_status:s,"
1886 "header0:i?,header1:i?,header2:i?,header3:i?,"
1887 "prefix0:i?,prefix1:i?,prefix2:i?,prefix3:i?",
1888 .params
= "[-a] [-c] id "
1889 "<error_status> [<tlp header> [<tlp header prefix>]]",
1890 .help
= "inject pcie aer error\n\t\t\t"
1891 " -a for advisory non fatal error\n\t\t\t"
1892 " -c for correctable error\n\t\t\t"
1893 "<id> = qdev device id\n\t\t\t"
1894 "<error_status> = error string or 32bit\n\t\t\t"
1895 "<tlb header> = 32bit x 4\n\t\t\t"
1896 "<tlb header prefix> = 32bit x 4",
1897 .cmd
= hmp_pcie_aer_inject_error
,
1901 @item pcie_aer_inject_error
1902 @findex pcie_aer_inject_error
1903 Inject PCIe AER error
1906 ``pcie_aer_inject_error``
1907 Inject PCIe AER error
1911 .name
= "netdev_add",
1912 .args_type
= "netdev:O",
1913 .params
= "[user|tap|socket|vde|bridge|hubport|netmap|vhost-user],id=str[,prop=value][,...]",
1914 .help
= "add host network device",
1915 .cmd
= hmp_netdev_add
,
1916 .command_completion
= netdev_add_completion
,
1922 Add host network device
.
1926 Add host network device
.
1930 .name
= "netdev_del",
1931 .args_type
= "id:s",
1933 .help
= "remove host network device",
1934 .cmd
= hmp_netdev_del
,
1935 .command_completion
= netdev_del_completion
,
1941 Remove host network device
.
1945 Remove host network device
.
1949 .name
= "object_add",
1950 .args_type
= "object:O",
1951 .params
= "[qom-type=]type,id=str[,prop=value][,...]",
1952 .help
= "create QOM object",
1953 .cmd
= hmp_object_add
,
1954 .command_completion
= object_add_completion
,
1968 .name
= "object_del",
1969 .args_type
= "id:s",
1971 .help
= "destroy QOM object",
1972 .cmd
= hmp_object_del
,
1973 .command_completion
= object_del_completion
,
1988 .name
= "hostfwd_add",
1989 .args_type
= "arg1:s,arg2:s?,arg3:s?",
1990 .params
= "[hub_id name]|[netdev_id] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport",
1991 .help
= "redirect TCP or UDP connections from host to guest (requires -net user)",
1992 .cmd
= hmp_hostfwd_add
,
1998 Redirect TCP or UDP connections from host to
guest (requires
-net user
).
2002 Redirect TCP or UDP connections from host to
guest (requires
-net user
).
2007 .name
= "hostfwd_remove",
2008 .args_type
= "arg1:s,arg2:s?,arg3:s?",
2009 .params
= "[hub_id name]|[netdev_id] [tcp|udp]:[hostaddr]:hostport",
2010 .help
= "remove host-to-guest TCP or UDP redirection",
2011 .cmd
= hmp_hostfwd_remove
,
2016 @item hostfwd_remove
2017 @findex hostfwd_remove
2018 Remove host
-to
-guest TCP or UDP redirection
.
2022 Remove host
-to
-guest TCP or UDP redirection
.
2027 .args_type
= "value:M",
2029 .help
= "request VM to change its memory allocation (in MB)",
2034 @item balloon @
var{value
}
2036 Request VM to change its memory allocation to @
var{value
} (in MB
).
2040 Request VM to change its memory allocation to
*value
* (in MB
).
2045 .args_type
= "name:s,up:b",
2046 .params
= "name on|off",
2047 .help
= "change the link status of a network adapter",
2048 .cmd
= hmp_set_link
,
2049 .command_completion
= set_link_completion
,
2053 @item set_link @
var{name
} [on|off
]
2055 Switch link @
var{name
} on (i
.e
. up
) or
off (i
.e
. down
).
2058 ``set_link``
*name
* ``
[on|off
]``
2059 Switch link
*name
* on (i
.e
. up
) or
off (i
.e
. down
).
2063 .name
= "watchdog_action",
2064 .args_type
= "action:s",
2065 .params
= "[reset|shutdown|poweroff|pause|debug|none]",
2066 .help
= "change watchdog action",
2067 .cmd
= hmp_watchdog_action
,
2068 .command_completion
= watchdog_action_completion
,
2072 @item watchdog_action
2073 @findex watchdog_action
2074 Change watchdog action
.
2078 Change watchdog action
.
2083 .args_type
= "aclname:s",
2084 .params
= "aclname",
2085 .help
= "list rules in the access control list",
2086 .cmd
= hmp_acl_show
,
2090 @item acl_show @
var{aclname
}
2092 List all the matching rules
in the access control list
, and the
default
2093 policy
. There are currently two named access control lists
,
2094 @
var{vnc
.x509dname
} and @
var{vnc
.username
} matching on the x509 client
2095 certificate distinguished name
, and SASL username respectively
.
2098 ``acl_show``
*aclname
*
2099 List all the matching rules
in the access control list
, and the
default
2100 policy
. There are currently two named access control lists
,
2101 *vnc
.x509dname
* and
*vnc
.username
* matching on the x509 client
2102 certificate distinguished name
, and SASL username respectively
.
2106 .name
= "acl_policy",
2107 .args_type
= "aclname:s,policy:s",
2108 .params
= "aclname allow|deny",
2109 .help
= "set default access control list policy",
2110 .cmd
= hmp_acl_policy
,
2114 @item acl_policy @
var{aclname
} @code
{allow|deny
}
2116 Set the
default access control list policy
, used
in the event that
2117 none of the explicit rules match
. The
default policy at startup is
2121 ``acl_policy``
*aclname
* ``allow|deny``
2122 Set the
default access control list policy
, used
in the event that
2123 none of the explicit rules match
. The
default policy at startup is
2129 .args_type
= "aclname:s,match:s,policy:s,index:i?",
2130 .params
= "aclname match allow|deny [index]",
2131 .help
= "add a match rule to the access control list",
2136 @item acl_add @
var{aclname
} @
var{match
} @code
{allow|deny
} [@
var{index
}]
2138 Add a match rule to the access control list
, allowing or denying access
.
2139 The match will normally be an exact username or x509 distinguished name
,
2140 but can optionally include wildcard globs
. eg @code
{*@@EXAMPLE
.COM
} to
2141 allow all users
in the @code
{EXAMPLE
.COM
} kerberos realm
. The match will
2142 normally be appended to the end of the ACL
, but can be inserted
2143 earlier
in the list
if the optional @
var{index
} parameter is supplied
.
2146 ``acl_add``
*aclname
* *match
* ``allow|deny``
[*index
*]
2147 Add a match rule to the access control list
, allowing or denying access
.
2148 The match will normally be an exact username or x509 distinguished name
,
2149 but can optionally include wildcard globs
. eg ``
*@EXAMPLE
.COM`` to
2150 allow all users
in the ``EXAMPLE
.COM`` kerberos realm
. The match will
2151 normally be appended to the end of the ACL
, but can be inserted
2152 earlier
in the list
if the optional
*index
* parameter is supplied
.
2156 .name
= "acl_remove",
2157 .args_type
= "aclname:s,match:s",
2158 .params
= "aclname match",
2159 .help
= "remove a match rule from the access control list",
2160 .cmd
= hmp_acl_remove
,
2164 @item acl_remove @
var{aclname
} @
var{match
}
2166 Remove the specified match rule from the access control list
.
2169 ``acl_remove``
*aclname
* *match
*
2170 Remove the specified match rule from the access control list
.
2174 .name
= "acl_reset",
2175 .args_type
= "aclname:s",
2176 .params
= "aclname",
2177 .help
= "reset the access control list",
2178 .cmd
= hmp_acl_reset
,
2182 @item acl_reset @
var{aclname
}
2184 Remove all matches from the access control list
, and set the
default
2185 policy back to @code
{deny
}.
2188 ``acl_reset``
*aclname
*
2189 Remove all matches from the access control list
, and set the
default
2190 policy back to ``deny``
.
2194 .name
= "nbd_server_start",
2195 .args_type
= "all:-a,writable:-w,uri:s",
2196 .params
= "nbd_server_start [-a] [-w] host:port",
2197 .help
= "serve block devices on the given host and port",
2198 .cmd
= hmp_nbd_server_start
,
2201 @item nbd_server_start @
var{host
}:@
var{port
}
2202 @findex nbd_server_start
2203 Start an NBD server on the given host and
/or port
. If the @option
{-a
}
2204 option is included
, all of the virtual machine
's block devices that
2205 have an inserted media on them are automatically exported; in this case,
2206 the @option{-w} option makes the devices writable too.
2209 ``nbd_server_start`` *host*:*port*
2210 Start an NBD server on the given host and/or port. If the ``-a``
2211 option is included, all of the virtual machine's block devices that
2212 have an inserted media on them are automatically exported
; in this case,
2213 the ``
-w`` option makes the devices writable too
.
2217 .name
= "nbd_server_add",
2218 .args_type
= "writable:-w,device:B,name:s?",
2219 .params
= "nbd_server_add [-w] device [name]",
2220 .help
= "export a block device via NBD",
2221 .cmd
= hmp_nbd_server_add
,
2224 @item nbd_server_add @
var{device
} [ @
var{name
} ]
2225 @findex nbd_server_add
2226 Export a block device through QEMU
's NBD server, which must be started
2227 beforehand with @command{nbd_server_start}. The @option{-w} option makes the
2228 exported device writable too. The export name is controlled by @var{name},
2229 defaulting to @var{device}.
2232 ``nbd_server_add`` *device* [ *name* ]
2233 Export a block device through QEMU's NBD server
, which must be started
2234 beforehand with ``nbd_server_start``
. The ``
-w`` option makes the
2235 exported device writable too
. The export name is controlled by
*name
*,
2236 defaulting to
*device
*.
2240 .name
= "nbd_server_remove",
2241 .args_type
= "force:-f,name:s",
2242 .params
= "nbd_server_remove [-f] name",
2243 .help
= "remove an export previously exposed via NBD",
2244 .cmd
= hmp_nbd_server_remove
,
2247 @item nbd_server_remove
[-f
] @
var{name
}
2248 @findex nbd_server_remove
2249 Stop exporting a block device through QEMU
's NBD server, which was
2250 previously started with @command{nbd_server_add}. The @option{-f}
2251 option forces the server to drop the export immediately even if
2252 clients are connected; otherwise the command fails unless there are no
2256 ``nbd_server_remove [-f]`` *name*
2257 Stop exporting a block device through QEMU's NBD server
, which was
2258 previously started with ``nbd_server_add``
. The ``
-f``
2259 option forces the server to drop the export immediately even
if
2260 clients are connected
; otherwise the command fails unless there are no
2265 .name
= "nbd_server_stop",
2267 .params
= "nbd_server_stop",
2268 .help
= "stop serving block devices using the NBD protocol",
2269 .cmd
= hmp_nbd_server_stop
,
2272 @item nbd_server_stop
2273 @findex nbd_server_stop
2274 Stop the QEMU embedded NBD server
.
2278 Stop the QEMU embedded NBD server
.
2282 #
if defined(TARGET_I386
)
2286 .args_type
= "broadcast:-b,cpu_index:i,bank:i,status:l,mcg_status:l,addr:l,misc:l",
2287 .params
= "[-b] cpu bank status mcgstatus addr misc",
2288 .help
= "inject a MCE on the given CPU [and broadcast to other CPUs with -b option]",
2294 @item mce @
var{cpu
} @
var{bank
} @
var{status
} @
var{mcgstatus
} @
var{addr
} @
var{misc
}
2296 Inject an MCE on the given
CPU (x86 only
).
2299 ``mce``
*cpu
* *bank
* *status
* *mcgstatus
* *addr
* *misc
*
2300 Inject an MCE on the given
CPU (x86 only
).
2305 .args_type
= "fdname:s",
2306 .params
= "getfd name",
2307 .help
= "receive a file descriptor via SCM rights and assign it a name",
2312 @item getfd @
var{fdname
}
2314 If a file descriptor is passed alongside
this command
using the SCM_RIGHTS
2315 mechanism on unix sockets
, it is stored
using the name @
var{fdname
} for
2316 later use by other monitor commands
.
2320 If a file descriptor is passed alongside
this command
using the SCM_RIGHTS
2321 mechanism on unix sockets
, it is stored
using the name
*fdname
* for
2322 later use by other monitor commands
.
2327 .args_type
= "fdname:s",
2328 .params
= "closefd name",
2329 .help
= "close a file descriptor previously passed via SCM rights",
2334 @item closefd @
var{fdname
}
2336 Close the file descriptor previously assigned to @
var{fdname
} using the
2337 @code
{getfd
} command
. This is only needed
if the file descriptor was
never
2338 used by another monitor command
.
2341 ``closefd``
*fdname
*
2342 Close the file descriptor previously assigned to
*fdname
* using the
2343 ``getfd`` command
. This is only needed
if the file descriptor was
never
2344 used by another monitor command
.
2348 .name
= "block_passwd",
2349 .args_type
= "device:B,password:s",
2350 .params
= "block_passwd device password",
2351 .help
= "set the password of encrypted block devices",
2352 .cmd
= hmp_block_passwd
,
2356 @item block_passwd @
var{device
} @
var{password
}
2357 @findex block_passwd
2358 Set the encrypted device @
var{device
} password to @
var{password
}
2360 This command is now obsolete and will always
return an error since
2.10
2363 ``block_passwd``
*device
* *password
*
2364 Set the encrypted device
*device
* password to
*password
*
2366 This command is now obsolete and will always
return an error since
2.10
2370 .name
= "block_set_io_throttle",
2371 .args_type
= "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
2372 .params
= "device bps bps_rd bps_wr iops iops_rd iops_wr",
2373 .help
= "change I/O throttle limits for a block drive",
2374 .cmd
= hmp_block_set_io_throttle
,
2378 @item block_set_io_throttle @
var{device
} @
var{bps
} @
var{bps_rd
} @
var{bps_wr
} @
var{iops
} @
var{iops_rd
} @
var{iops_wr
}
2379 @findex block_set_io_throttle
2380 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
}.
2381 @
var{device
} can be a block device name
, a qdev ID or a QOM path
.
2384 ``block_set_io_throttle``
*device
* *bps
* *bps_rd
* *bps_wr
* *iops
* *iops_rd
* *iops_wr
*
2385 Change I
/O throttle limits
for a block drive to
2386 *bps
* *bps_rd
* *bps_wr
* *iops
* *iops_rd
* *iops_wr
*.
2387 *device
* can be a block device name
, a qdev ID or a QOM path
.
2391 .name
= "set_password",
2392 .args_type
= "protocol:s,password:s,connected:s?",
2393 .params
= "protocol password action-if-connected",
2394 .help
= "set spice/vnc password",
2395 .cmd
= hmp_set_password
,
2399 @item set_password
[ vnc | spice
] password
[ action
-if-connected
]
2400 @findex set_password
2401 Change spice
/vnc password
. Use zero to make the password stay valid
2402 forever
. @
var{action
-if-connected
} specifies what should happen
in
2403 case a connection is established
: @
var{fail
} makes the password change
2404 fail
. @
var{disconnect
} changes the password and disconnects the
2405 client
. @
var{keep
} changes the password and keeps the connection up
.
2406 @
var{keep
} is the
default.
2409 ``set_password
[ vnc | spice
] password
[ action
-if-connected
]``
2410 Change spice
/vnc password
. Use zero to make the password stay valid
2411 forever
. *action
-if-connected
* specifies what should happen
in
2412 case a connection is established
: *fail
* makes the password change
2413 fail
. *disconnect
* changes the password and disconnects the
2414 client
. *keep
* changes the password and keeps the connection up
.
2415 *keep
* is the
default.
2419 .name
= "expire_password",
2420 .args_type
= "protocol:s,time:s",
2421 .params
= "protocol time",
2422 .help
= "set spice/vnc password expire-time",
2423 .cmd
= hmp_expire_password
,
2427 @item expire_password
[ vnc | spice
] expire
-time
2428 @findex expire_password
2429 Specify when a password
for spice
/vnc becomes
2430 invalid
. @
var{expire
-time
} accepts
:
2434 Invalidate password instantly
.
2437 Password stays valid forever
.
2440 Password stays valid
for @
var{nsec
} seconds starting now
.
2443 Password is invalidated at the given time
. @
var{nsec
} are the seconds
2444 passed since
1970, i
.e
. unix epoch
.
2449 ``expire_password
[ vnc | spice
]``
*expire
-time
*
2450 Specify when a password
for spice
/vnc becomes
2451 invalid
. *expire
-time
* accepts
:
2454 Invalidate password instantly
.
2456 Password stays valid forever
.
2458 Password stays valid
for *nsec
* seconds starting now
.
2460 Password is invalidated at the given time
. *nsec
* are the seconds
2461 passed since
1970, i
.e
. unix epoch
.
2466 .name
= "chardev-add",
2467 .args_type
= "args:s",
2469 .help
= "add chardev",
2470 .cmd
= hmp_chardev_add
,
2471 .command_completion
= chardev_add_completion
,
2475 @item chardev
-add args
2477 chardev
-add accepts the same parameters as the
-chardev command line
switch.
2481 ``chardev
-add``
*args
*
2482 chardev
-add accepts the same parameters as the
-chardev command line
switch.
2486 .name
= "chardev-change",
2487 .args_type
= "id:s,args:s",
2488 .params
= "id args",
2489 .help
= "change chardev",
2490 .cmd
= hmp_chardev_change
,
2494 @item chardev
-change args
2495 @findex chardev
-change
2496 chardev
-change accepts existing chardev @
var{id
} and then the same arguments
2497 as the
-chardev command line
switch (except
for "id").
2501 ``chardev
-change``
*args
*
2502 chardev
-change accepts existing chardev
*id
* and then the same arguments
2503 as the
-chardev command line
switch (except
for "id").
2507 .name
= "chardev-remove",
2508 .args_type
= "id:s",
2510 .help
= "remove chardev",
2511 .cmd
= hmp_chardev_remove
,
2512 .command_completion
= chardev_remove_completion
,
2516 @item chardev
-remove id
2517 @findex chardev
-remove
2518 Removes the chardev @
var{id
}.
2522 ``chardev
-remove``
*id
*
2523 Removes the chardev
*id
*.
2527 .name
= "chardev-send-break",
2528 .args_type
= "id:s",
2530 .help
= "send a break on chardev",
2531 .cmd
= hmp_chardev_send_break
,
2532 .command_completion
= chardev_remove_completion
,
2536 @item chardev
-send
-break id
2537 @findex chardev
-send
-break
2538 Send a
break on the chardev @
var{id
}.
2542 ``chardev
-send
-break``
*id
*
2543 Send a
break on the chardev
*id
*.
2548 .args_type
= "qdev:-d,device:B,command:s",
2549 .params
= "[-d] [device] \"[command]\"",
2550 .help
= "run a qemu-io command on a block device\n\t\t\t"
2551 "-d: [device] is a device ID rather than a "
2552 "drive ID or node name",
2557 @item qemu
-io @
var{device
} @
var{command
}
2559 Executes a qemu
-io command on the given block device
.
2563 ``qemu
-io``
*device
* *command
*
2564 Executes a qemu
-io command on the given block device
.
2569 .args_type
= "id:i",
2571 .help
= "add cpu (deprecated, use device_add instead)",
2576 @item cpu
-add @
var{id
}
2578 Add CPU with id @
var{id
}. This command is deprecated
, please
2579 +use @code
{device_add
} instead
. For details
, refer to
2580 'docs/cpu-hotplug.rst'.
2584 Add CPU with id
*id
*. This command is deprecated
, please
2585 +use ``device_add`` instead
. For details
, refer to
2586 'docs/cpu-hotplug.rst'.
2591 .args_type
= "path:s?",
2593 .help
= "list QOM properties",
2594 .cmd
= hmp_qom_list
,
2599 @item qom
-list
[@
var{path
}]
2600 Print QOM properties of object at location @
var{path
}
2603 ``qom
-list``
[*path
*]
2604 Print QOM properties of object at location
*path
*
2609 .args_type
= "path:s,property:s,value:s",
2610 .params
= "path property value",
2611 .help
= "set QOM property",
2617 @item qom
-set @
var{path
} @
var{property
} @
var{value
}
2618 Set QOM property @
var{property
} of object at location @
var{path
} to value @
var{value
}
2621 ``qom
-set``
*path
* *property
* *value
*
2622 Set QOM property
*property
* of object at location
*path
* to value
*value
*
2627 .args_type
= "item:s?",
2628 .params
= "[subcommand]",
2629 .help
= "show various information about the system state",
2630 .cmd
= hmp_info_help
,
2631 .sub_table
= hmp_info_cmds
,