From: David Hildenbrand <dahi@linux.vnet.ibm.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: qemu-devel@nongnu.org, famz@redhat.com, ehabkost@redhat.com,
borntraeger@de.ibm.com, fiuczy@linux.vnet.ibm.com,
imammedo@redhat.com, jdenemar@redhat.com,
mimu@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [Patch v2 00/29] s390x CPU models: exposing features
Date: Mon, 8 Aug 2016 19:14:01 +0200 [thread overview]
Message-ID: <20160808191401.63a8d4c4@thinkpad-w530> (raw)
In-Reply-To: <20160808190203.2f8c8a60.cornelia.huck@de.ibm.com>
> On Mon, 8 Aug 2016 09:45:04 -0700 (PDT)
> no-reply@patchew.org wrote:
>
> <Trimmed the no-reply@ -- I wonder whether reply-to should be setup to
> something sensible, e.g. qemu-devel>
>
> > Checking PATCH 4/29: s390x/cpumodel: introduce CPU features...
> > WARNING: line over 80 characters
> > #65: FILE: target-s390x/cpu_features.c:27:
> > + FEAT_INIT("zarch", S390_FEAT_TYPE_STFL, 1, "z/Architecture architectural mode"),
>
> We could conceivably break the line after one of the arguments, but
> there are some very long strings below. I'm not a fan of very long
> lines myself, but I wonder whether we should relax that limit? The
> Linux kernel has settled upon a relaxed limit and forbids splitting
> strings for greppability.
I kept these > 80 as these definitions look much cleaner this way.
>
>
> > Checking PATCH 5/29: s390x/cpumodel: generate CPU feature lists for CPU models...
> > ERROR: Macros with complex values should be enclosed in parenthesis
> > #113: FILE: target-s390x/gen-features.c:20:
> > +#define S390_FEAT_GROUP_PLO \
> > + S390_FEAT_PLO_CL, \
> > + S390_FEAT_PLO_CLG, \
> > + S390_FEAT_PLO_CLGR, \
> > + S390_FEAT_PLO_CLX, \
> > + S390_FEAT_PLO_CS, \
> > + S390_FEAT_PLO_CSG, \
> > + S390_FEAT_PLO_CSGR, \
> > + S390_FEAT_PLO_CSX, \
> > + S390_FEAT_PLO_DCS, \
> > + S390_FEAT_PLO_DCSG, \
> > + S390_FEAT_PLO_DCSGR, \
> > + S390_FEAT_PLO_DCSX, \
> > + S390_FEAT_PLO_CSST, \
> > + S390_FEAT_PLO_CSSTG, \
> > + S390_FEAT_PLO_CSSTGR, \
> > + S390_FEAT_PLO_CSSTX, \
> > + S390_FEAT_PLO_CSDST, \
> > + S390_FEAT_PLO_CSDSTG, \
> > + S390_FEAT_PLO_CSDSTGR, \
> > + S390_FEAT_PLO_CSDSTX, \
> > + S390_FEAT_PLO_CSTST, \
> > + S390_FEAT_PLO_CSTSTG, \
> > + S390_FEAT_PLO_CSTSTGR, \
> > + S390_FEAT_PLO_CSTSTX
>
> I think the check is wrong to complain here.
Yes, these complaints are wrong.
>
> > Checking PATCH 6/29: s390x/cpumodel: generate CPU feature group lists...
> > Checking PATCH 7/29: s390x/cpumodel: introduce CPU feature group definitions...
> > WARNING: line over 80 characters
> > #71: FILE: target-s390x/cpu_features.c:363:
> > + FEAT_GROUP_INIT("gen13ptff", GEN13_PTFF, "PTFF enhancements introduced with z13"),
>
> Same comments as above.
Dito, the list of features just looks cleaner.
[...]
>
> > Checking PATCH 27/29: s390x/cpumodel: implement QMP interface "query-cpu-model-expansion"...
> > WARNING: line over 80 characters
> > #152: FILE: target-s390x/cpu_models.c:408:
> > + s390_feat_bitmap_to_ascii(model->features, qdict, qdict_add_enabled_feat);
I'll fix that
> >
> > WARNING: line over 80 characters
> > #165: FILE: target-s390x/cpu_models.c:421:
> > +CpuModelExpansionInfo *arch_query_cpu_model_expansion(CpuModelExpansionType type,
> >
> > ERROR: space prohibited before that close parenthesis ')'
> > #181: FILE: target-s390x/cpu_models.c:437:
> > + } else if (type != CPU_MODEL_EXPANSION_TYPE_FULL ) {
>
> That's actually a warning I concur with :)
And this of course :)
>
> I think we should at least come up with a check for a linux header
> update to avoid spamming the mailing list. And it would be a good idea
> to have some consensus about the 80 char limit as well.
For the definitions and the lengthy function prototypes I really don't want to
break readability just to conform to 80 chars.
Thanks.
David
next prev parent reply other threads:[~2016-08-08 17:14 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 15:32 [Qemu-devel] [Patch v2 00/29] s390x CPU models: exposing features David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 01/29] qmp: details about CPU definitions in query-cpu-definitions David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 02/29] s390x/cpumodel: "host" and "qemu" as CPU subclasses David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 03/29] s390x/cpumodel: expose CPU class properties David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 04/29] s390x/cpumodel: introduce CPU features David Hildenbrand
2016-08-16 14:36 ` Christian Borntraeger
2016-08-16 14:42 ` David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 05/29] s390x/cpumodel: generate CPU feature lists for CPU models David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 06/29] s390x/cpumodel: generate CPU feature group lists David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 07/29] s390x/cpumodel: introduce CPU feature group definitions David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 08/29] s390x/cpumodel: register defined CPU models as subclasses David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 09/29] s390x/cpumodel: store the CPU model in the CPU instance David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 10/29] s390x/cpumodel: expose features and feature groups as properties David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 11/29] s390x/cpumodel: let the CPU model handle feature checks David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 12/29] s390x/cpumodel: check and apply the CPU model David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 13/29] s390x/sclp: factor out preparation of cpu entries David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 14/29] s390x/sclp: introduce sclp feature blocks David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 15/29] s390x/sclp: indicate sclp features David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 16/29] s390x/sclp: propagate the ibc val(lowest and unblocked ibc) David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 17/29] s390x/sclp: propagate the mha via sclp David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 18/29] s390x/sclp: propagate hmfai David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 19/29] linux-headers: update against kvm/next David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 20/29] s390x/kvm: allow runtime-instrumentation for "none" machine David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 21/29] s390x/kvm: implement CPU model support David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 22/29] s390x/kvm: disable host model for existing compat machines David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 23/29] s390x/kvm: let the CPU model control CMM(A) David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 24/29] qmp: add QMP interface "query-cpu-model-expansion" David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 25/29] qmp: add QMP interface "query-cpu-model-comparison" David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 26/29] qmp: add QMP interface "query-cpu-model-baseline" David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 27/29] s390x/cpumodel: implement QMP interface "query-cpu-model-expansion" David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 28/29] s390x/cpumodel: implement QMP interface "query-cpu-model-comparison" David Hildenbrand
2016-08-08 15:32 ` [Qemu-devel] [Patch v2 29/29] s390x/cpumodel: implement QMP interface "query-cpu-model-baseline" David Hildenbrand
2016-08-08 16:45 ` [Qemu-devel] [Patch v2 00/29] s390x CPU models: exposing features no-reply
[not found] ` <201608081645.u78GKFHE092220@mx0b-001b2d01.pphosted.com>
2016-08-08 17:02 ` Cornelia Huck
2016-08-08 17:14 ` David Hildenbrand [this message]
[not found] ` <201608081645.u78GjISN026387@int-mx10.intmail.prod.int.phx2.redhat.com>
2016-08-08 17:27 ` Eduardo Habkost
2016-08-09 1:08 ` Fam Zheng
2016-08-15 14:00 ` David Hildenbrand
2016-08-15 14:03 ` Christian Borntraeger
2016-08-15 14:49 ` Cornelia Huck
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=20160808191401.63a8d4c4@thinkpad-w530 \
--to=dahi@linux.vnet.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=ehabkost@redhat.com \
--cc=famz@redhat.com \
--cc=fiuczy@linux.vnet.ibm.com \
--cc=imammedo@redhat.com \
--cc=jdenemar@redhat.com \
--cc=mimu@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).