Re: [Qemu-devel] [PATCH v27 07/33] QemuOpts: add qemu_opt_get_*_del functions for replace work

2014-06-04 Thread Chun Yan Liu
>>> On 6/4/2014 at 04:54 PM, in message <20140604085436.ga26...@stefanha-thinkpad.redhat.com>, Stefan Hajnoczi wrote: > On Wed, May 07, 2014 at 05:58:32PM +0800, Chunyan Liu wrote: > > diff --git a/util/qemu-option.c b/util/qemu-option.c > > index 4d2d4d1..32e1d50 100644 > > --- a/util/qemu-

Re: [Qemu-devel] [PATCH v27 07/33] QemuOpts: add qemu_opt_get_*_del functions for replace work

2014-06-04 Thread Stefan Hajnoczi
On Wed, May 07, 2014 at 05:58:32PM +0800, Chunyan Liu wrote: > diff --git a/util/qemu-option.c b/util/qemu-option.c > index 4d2d4d1..32e1d50 100644 > --- a/util/qemu-option.c > +++ b/util/qemu-option.c > @@ -575,6 +575,19 @@ static void qemu_opt_del(QemuOpt *opt) > g_free(opt); > } > > +/*

[Qemu-devel] [PATCH v27 07/33] QemuOpts: add qemu_opt_get_*_del functions for replace work

2014-05-07 Thread Chunyan Liu
Add qemu_opt_get_del, qemu_opt_get_bool_del, qemu_opt_get_number_del and qemu_opt_get_size_del to replace the same handling of QEMUOptionParameter (get and delete). Several drivers are coded to parse a known subset of options, then remove them from the list before handing all remaining options to

[Qemu-devel] [PATCH v27 07/33] QemuOpts: add qemu_opt_get_*_del functions for replace work

2014-05-07 Thread Chunyan Liu
Add qemu_opt_get_del, qemu_opt_get_bool_del, qemu_opt_get_number_del and qemu_opt_get_size_del to replace the same handling of QEMUOptionParameter (get and delete). Several drivers are coded to parse a known subset of options, then remove them from the list before handing all remaining options to