Received: from eggs.gnu.org ([2001:4830:134:3::10]:60075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wlwou-0001E5-0r for qemu-devel@nongnu.org; Sun, 18 May 2014 04:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wlwon-00087S-Ql for qemu-devel@nongnu.org; Sun, 18 May 2014 04:51:47 -0400 Message-ID: <1400403080.12073.8.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Sun, 18 May 2014 11:51:20 +0300 In-Reply-To: <537659F6.3090705@suse.de> References: <1399473780-20374-1-git-send-email-marcel.a@redhat.com> <1399473780-20374-2-git-send-email-marcel.a@redhat.com> <20140516163959.7583df51@thinkpad> <537659F6.3090705@suse.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?ISO-8859-1?Q?F=E4rber?= Cc: mst@redhat.com, aik@ozlabs.ru, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, blauwirbel@gmail.com, jcmvbkbc@gmail.com, pbonzini@redhat.com, edgar.iglesias@gmail.com, gxt@mprc.pku.edu.cn, Rob Herring , proljc@gmail.com, agraf@suse.de, scottwood@freescale.com, borntraeger@de.ibm.com, hpoussin@reactos.org, aliguori@amazon.com, lersek@redhat.com, chouteau@adacore.com, jan.kiszka@web.de, stefanha@redhat.com, Igor Mammedov , cornelia.huck@de.ibm.com, lcapitulino@redhat.com, peter.crosthwaite@xilinx.com, armbru@redhat.com, michael@walle.cc, qemu-ppc@nongnu.org, peter.chubb@nicta.com.au, aurelien@aurel32.net On Fri, 2014-05-16 at 20:33 +0200, Andreas F=C3=A4rber wrote: > Am 16.05.2014 16:39, schrieb Igor Mammedov: > > On Wed, 7 May 2014 17:42:57 +0300 > > Marcel Apfelbaum wrote: > >=20 > >> Total removal of QEMUMachineInitArgs struct. QEMUMachineInitArgs's f= ields > >> are copied into MachineState. Removed duplicated fields from Machine= State. > >> > >> All the other changes are only mechanical refactoring, no semantic c= hanges. > >> > >> Signed-off-by: Marcel Apfelbaum > >> --- > >> - I am perfectly aware that patches touching a lot of files > >> are not desirable, but this one is a very simple replacement > >> patch: > >> QEMUMachineInitArgs -> MachineState > >> args -> ms > >> - This is the simplest way to get rid of QEMUMachineInitArgs fast. > >> > > Patch doesn't apply cleanly on current master >=20 > patch -p1 applied all hunks ... >=20 > >=20 > > [...] > >=20 > >> =20 > >> #define PC_Q35_MACHINE_OPTIONS \ > >> diff --git a/hw/i386/xen_machine_pv.c b/hw/i386/xen_machine_pv.c > >> index 9adb57f..fb7a817 100644 > >> --- a/hw/i386/xen_machine_pv.c > >> +++ b/hw/i386/xen_machine_pv.c > >> @@ -28,11 +28,11 @@ > > ^^^ file was moved >=20 > ... and prompted for the hw/xenpv/xen_machine_pv.c path. >=20 > > I've reviewed all targets, it looks good. > > +1 to afaerber's comment s/ms/machine/=20 >=20 > 4 "args->" were missed in exynos4_boards.c debug output. >=20 > for f in hw/*/*.c; do > sed -i 's/*ms\\)/*machine\\)/g' $f > sed -i 's/*ms,/*machine,/g' $f > sed -i 's/ ms->/ machine->/g' $f > sed -i 's/(ms->/(machine->/g' $f > sed -i 's/!ms->/!machine->/g' $f > sed -i 's/(ms)/(machine)/g' $f > sed -i 's/(ms,/(machine,/g' $f > sed -i 's/ ms,/ machine,/g' $f > sed -i 's/, ms)/, machine)/g' $f > done > git checkout -- hw/ppc/ppc4xx_pci.c # false "(ms," positive >=20 > highbank.c had a conflicting "machine" argument -> machine_id. >=20 > e500.c needed tweaking due to passing ms in a struct. And it was > shallow-copying *ms, which must not be done for QOM. Passing the pointe= r > instead. Thanks for the help, Andreas! Marcel >=20 > Andreas >=20