From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Mammedov Subject: Re: [Qemu-devel] [uq/master PATCH 7/7 v8] target-i386: CPU model subclasses Date: Mon, 10 Feb 2014 10:48:19 +0100 Message-ID: <20140210104819.1666ea99@nial.usersys.redhat.com> References: <1391111339-6958-1-git-send-email-ehabkost@redhat.com> <1391111339-6958-8-git-send-email-ehabkost@redhat.com> <20140131181338.GB28427@otherpad.lan.raisama.net> <52F81C09.6070504@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Eduardo Habkost , qemu-devel@nongnu.org, kvm@vger.kernel.org, libvir-list@redhat.com, Paolo Bonzini , Jiri Denemark To: Andreas =?ISO-8859-1?B?RuRyYmVy?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:20124 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751240AbaBJJs1 convert rfc822-to-8bit (ORCPT ); Mon, 10 Feb 2014 04:48:27 -0500 In-Reply-To: <52F81C09.6070504@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 10 Feb 2014 01:23:37 +0100 Andreas F=E4rber wrote: > Am 31.01.2014 19:13, schrieb Eduardo Habkost: > > Register separate QOM classes for each x86 CPU model. > >=20 > > This will allow management code to more easily probe what each CPU = model > > provides, by simply creating objects using the appropriate class na= me, > > without having to restart QEMU. > >=20 > > This also allows us to eliminate the qdev_prop_set_globals_for_type= () > > hack to set CPU-model-specific global properties. > >=20 > > Instead of creating separate class_init functions for each class, I= just > > used class_data to store a pointer to the X86CPUDefinition struct f= or > > each CPU model. This should make the patch shorter and easier to re= view. > > Later we can gradually convert each X86CPUDefinition field to lists= of > > per-class property defaults. > >=20 > > Written based on the ideas from the patch "[RFC v5] target-i386: Sl= im > > conversion to X86CPU subclasses + KVM subclasses" written by Andrea= s > > F=E4rber , Igor Mammedov . > >=20 > > The "host" CPU model is special, as the feature flags depend on KVM > > being initialized. So it has its own class_init and instance_init > > function, and feature flags are set on instance_init instead of > > class_init. > >=20 > > Signed-off-by: Andreas F=E4rber > > Signed-off-by: Igor Mammedov > > Signed-off-by: Eduardo Habkost > > --- > > This patch is similar to the one sent by Andrea and then later > > resubmitted by Igor as "[RFC v5] target-i386: Slim conversion to X8= 6CPU > > subclasses + KVM subclasses", as it doesn't create one new class_in= it > > function for each subclass. > >=20 > > Main differences v5 -> v6 are: > > * Code was written from scratch (instead of using the previous pat= ches > > as base) > > * I didn't mean to rewrite it entirely, but when doing additiona= l > > simplification of the CPU init logic on other patches, I ended= up > > rewriting it. > > * I chose to keep the Signed-off-by lines because I built upon > > Andreas's and Igor's ideas. Is that OK? >=20 > Yes, your From and our Sobs in order is the expected way in this case= =2E > If Igor agrees I would propose to drop the textual repetition of this= =2E I'm ok with it, but it doesn't matter since this part is under ---, so it's dropped at commit time anyway.