diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-20 23:21:10 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-01-06 13:45:47 -0500 |
commit | cff8b2c6fcdc9492d1141da11f55615843fa0a5e (patch) | |
tree | 481b40c3e12f48ca4879137986c4b83f5441ee10 /hmp-commands.hx | |
parent | ab2d0531b2e41bc5fd8f8e59405f135986599476 (diff) | |
download | qemu-cff8b2c6fcdc9492d1141da11f55615843fa0a5e.zip qemu-cff8b2c6fcdc9492d1141da11f55615843fa0a5e.tar.gz qemu-cff8b2c6fcdc9492d1141da11f55615843fa0a5e.tar.bz2 |
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>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r-- | hmp-commands.hx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx index 4d5e2b5..feca084 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1244,6 +1244,20 @@ 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 + + { .name = "object_del", .args_type = "id:s", .params = "id", |