[Qemu-block] [PATCH v6 4/4] hmp: add monitor command to add/remove a child

2015-10-16 Thread Wen Congyang
The new command is blockdev_change. It does the same thing as the QMP command x-blockdev-change. Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Luiz Capitulino --- hmp-commands.hx | 17 + hmp.c | 38 +++

Re: [Qemu-block] [PATCH v6 4/4] hmp: add monitor command to add/remove a child

2015-11-09 Thread Alberto Garcia
On Fri 16 Oct 2015 10:57:46 AM CEST, Wen Congyang wrote: > +.name = "blockdev_change", > +.args_type = "op:s,parent:B,child:B?,node:?", > +.params = "operation parent [child] [node]", [...] > +/* > + * FIXME: we must specify the parameter child, otherwi

Re: [Qemu-block] [PATCH v6 4/4] hmp: add monitor command to add/remove a child

2015-11-10 Thread Wen Congyang
On 11/09/2015 10:54 PM, Alberto Garcia wrote: > On Fri 16 Oct 2015 10:57:46 AM CEST, Wen Congyang wrote: > >> +.name = "blockdev_change", >> +.args_type = "op:s,parent:B,child:B?,node:?", >> +.params = "operation parent [child] [node]", > [...] >> +/* >> +