qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: quintela@redhat.com
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Anthony Liguori" <aliguori@us.ibm.com>,
	"Eduardo Habkost" <ehabkost@redhat.com>,
	"KVM devel mailing list" <kvm@vger.kernel.org>,
	"qemu-devel qemu-devel" <qemu-devel@nongnu.org>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] KVM call agenda for 2013-06-25
Date: Tue, 25 Jun 2013 15:50:17 +0200	[thread overview]
Message-ID: <20130625155017.00e93924@nial.usersys.redhat.com> (raw)
In-Reply-To: <87hah41w6i.fsf@elfo.elfo>

On Tue, 11 Jun 2013 17:52:53 +0200
Juan Quintela <quintela@redhat.com> wrote:

> 
> Hi
> 
> Now we have moved to one call each other week.
> Please, send any topic that you are interested in covering.
> 
> Thanks, Juan.
> 
> PD.  If you want to attend and you don't have the call details,
>       contact me.
> 

Using static vs. dynamic properties vs. globals in particular case 
for CPU feature properties. Anthony suggested on IRC to use static
properties for it but recently it was questioned why not used dynamic
properties for it (afaerber):

1. static properties:

* using default values in static properties to define CPU models at
  class_init() time

* static properties could eventually evolve onto class properties,
  probably without much effort required.

* allows to simplify x86_cpu_initfn() and replace several custom
  property setters with a generic static property setters as result
  reducing code base and duplication.

2. introduce post_initfn() hook and move setting defaults of
  static properties and globals into it. So that property setters
  won't have to operate on partially initialized object instance.
  It also would allow to use dynamic properties in globals and
  compat_props.

3. using globals for simplifying cpu_model parsing and possibly getting
   rid of it in favor of -device FOO_CPU and eventually replacing
   cpu_init(cpu_model) with all its complexity by simple generic
   device_add() sequence.
   
   as one of the steps to it, cpu_model "-cpu FOO_CPU,feat1=x,feat2=y"
   which is the template for N CPUs created in machine_init() and which
   is parsed by target specific parser in cpu_*_init(), could be internally
   transformed into a set of global properties, like:
      FOO_CPU.feat1=x FOO_CPU.feat2=y
   then target specific parsers could be modified to CPU_CLASS hook that would
   keep compatibility code and make this remapping instead of parsing cpu_model
   string for each CPU and operating directly on CPU object instance.
   That would allow to treat CPUs as usual devices during hot-plug and use
   device-add. And open possibility to create individual CPUs on QEMU CLI
   using -device (which is important for migration and arbitrary CPU hot-add/remove)
   and heterogeneous CPUs machines. 

  parent reply	other threads:[~2013-06-25 13:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-11 15:52 [Qemu-devel] KVM call agenda for 2013-06-25 Juan Quintela
2013-06-11 17:05 ` Michael R. Hines
2013-06-11 18:13 ` Alexander Graf
2013-06-25 13:50 ` Igor Mammedov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-20 12:47 Michael S. Tsirkin
2013-06-22  1:01 ` Alexander Graf
2013-06-24 16:40   ` Antonios Motakis
2013-06-25 13:57   ` Alexander Graf

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=20130625155017.00e93924@nial.usersys.redhat.com \
    --to=imammedo@redhat.com \
    --cc=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=ehabkost@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).