From: Eduardo Habkost <ehabkost@redhat.com>
To: Halil Pasic <pasic@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org, Marcel Apfelbaum <marcel@redhat.com>,
Cornelia Huck <cohuck@redhat.com>, Greg Kurz <groug@kaod.org>
Subject: Re: [Qemu-devel] [PATCH 3/3] Revert "machine: Convert abstract typename on compat_props to subclass names"
Date: Wed, 12 Jul 2017 16:20:55 -0300 [thread overview]
Message-ID: <20170712192055.GL6020@localhost.localdomain> (raw)
In-Reply-To: <2cda5b0b-0169-d12e-114e-77fcb1a4bb07@linux.vnet.ibm.com>
On Wed, Jul 12, 2017 at 07:49:22PM +0200, Halil Pasic wrote:
> On 07/11/2017 02:43 AM, Eduardo Habkost wrote:
> > This reverts commit 0bcba41fe379e4c6834adcf1456d9099db31a5b2.
> >
> > The bug addressed by that commit is now fixed in a better way by the
> > commit "qdev: fix the order compat and global properties are applied".
> >
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
>
> Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
>
> Note: It is not like the effect of commit 0bcba41fe3 is canceled
> out with your first patch in place. It depends on the client
> code (the implementation of the individual devices) wether
> this patch changes something or not. I did not check myself.
> So the did you verify that nothing breaks with this change applies
> here too.
I don't get this part. I don't see how individual devices
implementation will be able to affect the outcome after this
patch is applied.
GlobalProperty::driver is not used as input for
object_property_parse() at all (see qdev_prop_set_globals()).
This means exactly the same property setter is invoked when
registering "<superclass>.<property>" or "<subclass>.<property>".
The only difference introduced by this series is in the ordering
of the object_property_parse() calls.
And even the object_property_parse() call ordering is not
affected by this patch at all, because of patch 1/3. Patch 1/3
will ensure the properties will be applied in exactly the same
order they were registered, so this patch should introduce
absolutely no behavior change on any device.
--
Eduardo
next prev parent reply other threads:[~2017-07-12 19:21 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-11 0:43 [Qemu-devel] [PATCH 0/3] qdev: fix the order compat and global properties are applied Eduardo Habkost
2017-07-11 0:43 ` [Qemu-devel] [PATCH 1/3] " Eduardo Habkost
2017-07-11 12:46 ` Cornelia Huck
2017-07-12 17:33 ` Halil Pasic
2017-07-12 18:29 ` Eduardo Habkost
2017-07-13 11:54 ` Halil Pasic
2017-07-13 16:15 ` Eduardo Habkost
2017-07-16 12:21 ` Halil Pasic
2017-07-11 0:43 ` [Qemu-devel] [PATCH 2/3] test-qdev-global-props: Test global property ordering Eduardo Habkost
2017-07-11 12:48 ` Cornelia Huck
2017-07-11 13:16 ` Greg Kurz
2017-07-12 18:06 ` Halil Pasic
2017-07-12 18:48 ` Eduardo Habkost
2017-07-16 12:35 ` Halil Pasic
2017-07-17 17:38 ` Eduardo Habkost
2017-07-11 0:43 ` [Qemu-devel] [PATCH 3/3] Revert "machine: Convert abstract typename on compat_props to subclass names" Eduardo Habkost
2017-07-11 12:49 ` Cornelia Huck
2017-07-11 13:16 ` Greg Kurz
2017-07-12 17:49 ` Halil Pasic
2017-07-12 19:20 ` Eduardo Habkost [this message]
2017-07-13 12:11 ` Halil Pasic
2017-07-13 16:20 ` Eduardo Habkost
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=20170712192055.GL6020@localhost.localdomain \
--to=ehabkost@redhat.com \
--cc=cohuck@redhat.com \
--cc=groug@kaod.org \
--cc=marcel@redhat.com \
--cc=pasic@linux.vnet.ibm.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).