Received: from eggs.gnu.org ([208.118.235.92]:48273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvWCx-0007X9-4S for qemu-devel@nongnu.org; Wed, 16 Jan 2013 11:51:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvWCu-0005vj-NX for qemu-devel@nongnu.org; Wed, 16 Jan 2013 11:51:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvWCu-0005vX-8r for qemu-devel@nongnu.org; Wed, 16 Jan 2013 11:51:20 -0500 Date: Wed, 16 Jan 2013 14:04:24 -0200 From: Eduardo Habkost Message-ID: <20130116160424.GH20133@otherpad.lan.raisama.net> References: <1358314380-9400-1-git-send-email-afaerber@suse.de> <1358314380-9400-4-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1358314380-9400-4-git-send-email-afaerber@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC qom-cpu 03/15] target-i386: Update CPU to QOM realizefn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Igor Mammedov , qemu-devel@nongnu.org On Wed, Jan 16, 2013 at 06:32:48AM +0100, Andreas F=E4rber wrote: [...] > @@ -2247,6 +2247,9 @@ static void x86_cpu_common_class_init(ObjectClass= *oc, void *data) > { > X86CPUClass *xcc =3D X86_CPU_CLASS(oc); > CPUClass *cc =3D CPU_CLASS(oc); > + DeviceClass *dc =3D DEVICE_CLASS(oc); > + > + dc->realize =3D x86_cpu_realizefn; The DeviceClass documenation says: "Any type may override the @realize and/or @unrealize callbacks but needs to call (and thus save) the parent type's implementation if so desired." Why are you not following it? --=20 Eduardo