All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <George.Dunlap@citrix.com>
To: Andrew Cooper <Andrew.Cooper3@citrix.com>,
	Jan Beulich <jbeulich@suse.com>,
	Bertrand Marquis <Bertrand.Marquis@arm.com>,
	Julien Grall <julien@xen.org>,
	Stefano Stabellini <sstabellini@kernel.org>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Juergen Gross <jgross@suse.com>,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: Process for cherry-picking patches from other projects
Date: Fri, 13 May 2022 14:33:40 +0000	[thread overview]
Message-ID: <396325A0-7EE6-4EAC-9BB9-BA67D878E6AE@citrix.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2551 bytes --]

Starting a new thread to make it clear that we’re discussing a wider policy here.

This question is aimed at Jan and Andy in particular, as I think they’ve probably done the most of this; so I’m looking to them to find out what our “standard practice” is.

There have recently been some patches that Bertrand has submitted which pull in code from Linux ("[PATCH 1/3] xen/arm: Sync sysregs and cpuinfo with Linux 5.18-rc3”), which has caused a discussion between him, Julien, and Stefano about the proper way to do such patches.

The “Origin:” tag section of xen.git/docs/process/sending-patches.pandoc suggests that there are some standards, but doesn’t spell them out.

The questions seem to be:

1) When doing this kind of update, is it permissible to send a single patch which “batches” several upstream commits together, or should each patch be backported individually?

2) If “batches” are permissible, when?  When would individual patches be preferred?

3) For “batch updates”, what tags are necessary?  Do we need to note the changesets of all the commits, and if so, do we need multiple “Origin” tags?  Do we need to include anything from the original commits — commit messages?  Signed-off-by’s?

And a related question:

4) When importing an entire file from an upstream like Linux, what tags do we need?

My recollection is that we often to a “accumulated patch” to update, say, the Kconfig tooling; so it seems like the answer to this is sometimes “yes”.

It seems to me that in a case where you’re importing a handful of patches — say 5-10 — that importing them one-by-one might be preferred; but in this case, since the submission was already made as a batch, I’d accept having it as a batch.

I think if I were writing this patch, I’d make a separate “Origin” tag for each commit.

I wouldn’t include the upstream commit messages or S-o-b’s; I would write my own commit message summarizing why I’m importing the commits, then have the ‘origin’ tags, then my own S-o-b to indicate that I am attesting that it comes from an open-source project (and for whatever copyright can be asserted on the commit message and the patch as a collection).

And for #4, I would do something similar: I would write my own commit message describing what the file is for and why we’re importing it; have the Origin tag point to the commit at the point I took the file; and my own S-o-b.

Andy and Jan, what do you guys normally do?

Thanks,
 -George

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2022-05-13 14:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13 14:33 George Dunlap [this message]
2022-05-13 14:52 ` Process for cherry-picking patches from other projects Juergen Gross
2022-05-13 20:15   ` Stefano Stabellini
2022-05-16 13:12   ` George Dunlap
2022-05-16 13:53     ` Juergen Gross
2022-05-16 15:04 ` Andrew Cooper
2022-05-16 15:19   ` George Dunlap
2022-05-16 15:20   ` Julien Grall
2022-05-16 15:26     ` George Dunlap
2022-05-17 15:26 ` Jan Beulich
2022-05-18  3:12   ` Stefano Stabellini
2022-05-18  7:38     ` Julien Grall
2022-06-01 13:24       ` George Dunlap

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=396325A0-7EE6-4EAC-9BB9-BA67D878E6AE@citrix.com \
    --to=george.dunlap@citrix.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=Bertrand.Marquis@arm.com \
    --cc=jbeulich@suse.com \
    --cc=jgross@suse.com \
    --cc=julien@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.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.