.params = "",
.help = "quit the emulator",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_quit,
+ .mhandler.cmd_new = do_quit,
},
STEXI
.params = "[-f] device",
.help = "eject a removable medium (use -f to force it)",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_eject,
+ .mhandler.cmd_new = do_eject,
},
STEXI
.args_type = "filename:F",
.params = "filename",
.help = "save screen into PPM image 'filename'",
- .mhandler.cmd = do_screen_dump,
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_screen_dump,
},
STEXI
.params = "",
.help = "stop emulation",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_stop,
+ .mhandler.cmd_new = do_stop,
},
STEXI
.params = "",
.help = "resume emulation",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_cont,
+ .mhandler.cmd_new = do_cont,
},
STEXI
@table @var
@item count
-@findex count
is the number of items to be dumped.
@item format
-@findex format
can be x (hex), d (signed decimal), u (unsigned decimal), o (octal),
c (char) or i (asm instruction).
@item size
-@findex size
can be b (8 bits), h (16 bits), w (32 bits) or g (64 bits). On x86,
@code{h} or @code{w} can be specified with the @code{i} format to
respectively select 16 or 32 bit code instruction size.
.params = "",
.help = "reset the system",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_system_reset,
+ .mhandler.cmd_new = do_system_reset,
},
STEXI
.params = "",
.help = "send system power down event",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_system_powerdown,
+ .mhandler.cmd_new = do_system_powerdown,
},
STEXI
{
.name = "device_add",
- .args_type = "config:s",
- .params = "device",
+ .args_type = "device:O",
+ .params = "driver[,prop=value][,...]",
.help = "add device, like -device on the command line",
- .mhandler.cmd = do_device_add,
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_device_add,
},
STEXI
.args_type = "id:s",
.params = "device",
.help = "remove device",
- .mhandler.cmd = do_device_del,
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_device_del,
},
STEXI
.params = "index",
.help = "set the default CPU",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_cpu_set,
+ .mhandler.cmd_new = do_cpu_set,
},
STEXI
+@item cpu @var{index}
+@findex cpu
Set the default CPU.
ETEXI
"shared storage with incremental copy of disk "
"(base image shared between src and destination)",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_migrate,
+ .mhandler.cmd_new = do_migrate,
},
.params = "",
.help = "cancel the current VM migration",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_migrate_cancel,
+ .mhandler.cmd_new = do_migrate_cancel,
},
STEXI
{
.name = "migrate_set_speed",
- .args_type = "value:b",
+ .args_type = "value:f",
.params = "value",
.help = "set maximum speed (in bytes) for migrations",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_migrate_set_speed,
+ .mhandler.cmd_new = do_migrate_set_speed,
},
STEXI
.params = "value",
.help = "set maximum tolerated downtime (in seconds) for migrations",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_migrate_set_downtime,
+ .mhandler.cmd_new = do_migrate_set_downtime,
},
STEXI
.args_type = "pci_addr:s,type:s,opts:s?",
.params = "auto|[[<domain>:]<bus>:]<slot> nic|storage [[vlan=n][,macaddr=addr][,model=type]] [file=file][,if=type][,bus=nr]...",
.help = "hot-add PCI device",
- .user_print = pci_device_hot_add_print,
- .cmd_new_ret = pci_device_hot_add,
+ .mhandler.cmd = pci_device_hot_add,
},
#endif
.args_type = "pci_addr:s",
.params = "[[<domain>:]<bus>:]<slot>",
.help = "hot remove PCI device",
- .user_print = monitor_user_noop,
- .cmd_new_ret = do_pci_device_hot_remove,
+ .mhandler.cmd = do_pci_device_hot_remove,
},
#endif
@item host_net_remove
@findex host_net_remove
Remove host VLAN client.
+ETEXI
+
+ {
+ .name = "netdev_add",
+ .args_type = "netdev:O",
+ .params = "[user|tap|socket],id=str[,prop=value][,...]",
+ .help = "add host network device",
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_netdev_add,
+ },
+
+STEXI
+@item netdev_add
+@findex netdev_add
+Add host network device.
+ETEXI
+
+ {
+ .name = "netdev_del",
+ .args_type = "id:s",
+ .params = "id",
+ .help = "remove host network device",
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_netdev_del,
+ },
+
+STEXI
+@item netdev_del
+@findex netdev_del
+Remove host network device.
ETEXI
#ifdef CONFIG_SLIRP
.help = "redirect TCP or UDP connections from host to guest (requires -net user)",
.mhandler.cmd = net_slirp_hostfwd_add,
},
+#endif
+STEXI
+@item hostfwd_add
+@findex hostfwd_add
+Redirect TCP or UDP connections from host to guest (requires -net user).
+ETEXI
+#ifdef CONFIG_SLIRP
{
.name = "hostfwd_remove",
.args_type = "arg1:s,arg2:s?,arg3:s?",
#endif
STEXI
-@item host_net_redir
-@findex host_net_redir
-Redirect TCP or UDP connections from host to guest (requires -net user).
+@item hostfwd_remove
+@findex hostfwd_remove
+Remove host-to-guest TCP or UDP redirection.
ETEXI
{
{
.name = "set_link",
- .args_type = "name:s,up_or_down:s",
- .params = "name up|down",
+ .args_type = "name:s,up:b",
+ .params = "name on|off",
.help = "change the link status of a network adapter",
- .mhandler.cmd = do_set_link,
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_set_link,
},
STEXI
-@item set_link @var{name} [up|down]
+@item set_link @var{name} [on|off]
@findex set_link
-Set link @var{name} up or down.
+Switch link @var{name} on (i.e. up) or off (i.e. down).
ETEXI
{
},
STEXI
-@item acl_allow @var{aclname} @var{match} @code{allow|deny} [@var{index}]
-@findex acl_allow
+@item acl_add @var{aclname} @var{match} @code{allow|deny} [@var{index}]
+@findex acl_add
Add a match rule to the access control list, allowing or denying access.
The match will normally be an exact username or x509 distinguished name,
but can optionally include wildcard globs. eg @code{*@@EXAMPLE.COM} to
},
STEXI
-@item acl_remove @var{aclname}
+@item acl_reset @var{aclname}
+@findex acl_reset
Remove all matches from the access control list, and set the default
policy back to @code{deny}.
ETEXI
.params = "getfd name",
.help = "receive a file descriptor via SCM rights and assign it a name",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_getfd,
+ .mhandler.cmd_new = do_getfd,
},
STEXI
.params = "closefd name",
.help = "close a file descriptor previously passed via SCM rights",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_closefd,
+ .mhandler.cmd_new = do_closefd,
},
STEXI
.params = "block_passwd device password",
.help = "set the password of encrypted block devices",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_block_set_passwd,
+ .mhandler.cmd_new = do_block_set_passwd,
},
STEXI
.params = "",
.help = "enable QMP capabilities",
.user_print = monitor_user_noop,
- .cmd_new_ret = do_qmp_capabilities,
+ .mhandler.cmd_new = do_qmp_capabilities,
},
STEXI
@item qmp_capabilities
+@findex qmp_capabilities
Enable the specified QMP capabilities
ETEXI