From: Cornelia Huck <cohuck@redhat.com>
To: David Hildenbrand <david@redhat.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>,
Halil Pasic <pasic@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>,
qemu-s390x@nongnu.org, Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [qemu-s390x] [PATCH 1/1] 390x/cpumodel: document S390FeatDef.bit not applicable
Date: Tue, 20 Feb 2018 17:25:40 +0100 [thread overview]
Message-ID: <20180220172540.0c1e6584.cohuck@redhat.com> (raw)
In-Reply-To: <054d7875-140c-c9c0-f5c3-db52e79feeac@redhat.com>
On Tue, 20 Feb 2018 17:08:52 +0100
David Hildenbrand <david@redhat.com> wrote:
> On 20.02.2018 17:07, Cornelia Huck wrote:
> > On Tue, 20 Feb 2018 17:04:19 +0100
> > Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> >
> >> On 02/20/2018 04:55 PM, David Hildenbrand wrote:
> >>> On 20.02.2018 16:53, Cornelia Huck wrote:
> >>>> On Tue, 20 Feb 2018 16:07:13 +0100
> >>>> Halil Pasic <pasic@linux.vnet.ibm.com> wrote:
> >>>>
> >>>>> The 'bit' field of the 'S390FeatDef' structure is not applicable to all
> >>>>> it's instances. Currently a this field is not applicable, and remains
> >>>>
> >>>> s/it's/its/
> >>>>
> >>>> s/a this/this/
> >>>>
> >>>>> unused, iff the feature is of type S390_FEAT_TYPE_MISC. Having the value 0
> >>>>> specified for multiple such feature definition was a little confusing,
> >>>>> as it's a perfectly legit bit value, and as usually the value of the bit
> >>>>> field is ought to be unique for each feature.
> >>>>>
> >>>>> Let's document this, and hopefully reduce the potential for confusion.
> >>>>>
> >>>>> Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
> >>>>> ---
> >>>>>
> >>>>> Hi!
> >>>>>
> >>>>> This may be an overkill. A comment where the misc features
> >>>>> are defined would do to, but I think this is nicer. So
> >>>>> I decided to try it with this approach first.
> >>>>
> >>>> Is there likely to be anything else than FEAT_MISC _not_ using .bit? If
> >>>> not, would it be better to at a comment to the FEAT_MISC definition?
> >>>
> >>> Doubt it right now. I would sign the "overkill" part :)
> >>
> >> I can cconfirm that this code caused some questions and it took me some
> >> minutes to remember why 0 and 0 was ok. So I certainly want to have a comment
> >> of some form.
> >>
> >
> > I'd prefer a comment about FEAT_MISC usage rather than a magic value.
> >
>
> We can also add FEAT_INIT_MISC. And add a comment in the initializer.
>
That's what I like best.
next prev parent reply other threads:[~2018-02-20 16:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-20 15:07 [Qemu-devel] [PATCH 1/1] 390x/cpumodel: document S390FeatDef.bit not applicable Halil Pasic
2018-02-20 15:53 ` [Qemu-devel] [qemu-s390x] " Cornelia Huck
2018-02-20 15:55 ` David Hildenbrand
2018-02-20 16:04 ` Christian Borntraeger
2018-02-20 16:07 ` Cornelia Huck
2018-02-20 16:08 ` David Hildenbrand
2018-02-20 16:25 ` Cornelia Huck [this message]
2018-02-21 12:11 ` Halil Pasic
2018-02-20 16:32 ` Halil Pasic
2018-02-20 16:19 ` Halil Pasic
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=20180220172540.0c1e6584.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=agraf@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=david@redhat.com \
--cc=pasic@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.