From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Cornelia Huck <cohuck@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] include: update Linux headers to 4.21/5.0
Date: Fri, 4 Jan 2019 10:17:09 -0500 [thread overview]
Message-ID: <20190104101326-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <714a115f-835b-0041-426b-d16f9439ebc1@redhat.com>
On Fri, Jan 04, 2019 at 09:07:23AM +0100, Paolo Bonzini wrote:
> On 03/01/19 20:26, Peter Maydell wrote:
> > On Thu, 3 Jan 2019 at 18:19, Michael S. Tsirkin <mst@redhat.com> wrote:
> >>
> >> On Thu, Jan 03, 2019 at 06:51:13PM +0100, Paolo Bonzini wrote:
> >>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> >>
> >> Note that in the past we just updated what we needed.
> >
> > Not if I noticed it -- our copies of the Linux headers
> > are supposed to always be synchronized entirely from
> > a commit of Linux upstream master. Ad-hoc cherry-picked
> > changes can easily be accidentally undone by a later sync
> > by somebody else. This is why we have an automatic
> > script to do header synchronization, so we don't have
> > to manually write and review header updates.
>
> I agree, and shortlog seems to agree too in general. Most commits look like
>
> linux-headers: Update to v3.10-rc5
> linux-headers: update to 3.11
> linux-headers: Update to 4.2-rc1
> linux-headers: sync against v4.14-rc1
> linux-headers: update to 3.12-rc1
> linux-headers: update to 3.18-rc5
> update linux headers to kvm/next
> synchronize Linux headers to 4.0-rc3
> linux-headers: update to 4.13-rc0
> linux header sync against v4.13-rc1
>
> and so on.
>
>
> >> I'd prefer the shell script part and the new vhost_types header which
> >> are actually reviewable to be split out to a separate patch.
> >
> > I agree that shell script changes should be their own patch.
> > My view is that a header-update commit should be entirely
> > and nothing but the automatically generated results of
> > running scripts/update-linux-headers.sh, with a commit
> > message that says "Generated by running update-linux-headers.sh
> > on upstream kernel commit xxxx".
>
> The problem with this approach is that the old script does not work with
> the new commit and the new script does not work with the old commit.
I would do
update-linux-headers.sh: add support for Linux 4.21-rc1
Since 4.21-rc1 header abc moved from foo/ to bar/ update
script accordingly.
---
linux-headers: update to 4.21-rc1
Generated by running update-linux-headers.sh on upstream kernel commit xxxx
> Doing the update in the same commit as the script update means that it's
> clear from the commit message on which Linux commit you should run it
> (though in this case I should have specified 4.21-rc1 or 5.0-rc1).
>
> Another way would be to make Linux a submodule. Then you'd upgrade the
> submodule and the script in one commit, and then generate the headers at
> compile-time or release-time. This however wouldn't be as nice for
> users of the git repo. That's the reason why I went for the single
> commit, but of course I can split it and will in v2.
>
> Paolo
>
> > Doing by-hand updates to the headers is quite a common
> > error; I'm not sure if we can automatically catch it
> > with checkpatch. ("Any change to include/standard-headers
> > or linux-headers/ must be a commit that touches only files
> > in those subdirectories and whose commit message is in
> > a standard format", perhaps.)
> >
> > thanks
> > -- PMM
> >
prev parent reply other threads:[~2019-01-04 15:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-03 17:51 [Qemu-devel] [PATCH] include: update Linux headers to 4.21/5.0 Paolo Bonzini
2019-01-03 18:18 ` Michael S. Tsirkin
2019-01-03 19:26 ` Peter Maydell
2019-01-04 8:07 ` Paolo Bonzini
2019-01-04 8:38 ` Cornelia Huck
2019-01-04 15:17 ` Michael S. Tsirkin [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=20190104101326-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=cohuck@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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 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.