qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Anthony Liguori <anthony@codemonkey.ws>,
	Eduardo Habkost <ehabkost@redhat.com>
Cc: libvir-list@redhat.com, Markus Armbruster <armbru@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	Anthony Liguori <aliguori@amazon.com>,
	Igor Mammedov <imammedo@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Jiri Denemark <jdenemar@redhat.com>, Amos Kong <akong@redhat.com>
Subject: Re: [Qemu-devel] CPU models and feature probing (was Re: [PATCH qom-cpu 00/16 v10] target-i386: convert CPU) features into properties
Date: Tue, 11 Feb 2014 17:55:33 +0100	[thread overview]
Message-ID: <52FA5605.7040305@suse.de> (raw)
In-Reply-To: <CA+aC4ks2=31DA2z8VAqXh_R6vBrQaQGz+WLhRsP5LPGe74u1CQ@mail.gmail.com>

Am 11.02.2014 16:58, schrieb Anthony Liguori:
> On Tue, Feb 11, 2014 at 7:25 AM, Eduardo Habkost <ehabkost@redhat.com> wrote:
>> On Tue, Feb 11, 2014 at 06:31:35AM -0800, Anthony Liguori wrote:
>>> On Fri, Feb 7, 2014 at 2:55 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>>> Il 07/02/2014 11:16, Eduardo Habkost ha scritto:
>>>>
>>>>> You are not alone. I remember we spent lots of time trying to convince
>>>>> Anthony to allow global properties and compat_props affect dynamic
>>>>> properties not just static properties, and static properties were a big
>>>>> deal due to reasons I didn't understand completely. Now I am hearing the
>>>>> opposite message, and I don't understand the reasons for the change of
>>>>> plans. I am confused.
>>>>
>>>>
>>>> Picture me confused as well, but at the same I think I understand the
>>>> reasons for the change of plans.
>>>
>>> There's no real convincing.  It's just a question of code.
>>
>> I am sure there's a lot of convincing involved, even after the code is
>> written (in this case, 15 months after the code was written).
> 
> N.B. the code you refer to doesn't "make global propeties and
> compat_props affect dynamic properties."  It converts CPU properties
> to static properties which I'm pretty sure I said many times is a
> perfectly reasonable thing to do.
> 
>>> There are
>>> no defaults in classes for dynamic properties to modify.  compat_props
>>> are a nice mechanism, making them work for all properties is a
>>> reasonable thing to do.
>>
>> That's exactly the opposite of what you said before[1]. But that isn't
>> supposed to be a problem, I understand there may be change of plans (we
>> should be able to change our minds).
> 
> I think you're confusing a few things.  You cannot make dynamic
> properties work with globals today.  Globals change class default
> values and there are no class defaults for dynamic properties.[*]
> 
> There's a perfectly valid discussion to have about whether we should
> even have dynamic properties.  It's certainly been a long time since
> they were introduced and they haven't made their way into all that
> many devices so it's reasonable to say that perhaps we'd be better off
> without them.  I would not object to a patch series that moved
> properties to classes entirely provided it removed existing uses of
> dynamic properties and didn't just introduce yet another mechanism.
> 
> But compat properties as a concept could be made to work with dynamic
> properties.  They would have to be evaluated after instance init.
> There's quite a few places they would end up touching I suspect.

Erm, sorry, that is already implemented in qemu.git!? instance_post_init
by Eduardo plus glue by me.

Andreas

