Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function for 'qom-set'

2014-08-28 Thread Gonglei (Arei)
> From: Eric Blake [mailto:ebl...@redhat.com] > Subject: Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function > for 'qom-set' > > On 08/27/2014 11:19 PM, arei.gong...@huawei.com wrote: > > From: Gonglei > > > > In the subject: s/genneric

Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function for 'qom-set'

2014-08-28 Thread Gonglei (Arei)
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > Subject: Re: [PATCH] qmp: using genneric string paring function for 'qom-set' > > Il 28/08/2014 07:19, arei.gong...@huawei.com ha scritto: > > From: Gonglei > > > > At present, 'qom-set' only can set string type property, > > which will restric

Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function for 'qom-set'

2014-08-28 Thread Eric Blake
On 08/27/2014 11:19 PM, arei.gong...@huawei.com wrote: > From: Gonglei > In the subject: s/genneric/generic/, s/paring/parsing/ > At present, 'qom-set' only can set string type property, qom-set is typed as taking arbitrary JSON 9one of the few commands with 'gen':'no', which means it is compl

Re: [Qemu-devel] [PATCH] qmp: using genneric string paring function for 'qom-set'

2014-08-28 Thread Paolo Bonzini
Il 28/08/2014 07:19, arei.gong...@huawei.com ha scritto: > From: Gonglei > > At present, 'qom-set' only can set string type property, > which will restrict this qmp command's function. > Using genneric string paring function can handle different > types, such as int/bool/string etc. Actually, th

[Qemu-devel] [PATCH] qmp: using genneric string paring function for 'qom-set'

2014-08-27 Thread arei.gonglei
From: Gonglei At present, 'qom-set' only can set string type property, which will restrict this qmp command's function. Using genneric string paring function can handle different types, such as int/bool/string etc. Signed-off-by: Gonglei --- Example: # ./scripts/qmp/qom-set nic1.realized false