Received: from eggs.gnu.org ([2001:4830:134:3::10]:39048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpan-0000Rz-D0 for qemu-devel@nongnu.org; Wed, 26 Mar 2014 11:18:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSpai-0001Gg-1W for qemu-devel@nongnu.org; Wed, 26 Mar 2014 11:18:13 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:51946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpah-0001GT-NH for qemu-devel@nongnu.org; Wed, 26 Mar 2014 11:18:07 -0400 Received: by mail-wi0-f175.google.com with SMTP id cc10so4787328wib.14 for ; Wed, 26 Mar 2014 08:18:06 -0700 (PDT) Date: Wed, 26 Mar 2014 16:18:02 +0100 From: Stefan Hajnoczi Message-ID: <20140326151802.GA26016@stefanha-thinkpad.muc.redhat.com> References: <1395396763-26081-1-git-send-email-cyliu@suse.com> <20140325180940.GB29429@dorilex> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140325180940.GB29429@dorilex> Subject: Re: [Qemu-devel] [PATCH v23 00/32] replace QEMUOptionParameter with QemuOpts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Leandro Dorileo Cc: Chunyan Liu , stefanha@redhat.com, qemu-devel@nongnu.org On Tue, Mar 25, 2014 at 06:09:40PM +0000, Leandro Dorileo wrote: > On Fri, Mar 21, 2014 at 06:12:11PM +0800, Chunyan Liu wrote: > > This patch series is to replace QEMUOptionParameter with QemuOpts, so that only > > one Qemu Option structure is kept in QEMU code. > > > > --- > > Changes to v21: > > * Move find_desc_by_name and qemu_opt_del functions ahead in separate > > patches before later calling, so to avoid static declaration. > > * Remove some changes that not quite necessary for this patch series: > > improve qemu_opt_set, improve assert() in qemu_opt_get, > > NULL check in qemu_opt_get and qemu_opt_find. > > * improve convert functions and qemu_opts_append() functions > > * improve block layer changes to support both struct > > * other fixes according to Eric and Stefan's comments. > > > > Not added: > > * QemuOpts test suite what Eric suggests, not included in this version, since: > > Currently, things that changes QemuOpts original syntax only include: > > qemu_opts_del: NULL input check. > > opt->name, opt->str: from const char * to char * > > Generally, no big change to its original usage. > > > > Things that are newly added to QemuOpts are: > > qemu_opt_append function > > qemu_opt_get_*_del functions > > I think we could add tests for these functions later based on > > Leandro Dorileo's test suite patches: > > https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg03282.html > > > > > > Chunyan Liu (32): > > move find_desc_by_name ahead for later calling > > add def_value_str to QemuOptDesc > > qapi: output def_value_str when query command line options > > change opt->name and opt->str from (const char *) to (char *) > > move qemu_opt_del ahead for later calling > > add qemu_opt_get_*_del functions for replace work > > add qemu_opts_print_help to replace print_option_help > > add convert functions between QEMUOptionParameter to QemuOpts > > add qemu_opts_append to repalce append_option_parameters > > check NULL input for qemu_opts_del > > qemu_opts_print: change fprintf stderr to printf > > qcow2.c: remove 'assigned' check in amend > > change block layer to support both QemuOpts and QEMUOptionParamter > > vvfat.c: handle cross_driver's create_options and create_opts > > cow.c: replace QEMUOptionParameter with QemuOpts > > gluster.c: replace QEMUOptionParameter with QemuOpts > > iscsi.c: replace QEMUOptionParameter with QemuOpts > > qcow.c: replace QEMUOptionParameter with QemuOpts > > qcow2.c: replace QEMUOptionParameter with QemuOpts > > qed.c: replace QEMUOptionParameter with QemuOpts > > raw-posix.c: replace QEMUOptionParameter with QemuOpts > > raw-win32.c: replace QEMUOptionParameter with QemuOpts > > raw_bsd.c: replace QEMUOptionParameter with QemuOpts > > rbd.c: replace QEMUOptionParameter with QemuOpts > > sheepdog.c: replace QEMUOptionParameter with QemuOpts > > ssh.c: replace QEMUOptionParameter with QemuOpts > > vdi.c: replace QEMUOptionParameter with QemuOpts > > vhdx.c: replace QEMUOptionParameter with QemuOpts > > vmdk.c: replace QEMUOptionParameter with QemuOpts > > vpc.c: replace QEMUOptionParameter with QemuOpts > > cleanup QEMUOptionParameter > > cleanup tmp 'mallocd' member from QemuOptsList > > > The series is still breaking the build and the io tests. > > I picked some patches in the series to see if it was > supposed to work, I could not build without fixing some > stuffs (like I commented on [31/32]). > > After fixing the build stuffs I could not successfuly run > the io tests. > > Testing with all your patches applied I could also not run > the io tests, they all failed. Thanks for pointing this out Leandro. Chunyan, git tip for running the build and tests for every commit in the series: git rebase -x 'make && make check && cd tests/qemu-iotests && ./check' -i master It is important that the series is bisectable and builds at every point. Stefan