mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
monitor: add object-add (QMP) and object_add (HMP) command
Add two commands that are the monitor counterparts of -object. The commands have the same Visitor-based implementation, but use different kinds of visitors so that the HMP command has a DWIM string-based syntax, while the QMP variant accepts a stricter JSON-based properties dictionary. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
ab2d0531b2
commit
cff8b2c6fc
9 changed files with 187 additions and 2 deletions
|
@ -1241,6 +1241,20 @@ STEXI
|
|||
@item netdev_del
|
||||
@findex netdev_del
|
||||
Remove host network device.
|
||||
ETEXI
|
||||
|
||||
{
|
||||
.name = "object_add",
|
||||
.args_type = "object:O",
|
||||
.params = "[qom-type=]type,id=str[,prop=value][,...]",
|
||||
.help = "create QOM object",
|
||||
.mhandler.cmd = hmp_object_add,
|
||||
},
|
||||
|
||||
STEXI
|
||||
@item object_add
|
||||
@findex object_add
|
||||
Create QOM object.
|
||||
ETEXI
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue