Received: from eggs.gnu.org ([2001:4830:134:3::10]:51241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzav9-0003eM-2K for qemu-devel@nongnu.org; Tue, 24 Jun 2014 20:18:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzav2-0000mJ-Sa for qemu-devel@nongnu.org; Tue, 24 Jun 2014 20:18:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzav2-0000mA-Kw for qemu-devel@nongnu.org; Tue, 24 Jun 2014 20:18:32 -0400 Date: Tue, 24 Jun 2014 21:18:22 -0300 From: Eduardo Habkost Message-ID: <20140625001822.GX3222@otherpad.lan.raisama.net> References: <1403108034-32054-1-git-send-email-mst@redhat.com> <1403108034-32054-27-git-send-email-mst@redhat.com> <20140624164431.GA14901@otherpad.lan.raisama.net> <20140624175520.GU3222@otherpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] per-machine vs per-qemu-version compat_props macros (was Re: acpi:ich9: add memory hotplug handling) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "Michael S. Tsirkin" , Alexey Kardashevskiy , Marcel Apfelbaum , Markus Armbruster , QEMU Developers , Paul Mackerras , Anthony Liguori , Paolo Bonzini , Igor Mammedov , Andreas =?iso-8859-1?Q?F=E4rber?= , Alexander Graf On Tue, Jun 24, 2014 at 11:30:04PM +0100, Peter Maydell wrote: > On 24 June 2014 18:55, Eduardo Habkost wrote: > > On Tue, Jun 24, 2014 at 05:47:53PM +0100, Peter Maydell wrote: > >> What if different machines in a particular release had the > >> property set to different defaults? > > > > I never saw that happen, and I don't think it is even likely: default > > values set in instance_init, and compat_props are applied just after > > instance_init, before object_new() returns. So a machine-type would need > > to find a way to change fields after instance_init but before > > compat_props are applied. > > OK, yes, that's not going to happen. I had thought they were > applied at the same point as -global settings. They are. -global settings are also set just after instance_init, and before object_new() returns. Internally, compat_props are translated to global properties. -- Eduardo