Received: from eggs.gnu.org ([2001:4830:134:3::10]:45994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVm4J-0002OO-RR for qemu-devel@nongnu.org; Thu, 03 Apr 2014 14:08:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVm4C-0008PG-T9 for qemu-devel@nongnu.org; Thu, 03 Apr 2014 14:08:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVm4C-0008P6-AK for qemu-devel@nongnu.org; Thu, 03 Apr 2014 14:08:44 -0400 Message-ID: <1396548535.24348.57.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Thu, 03 Apr 2014 21:08:55 +0300 In-Reply-To: <533DA110.3000005@suse.de> References: <1396257993-4036-1-git-send-email-marcel.a@redhat.com> <1396257993-4036-5-git-send-email-marcel.a@redhat.com> <533D997A.6040604@suse.de> <1396547206.24348.55.camel@localhost.localdomain> <533DA110.3000005@suse.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V2 4/5] hw/ppc: remove QEMUMachine indirection List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?ISO-8859-1?Q?F=E4rber?= Cc: peter.maydell@linaro.org, famz@redhat.com, alex@alex.org.uk, stefano.stabellini@eu.citrix.com, mst@redhat.com, aliguori@amazon.com, qemu-devel@nongnu.org, armbru@redhat.com, agraf@suse.de, stefanha@redhat.com, pbonzini@redhat.com, lcapitulino@redhat.com, rth@twiddle.net On Thu, 2014-04-03 at 19:57 +0200, Andreas F=C3=A4rber wrote: > Am 03.04.2014 19:46, schrieb Marcel Apfelbaum: > > On Thu, 2014-04-03 at 19:25 +0200, Andreas F=C3=A4rber wrote: > >> Am 31.03.2014 11:26, schrieb Marcel Apfelbaum: > >>> No need for QEMUMachine anymore because > >>> its fields are passed to MachineClass. > >> > >> QEMUMachineInitArgs still has a QEMUMachine field that now becomes N= ULL? > > No...=20 > > It is properly initiated right before the machine init: (No changes m= ade) > >=20 > >=20 > > QEMUMachineInitArgs args =3D { .machine =3D machine,=20 > > .ram_size =3D ram_size,=20 > > .boot_order =3D boot_order,=20 > > .kernel_filename =3D kernel_filename,= =20 > > .kernel_cmdline =3D kernel_cmdline,=20 > > .initrd_filename =3D initrd_filename,= =20 > > .cpu_model =3D cpu_model };=20 > > =20 > > current_machine->init_args =3D args;=20 > > machine->init(¤t_machine->init_args); >=20 > You're dropping pseries QEMUMachine in this patch, > =3D> mc->qemu_machine =3D NULL > =3D> machine =3D NULL > =3D> .machine =3D NULL Right! My bad :( >=20 > Therefore my suggestion to start using MachineClass for .machine early > (because machine_class !=3D NULL) and to do the ->qemu_machine and mc-> > changes in one go (so that ->qemu_machine !=3D NULL as long as it exist= s). Going for it, Thanks, Marcel >=20 > Regards, > Andreas >=20