diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-20 23:21:09 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-01-06 13:45:47 -0500 |
commit | ab2d0531b2e41bc5fd8f8e59405f135986599476 (patch) | |
tree | f40c89a272948494054e57f8096253a5f50a0bd4 /hmp-commands.hx | |
parent | b0ed5e9feaf0e2881330a48c692f62e1ac6d9052 (diff) |
monitor: add object-del (QMP) and object_del (HMP) command
These two commands invoke the "unparent" method of Object.
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 929550d66b..4d5e2b5142 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1243,6 +1243,20 @@ STEXI Remove host network device. ETEXI + { + .name = "object_del", + .args_type = "id:s", + .params = "id", + .help = "destroy QOM object", + .mhandler.cmd = hmp_object_del, + }, + +STEXI +@item object_del +@findex object_del +Destroy QOM object. +ETEXI + #ifdef CONFIG_SLIRP { .name = "hostfwd_add", |