All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Jesse Larrew" <jlarrew@linux.vnet.ibm.com>,
	qemu-devel@nongnu.org, "Anthony Liguori" <anthony@codemonkey.ws>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Igor Mammedov" <imammedo@redhat.com>,
	"KONRAD Frédéric" <fred.konrad@greensocs.com>
Subject: Re: [Qemu-devel] [PATCH qom-cpu 00/15 v8] target-i386: convert CPU features into properties, part 1
Date: Wed, 05 Jun 2013 19:29:46 +0200	[thread overview]
Message-ID: <51AF758A.2070404@suse.de> (raw)
In-Reply-To: <20130605171740.GV2580@otherpad.lan.raisama.net>

Am 05.06.2013 19:17, schrieb Eduardo Habkost:
> On Wed, Jun 05, 2013 at 07:04:59PM +0200, Andreas Färber wrote:
>> Am 05.06.2013 16:39, schrieb Igor Mammedov:
>>> On Wed, 05 Jun 2013 15:29:08 +0200
>>> Andreas Färber <afaerber@suse.de> wrote:
>>>> Why is conversion of dynamic properties to static properties still
>>>> needed after I applied a solution to override values of dynamic
>>>> properties with -global for 1.5?
>>> Do you mean qdev_prop_set_globals_for_type() & co?
>>
>> Yes.
>>
>>> If yes, then I recall it was acceptable hack to permit more clean
>>> approach for compat props fixes to work. And we promised Anthony to
>>> get rid of it when possible.
>>
>> Indeed, but no one talked about reverting to static properties as the
>> solution. :) Instead I was talking about solving this very general
>> problem at DeviceState / QOM level.
> 
> We have had this discussion before, and I remember Anthony saying that
> anything set using global properties _must_ be static properties,
> period.

Obviously I am not aware of that, might that have been an IRC discussion?!

> That was the main motivation we even started doing the static properties
> work, months ago.

Towards Paolo and me, Anthony rejected having static properties for QOM
at all! That was back when I temporarily maintained a qom-next tree
during some Hard Freeze, I had to unqueue patches to that effect.

>> Instead we have a very generic problem: instance_init is called
>> recursively, parents first, so a parent class cannot do any instance
>> initialization *after* its derived classes initialized the instance.
>> That's contrary to how realize and other QOM methods work but in
>> exchange for the flexibility put the burden of saving and calling the
>> parent's implementation onto subclasses.
>>
>> That's what I would like to change in some way, possibly a
>> instance_post_init hook or the like, similar to how DeviceState got its
>> own base class initialization hook to handle static props.
>> That would not only keep the work low in this case but may also solve
>> the virtio-net initialization problem reported elsewhere.
> 
> You mean this?
> https://lists.gnu.org/archive/html/qemu-devel/2012-10/msg00434.html

No, wasn't aware of that patchset yet, but yes, something like that I
had suggested in the qdev_set_custom_globals() context last Soft Freeze.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  reply	other threads:[~2013-06-05 17:30 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 13:18 [Qemu-devel] [PATCH qom-cpu 00/15 v8] target-i386: convert CPU features into properties, part 1 Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 01/15] target-i386: cpu: convert 'family' to static property Igor Mammedov
2013-06-24 16:53   ` Eduardo Habkost
2013-07-03 10:12     ` chenfan
2013-06-05 13:18 ` [Qemu-devel] [PATCH 02/15] target-i386: cpu: convert 'model' " Igor Mammedov
2013-06-24 16:53   ` Eduardo Habkost
2013-06-05 13:18 ` [Qemu-devel] [PATCH 03/15] target-i386: cpu: convert 'stepping' " Igor Mammedov
2013-06-24 16:53   ` Eduardo Habkost
2013-06-05 13:18 ` [Qemu-devel] [PATCH 04/15] target-i386: cpu: convert 'level' " Igor Mammedov
2013-06-24 16:55   ` Eduardo Habkost
2013-06-05 13:18 ` [Qemu-devel] [PATCH 05/15] target-i386: cpu: convert 'xlevel' " Igor Mammedov
2013-06-24 16:55   ` Eduardo Habkost
2013-06-05 13:18 ` [Qemu-devel] [PATCH 06/15] target-i386: cpu: convert 'vendor' " Igor Mammedov
2013-06-24 17:02   ` Eduardo Habkost
2013-06-05 13:18 ` [Qemu-devel] [PATCH 07/15] target-i386: cpu: convert 'model-id' " Igor Mammedov
2013-06-24 17:06   ` Eduardo Habkost
2013-06-05 13:18 ` [Qemu-devel] [PATCH 08/15] target-i386: cpu: convert 'tsc-frequency' " Igor Mammedov
2013-06-24 17:09   ` Eduardo Habkost
2013-06-26  8:32     ` Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 09/15] target-i386: move hyperv_* static globals to CPUState Igor Mammedov
2013-06-25 20:12   ` Eduardo Habkost
2013-07-08 11:48   ` Andreas Färber
2013-07-08 12:45     ` Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 10/15] target-i386: convert 'hv_spinlocks' to static property Igor Mammedov
2013-06-25 20:30   ` Eduardo Habkost
2013-06-25 20:34     ` Eduardo Habkost
2013-06-26  8:30       ` Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 11/15] target-i386: convert 'hv_relaxed' " Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 12/15] target-i386: convert 'hv_vapic' " Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 13/15] target-i386: convert 'check' and 'enforce' to static properties Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 14/15] target-i386: cleanup 'foo' feature handling' Igor Mammedov
2013-06-05 13:18 ` [Qemu-devel] [PATCH 15/15] target-i386: cleanup 'foo=val' feature handling Igor Mammedov
2013-06-05 13:29 ` [Qemu-devel] [PATCH qom-cpu 00/15 v8] target-i386: convert CPU features into properties, part 1 Andreas Färber
2013-06-05 14:39   ` Igor Mammedov
2013-06-05 17:04     ` Andreas Färber
2013-06-05 17:17       ` Eduardo Habkost
2013-06-05 17:29         ` Andreas Färber [this message]
2013-06-05 18:31           ` Eduardo Habkost
2013-06-05 18:57             ` Peter Maydell
2013-06-06 18:02               ` Eduardo Habkost
2013-06-11 10:36       ` Igor Mammedov

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=51AF758A.2070404@suse.de \
    --to=afaerber@suse.de \
    --cc=anthony@codemonkey.ws \
    --cc=ehabkost@redhat.com \
    --cc=fred.konrad@greensocs.com \
    --cc=imammedo@redhat.com \
    --cc=jlarrew@linux.vnet.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --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.