> 
> Another point of confusion worth mention is legacy properties since
> this usually comes up in the discussion.  Legacy properties (the
> properties that are set/get as strings) are something that we should
> try to avoid.  They end up as strings on the wire and make it harder
> to write client code.
> 
> * I recognize that compat_props are implemented as globals.  I'm
> really talking about the current implementation of globals, not the
> concept of -global which could be made with dynamic properties.
> 
> Regards,
> 
> Anthony Liguori
> 
>> What I don't understand is the rejection of code that works, matches the
>> style used by 200+ other source files, adds more useful introspectable
>> information, done in the way that was suggested 16 months ago, because
>> we have some rough idea about how a new grand design will look like in
>> the far future.
>>
>> [1] http://lists.gnu.org/archive/html/qemu-devel/2013-06/msg00990.html
>>
>> --
>> Eduardo


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

  parent reply	other threads:[~2014-02-11 16:57 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 22:28 [Qemu-devel] [PATCH qom-cpu 00/16 v10] target-i386: convert CPU features into properties Igor Mammedov
2013-11-27 22:28 ` [Qemu-devel] [PATCH 01/16] target-i386: cleanup 'foo' feature handling' Igor Mammedov
2013-11-27 22:28 ` [Qemu-devel] [PATCH 02/16] target-i386: cleanup 'foo=val' feature handling Igor Mammedov
2014-02-11  9:14   ` Eduardo Habkost
2014-02-11 14:28     ` Andreas Färber
2013-11-27 22:28 ` [Qemu-devel] [PATCH 03/16] target-i386: cpu: convert 'level' to static property Igor Mammedov
2014-02-11  9:14   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 04/16] target-i386: cpu: convert 'xlevel' " Igor Mammedov
2014-02-11  9:15   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 05/16] target-i386: cpu: convert 'family' " Igor Mammedov
2014-02-11  9:37   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 06/16] target-i386: cpu: convert 'model' " Igor Mammedov
2014-02-11  9:40   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 07/16] target-i386: cpu: convert 'stepping' " Igor Mammedov
2014-02-11  9:40   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 08/16] target-i386: cpu: convert 'vendor' " Igor Mammedov
2014-02-11 11:31   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 09/16] target-i386: cpu: convert 'model-id' " Igor Mammedov
2014-02-11 11:36   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 10/16] target-i386: cpu: convert 'tsc-frequency' " Igor Mammedov
2014-02-11 11:36   ` Eduardo Habkost
2013-11-27 22:28 ` [Qemu-devel] [PATCH 11/16] target-i386: set [+-]feature using static properties Igor Mammedov
2013-11-27 22:28 ` [Qemu-devel] [PATCH 12/16] qdev: introduce qdev_prop_find_bit() Igor Mammedov
2013-11-27 22:28 ` [Qemu-devel] [PATCH 13/16] target-i386: use static properties in check_features_against_host() to print CPUID feature names Igor Mammedov
2013-11-27 22:28 ` [Qemu-devel] [PATCH 14/16] target-i386: use static properties to list CPUID features Igor Mammedov
2013-11-27 22:28 ` [Qemu-devel] [PATCH 15/16] target-i386: remove unused *_feature_name arrays Igor Mammedov
2013-11-27 22:28 ` [Qemu-devel] [PATCH 16/16] target-i386: cpu: fix invalid use of error_is_set(errp) if errp == NULL Igor Mammedov
2013-12-15 22:50 ` [Qemu-devel] [PATCH qom-cpu 00/16 v10] target-i386: convert CPU features into properties Andreas Färber
2013-12-16 15:01   ` Igor Mammedov
2013-12-16 18:26     ` Eduardo Habkost
2013-12-17 13:01       ` Igor Mammedov
2014-01-07  8:41       ` Igor Mammedov
2014-02-05 14:40   ` Igor Mammedov
2014-02-05 16:14     ` Andreas Färber
2014-02-05 16:52       ` Igor Mammedov
2014-02-06 15:19         ` Igor Mammedov
2014-02-06 15:51           ` Andreas Färber
2014-02-06 16:16             ` [Qemu-devel] CPU models and feature probing (was Re: [PATCH qom-cpu 00/16 v10] target-i386: convert CPU) " Eduardo Habkost
2014-02-06 16:57               ` Andreas Färber
2014-02-07 10:16                 ` Eduardo Habkost
2014-02-07 10:55                   ` Paolo Bonzini
2014-02-11 11:54                     ` Eduardo Habkost
2014-02-11 14:31                     ` Anthony Liguori
2014-02-11 15:25                       ` Eduardo Habkost
2014-02-11 15:58                         ` Anthony Liguori
2014-02-11 16:43                           ` Eduardo Habkost
2014-02-11 16:45                             ` Paolo Bonzini
2014-02-11 16:55                           ` Andreas Färber [this message]
2014-02-11 18:57                             ` Anthony Liguori
2014-02-11 21:38                               ` Paolo Bonzini
2014-02-07 10:37                 ` Eduardo Habkost
2014-02-11 17:17 ` [Qemu-devel] [PATCH qom-cpu 00/16 v10] target-i386: convert CPU " Igor Mammedov
2014-03-05 16:53   ` 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=52FA5605.7040305@suse.de \
    --to=afaerber@suse.de \
    --cc=akong@redhat.com \
    --cc=aliguori@amazon.com \
    --cc=anthony@codemonkey.ws \
    --cc=armbru@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=jdenemar@redhat.com \
    --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 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).