From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUzJ1-0001iS-7Q for qemu-devel@nongnu.org; Thu, 06 Dec 2018 14:27:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUzIx-0005Vk-2g for qemu-devel@nongnu.org; Thu, 06 Dec 2018 14:27:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48646) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUzIv-0005TN-1T for qemu-devel@nongnu.org; Thu, 06 Dec 2018 14:27:21 -0500 Date: Thu, 6 Dec 2018 12:27:11 -0700 From: Alex Williamson Message-ID: <20181206122711.7f64f374@x1.home> In-Reply-To: <20181206191240.GA31798@habkost.net> References: <154393964026.28192.13536237934563059985.stgit@gimli.home> <154394083644.28192.8501647946108201466.stgit@gimli.home> <20181206191240.GA31798@habkost.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [for-4.0 PATCH v3 8/9] q35/440fx/arm/spapr: Add QEMU 4.0 machine type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Peter Maydell , "Michael S. Tsirkin" , Paolo Bonzini , David Gibson , Richard Henderson On Thu, 6 Dec 2018 17:12:40 -0200 Eduardo Habkost wrote: > On Tue, Dec 04, 2018 at 09:27:16AM -0700, Alex Williamson wrote: > > Including all machine types that might have a pcie-root-port. > > > > Cc: Peter Maydell > > Cc: Michael S. Tsirkin > > Cc: Marcel Apfelbaum > > Cc: Paolo Bonzini > > Cc: Richard Henderson > > Cc: Eduardo Habkost > > Acked-by: David Gibson > > Signed-off-by: Alex Williamson > > --- > [...] > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > > index 7afd1a175bf2..80d8498867a6 100644 > > --- a/hw/ppc/spapr.c > > +++ b/hw/ppc/spapr.c > > @@ -3956,19 +3956,38 @@ static const TypeInfo spapr_machine_info = { > > } \ > > type_init(spapr_machine_register_##suffix) > > > > - /* > > +/* > > + * pseries-4.0 > > + */ > > +static void spapr_machine_4_0_instance_options(MachineState *machine) > > +{ > > +} > > + > > +static void spapr_machine_4_0_class_options(MachineClass *mc) > > +{ > > + /* Defaults for the latest behaviour inherited from the base class */ > > +} > > + > > +DEFINE_SPAPR_MACHINE(4_0, "4.0", true); > > + > > +/* > > * pseries-3.1 > > */ > > +#define SPAPR_COMPAT_3_1 \ > > + HW_COMPAT_3_1 > > + > > static void spapr_machine_3_1_instance_options(MachineState *machine) > > { > > + spapr_machine_4_0_instance_options(machine); > > } > > > > static void spapr_machine_3_1_class_options(MachineClass *mc) > > { > > - /* Defaults for the latest behaviour inherited from the base class */ > > + spapr_machine_3_1_class_options(mc); > > Infinite recursion. This is supposed to be calling > spapr_machine_4_0_class_options(). I will fix manually on > machine-next. Gack! Thanks! Alex