Re: [Qemu-devel] [PATCH 2.1 09/28] vl: redo -object parsing

2014-03-06 Thread Paolo Bonzini
Il 07/03/2014 03:56, Hu Tao ha scritto: -obj = object_new(type); -if (qemu_opt_foreach(opts, object_set_property, obj, 1) < 0) { -object_unref(obj); -return -1; +qdict_del(pdict, "qom-type"); +visit_type_str(opts_get_visitor(ov), &type, "qom-type", &err); +if (

Re: [Qemu-devel] [PATCH 2.1 09/28] vl: redo -object parsing

2014-03-06 Thread Hu Tao
On Tue, Mar 04, 2014 at 03:00:37PM +0100, Paolo Bonzini wrote: > Follow the lines of the HMP implementation, using OptsVisitor > to parse the options. This gives access to OptsVisitor's > rich parsing of integer lists. > > Signed-off-by: Paolo Bonzini > --- > vl.c | 87 > ++

[Qemu-devel] [PATCH 2.1 09/28] vl: redo -object parsing

2014-03-04 Thread Paolo Bonzini
Follow the lines of the HMP implementation, using OptsVisitor to parse the options. This gives access to OptsVisitor's rich parsing of integer lists. Signed-off-by: Paolo Bonzini --- vl.c | 87 +++- 1 file changed, 35 insertions(+)