[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability s
From: |
Peter Xu |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct |
Date: |
Wed, 23 Mar 2016 19:56:40 +0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Wed, Mar 23, 2016 at 10:44:04AM +0100, Markus Armbruster wrote:
> Depends.
>
> The general rule is to keep separate things separate, and patches
> self-contained. The narrow sense of self-contained is each patch
> compiles and works. The wider sense is each patch makes sense to its
> readers on its own. You can't always have a perfect score on the
> latter, but you should try.
>
> Adding a definition without a user is generally not advised, because you
> generally need to see the user to make sense of it.
>
> For a complex feature, adding its abstract interface before its concrete
> implementation may help liberate interface review from implementation
> details.
>
> Note that your interface consists of type GICCapability and command
> query-gic-capabilities. You could add just the interface with a stub
> implementation first, then flesh out the implementation. But I doubt
> the thing is complex enough to justify that.
Thanks for the thorough explaination on this.
It's indeed not easy to figure out the best way every time for
me... Now I do feel it strange to split the first patch alone from
the 2nd one. Anyway, it's squashed into the 2nd patch in v6.
-- peterx
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, (continued)
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Peter Xu, 2016/03/22
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Markus Armbruster, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Peter Xu, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Markus Armbruster, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Peter Xu, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Markus Armbruster, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Peter Xu, 2016/03/23
Re: [Qemu-arm] [PATCH v5 1/5] arm: qmp: add GICCapability struct, Eric Blake, 2016/03/22
[Qemu-arm] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Peter Xu, 2016/03/17
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Markus Armbruster, 2016/03/22
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Peter Xu, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Markus Armbruster, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Peter Xu, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Markus Armbruster, 2016/03/23
- Re: [Qemu-arm] [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Eric Blake, 2016/03/23
Re: [Qemu-arm] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface, Eric Blake, 2016/03/22