All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
	qemu-devel@nongnu.org, kvm@vger.kernel.org,
	libvir-list@redhat.com, Paolo Bonzini <pbonzini@redhat.com>,
	Jiri Denemark <jdenemar@redhat.com>
Subject: Re: [Qemu-devel] [uq/master PATCH 7/7 v8] target-i386: CPU model subclasses
Date: Mon, 10 Feb 2014 10:48:19 +0100	[thread overview]
Message-ID: <20140210104819.1666ea99@nial.usersys.redhat.com> (raw)
In-Reply-To: <52F81C09.6070504@suse.de>

On Mon, 10 Feb 2014 01:23:37 +0100
Andreas Färber <afaerber@suse.de> wrote:

> Am 31.01.2014 19:13, schrieb Eduardo Habkost:
> > Register separate QOM classes for each x86 CPU model.
> > 
> > This will allow management code to more easily probe what each CPU model
> > provides, by simply creating objects using the appropriate class name,
> > without having to restart QEMU.
> > 
> > This also allows us to eliminate the qdev_prop_set_globals_for_type()
> > hack to set CPU-model-specific global properties.
> > 
> > Instead of creating separate class_init functions for each class, I just
> > used class_data to store a pointer to the X86CPUDefinition struct for
> > each CPU model. This should make the patch shorter and easier to review.
> > Later we can gradually convert each X86CPUDefinition field to lists of
> > per-class property defaults.
> > 
> > Written based on the ideas from the patch "[RFC v5] target-i386: Slim
> > conversion to X86CPU subclasses + KVM subclasses" written by Andreas
> > Färber <afaerber@suse.de>, Igor Mammedov <imammedo@redhat.com>.
> > 
> > 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.
> > 
> > Signed-off-by: Andreas Färber <afaerber@suse.de>
> > Signed-off-by: Igor Mammedov <imammedo@redhat.com>
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> > ---
> > This patch is similar to the one sent by Andrea and then later
> > resubmitted by Igor as "[RFC v5] target-i386: Slim conversion to X86CPU
> > subclasses + KVM subclasses", as it doesn't create one new class_init
> > function for each subclass.
> > 
> > Main differences v5 -> v6 are:
> >  * Code was written from scratch (instead of using the previous patches
> >    as base)
> >    * I didn't mean to rewrite it entirely, but when doing additional
> >      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?
> 
> Yes, your From and our Sobs in order is the expected way in this case.
> If Igor agrees I would propose to drop the textual repetition of this.
I'm ok with it, but it doesn't matter since  this part is under ---, so
it's dropped at commit time anyway.

WARNING: multiple messages have this Message-ID (diff)
From: Igor Mammedov <imammedo@redhat.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
	kvm@vger.kernel.org, libvir-list@redhat.com,
	qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	Jiri Denemark <jdenemar@redhat.com>
Subject: Re: [Qemu-devel] [uq/master PATCH 7/7 v8] target-i386: CPU model subclasses
Date: Mon, 10 Feb 2014 10:48:19 +0100	[thread overview]
Message-ID: <20140210104819.1666ea99@nial.usersys.redhat.com> (raw)
In-Reply-To: <52F81C09.6070504@suse.de>

On Mon, 10 Feb 2014 01:23:37 +0100
Andreas Färber <afaerber@suse.de> wrote:

