From: Li Qiang <liq3ea@gmail.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
rth@twiddle.net, ehabkost@redhat.com, mst@redhat.com,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
Qemu Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 2/2] hw: vmmouse: drop DEFINE_PROP_PTR()
Date: Thu, 29 Nov 2018 12:54:33 +0800 [thread overview]
Message-ID: <CAKXe6SLN2Av95SONvaT3C4sV5zvsxi8HFHXojWT0VQDwt8nCTA@mail.gmail.com> (raw)
In-Reply-To: <87a7lur8z8.fsf@dusky.pond.sub.org>
Markus Armbruster <armbru@redhat.com> 于2018年11月27日周二 下午8:38写道:
> Darren Kenny <darren.kenny@oracle.com> writes:
>
> > Hi Li Qiang,
> >
> > This is only a suggestion, I'm sure someone else might also correct
> > me, but I'm not sure the subject above really describes what is
> > happening in the commit as a whole.
> >
> > It seems to miss the point that the main change here is to use a
> > link type property, so maybe it might be better written as something
> > along the lines of:
> >
> > Subject: [PATCH v2 2/2] hw: vmmouse: use link property instead of
> pointer
> > Drop DEFINE_PROP_PTR() and replace with a link pointer via an
> > instance init function (vmmouse_instance_initfn).
>
> Yes, that's better. Or take inspiration from recent similar work, such
> as commit a8299ec1b24, and say something like
>
> vmmouse: Use link instead of pointer property
>
> According to qdev-properties.h, properties of pointer type should
> be avoided. Turn "ps2_mouse" into a link.
>
> Preferably with the commit message improved along these lines:
> Reviewed-by: Markus Armbruster <armbru@redhat.com>
>
Hi Darren and Markus,
Thanks so much for your advice.
A new revision has been sent out.
Thanks,
Li Qiang
>
> [...]
>
prev parent reply other threads:[~2018-11-29 4:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-27 10:02 [Qemu-devel] [PATCH v2 0/2] hw: vmmouse: use link property instead of DEFINE_PROP_PTR Li Qiang
2018-11-27 10:02 ` [Qemu-devel] [PATCH v2 1/2] hw: pc: use TYPE_XXX instead of constant strings Li Qiang
2018-11-27 10:18 ` Darren Kenny
2018-11-27 10:37 ` Philippe Mathieu-Daudé
2018-11-27 12:37 ` Markus Armbruster
2018-11-27 10:02 ` [Qemu-devel] [PATCH v2 2/2] hw: vmmouse: drop DEFINE_PROP_PTR() Li Qiang
2018-11-27 10:27 ` Darren Kenny
2018-11-27 12:38 ` Markus Armbruster
2018-11-27 16:57 ` Darren Kenny
2018-11-29 4:54 ` Li Qiang [this message]
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=CAKXe6SLN2Av95SONvaT3C4sV5zvsxi8HFHXojWT0VQDwt8nCTA@mail.gmail.com \
--to=liq3ea@gmail.com \
--cc=armbru@redhat.com \
--cc=ehabkost@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).