> Am 31.01.2014 19:13, schrieb Eduardo Habkost:
> > Register separate QOM classes for each x86 CPU model.
> > 
> > This will allow management code to more easily probe what each CPU model
> > provides, by simply creating objects using the appropriate class name,
> > without having to restart QEMU.
> > 
> > This also allows us to eliminate the qdev_prop_set_globals_for_type()
> > hack to set CPU-model-specific global properties.
> > 
> > Instead of creating separate class_init functions for each class, I just
> > used class_data to store a pointer to the X86CPUDefinition struct for
> > each CPU model. This should make the patch shorter and easier to review.
> > Later we can gradually convert each X86CPUDefinition field to lists of
> > per-class property defaults.
> > 
> > Written based on the ideas from the patch "[RFC v5] target-i386: Slim
> > conversion to X86CPU subclasses + KVM subclasses" written by Andreas
> > Färber <afaerber@suse.de>, Igor Mammedov <imammedo@redhat.com>.
> > 
> > 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.
> > 
> > Signed-off-by: Andreas Färber <afaerber@suse.de>
> > Signed-off-by: Igor Mammedov <imammedo@redhat.com>
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> > ---
> > This patch is similar to the one sent by Andrea and then later
> > resubmitted by Igor as "[RFC v5] target-i386: Slim conversion to X86CPU
> > subclasses + KVM subclasses", as it doesn't create one new class_init
> > function for each subclass.
> > 
> > Main differences v5 -> v6 are:
> >  * Code was written from scratch (instead of using the previous patches
> >    as base)
> >    * I didn't mean to rewrite it entirely, but when doing additional
> >      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?
> 
> Yes, your From and our Sobs in order is the expected way in this case.
> If Igor agrees I would propose to drop the textual repetition of this.
I'm ok with it, but it doesn't matter since  this part is under ---, so
it's dropped at commit time anyway.

  parent reply	other threads:[~2014-02-10  9:48 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-30 19:48 [uq/master PATCH 0/7] x86 CPU subclasses, take 7 Eduardo Habkost
2014-01-30 19:48 ` [Qemu-devel] " Eduardo Habkost
2014-01-30 19:48 ` [uq/master PATCH 1/7] target-i386: Eliminate CONFIG_KVM #ifdefs Eduardo Habkost
2014-01-30 19:48   ` [Qemu-devel] " Eduardo Habkost
2014-01-31 11:42   ` Paolo Bonzini
2014-01-31 11:42     ` [Qemu-devel] " Paolo Bonzini
2014-01-30 19:48 ` [uq/master PATCH 2/7] target-i386: Don't change x86_def_t struct on cpu_x86_register() Eduardo Habkost
2014-01-30 19:48   ` [Qemu-devel] " Eduardo Habkost
2014-01-31 11:42   ` Paolo Bonzini
2014-01-31 11:42     ` [Qemu-devel] " Paolo Bonzini
2014-01-30 19:48 ` [uq/master PATCH 3/7] target-i386: Move KVM default-vendor hack to instance_init Eduardo Habkost
2014-01-30 19:48   ` [Qemu-devel] " Eduardo Habkost
2014-01-31 11:42   ` Paolo Bonzini
2014-01-31 11:42     ` [Qemu-devel] " Paolo Bonzini
2014-01-30 19:48 ` [uq/master PATCH 4/7] target-i386: Rename cpu_x86_register() to x86_cpu_load_def() Eduardo Habkost
2014-01-30 19:48   ` [Qemu-devel] " Eduardo Habkost
2014-01-31 11:42   ` Paolo Bonzini
2014-01-31 11:42     ` [Qemu-devel] " Paolo Bonzini
2014-02-10  0:03     ` Andreas Färber
2014-01-30 19:48 ` [uq/master PATCH 5/7] target-i386: Call x86_cpu_load_def() earlier Eduardo Habkost
2014-01-30 19:48   ` [Qemu-devel] " Eduardo Habkost
2014-02-10  0:13   ` Andreas Färber
2014-02-10  0:13     ` [Qemu-devel] " Andreas Färber
2014-01-30 19:48 ` [uq/master PATCH 6/7] target-i386: Rename x86_def_t to X86CPUDefinition Eduardo Habkost
2014-01-30 19:48   ` [Qemu-devel] " Eduardo Habkost
2014-01-31 11:42   ` Paolo Bonzini
2014-01-31 11:42     ` [Qemu-devel] " Paolo Bonzini
2014-02-10  0:14     ` Andreas Färber
2014-01-30 19:48 ` [uq/master PATCH 7/7] target-i386: CPU model subclasses Eduardo Habkost
2014-01-30 19:48   ` [Qemu-devel] " Eduardo Habkost
2014-01-31 17:20   ` Eduardo Habkost
2014-01-31 17:20     ` Eduardo Habkost
2014-01-31 18:13   ` [uq/master PATCH 7/7 v8] " Eduardo Habkost
2014-01-31 18:13     ` [Qemu-devel] " Eduardo Habkost
2014-02-10  0:23     ` Andreas Färber
2014-02-10  0:23       ` Andreas Färber
2014-02-10  8:19       ` Eduardo Habkost
2014-02-10  8:19         ` Eduardo Habkost
2014-02-10  8:26         ` Eduardo Habkost
2014-02-10  8:26           ` Eduardo Habkost
2014-02-10 10:21           ` [qom-cpu PATCH 7/7 v9] " Eduardo Habkost
2014-02-10 10:21             ` [Qemu-devel] " Eduardo Habkost
2014-02-10 22:39             ` Andreas Färber
2014-02-10 22:39               ` [Qemu-devel] " Andreas Färber
2014-02-11  8:05               ` Eduardo Habkost
2014-02-11  8:05                 ` [Qemu-devel] " Eduardo Habkost
2014-02-11  8:07               ` Paolo Bonzini
2014-02-11  8:07                 ` [Qemu-devel] " Paolo Bonzini
2014-02-10  9:48       ` Igor Mammedov [this message]
2014-02-10  9:48         ` [Qemu-devel] [uq/master PATCH 7/7 v8] " Igor Mammedov
2014-01-30 21:47 ` [uq/master PATCH 0/7] x86 CPU subclasses, take 7 Paolo Bonzini
2014-01-30 21:47   ` [Qemu-devel] " Paolo Bonzini
2014-01-31 11:30   ` Andreas Färber
2014-01-31 11:30     ` [Qemu-devel] " Andreas Färber
2014-01-31 11:42     ` Paolo Bonzini
2014-01-31 11:42       ` [Qemu-devel] " Paolo Bonzini
2014-01-31 12:17       ` Eduardo Habkost
2014-01-31 12:17         ` [Qemu-devel] " Eduardo Habkost
2014-01-31 12:14     ` Eduardo Habkost
2014-01-31 12:14       ` [Qemu-devel] " Eduardo Habkost
2014-01-31 14:36     ` Igor Mammedov
2014-01-31 14:36       ` [Qemu-devel] " Igor Mammedov
2014-01-31 14:48 ` Igor Mammedov
2014-01-31 14:48   ` Igor Mammedov
2014-01-31 14:50   ` Paolo Bonzini
2014-01-31 14:50     ` Paolo Bonzini
2014-01-31 15:17     ` Eduardo Habkost
2014-01-31 15:17       ` Eduardo Habkost
2014-01-31 16:06       ` Igor Mammedov
2014-01-31 16:06         ` Igor Mammedov
2014-01-31 16:42         ` Eduardo Habkost
2014-01-31 16:42           ` Eduardo Habkost
2014-01-31 16:52           ` Paolo Bonzini
2014-01-31 16:52             ` Paolo Bonzini
2014-01-31 18:51             ` Eduardo Habkost
2014-01-31 18:51               ` Eduardo Habkost
2014-01-31 18:56               ` [libvirt] " Eric Blake
2014-01-31 18:56                 ` [Qemu-devel] [libvirt] " Eric Blake
2014-01-31 19:08                 ` [libvirt] [Qemu-devel] " Eduardo Habkost
2014-01-31 19:08                   ` [Qemu-devel] [libvirt] " Eduardo Habkost
2014-01-31 19:18                 ` Igor Mammedov
2014-01-31 19:18                   ` Igor Mammedov
2014-01-31 19:25                   ` Eduardo Habkost
2014-01-31 19:25                     ` Eduardo Habkost
2014-01-31 15:10   ` [Qemu-devel] " Eduardo Habkost
2014-01-31 15:10     ` Eduardo Habkost
2014-01-31 15:11     ` Paolo Bonzini
2014-01-31 15:11       ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140210104819.1666ea99@nial.usersys.redhat.com \
    --to=imammedo@redhat.com \
    --cc=afaerber@suse.de \
    --cc=ehabkost@redhat.com \
    --cc=jdenemar@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=libvir-list@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.