linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: Linux-Next Mailing List <linux-next@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: linux-next: manual merge of the vfio tree with Linus' tree
Date: Mon, 4 Jun 2018 16:15:18 +1000	[thread overview]
Message-ID: <20180604161518.4276f5f4@canb.auug.org.au> (raw)

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

Hi Alex,

Today's linux-next merge of the vfio tree got a conflict in:

  drivers/vfio/vfio_iommu_type1.c

between commit:

  89c29def6b01 ("Revert "vfio/type1: Improve memory pinning process for raw PFN mapping"")

from Linus' tree and commit:

  7b578b0de3d3 ("vfio/type1: Fix task tracking for QEMU vCPU hotplug")

from the vfio tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/vfio/vfio_iommu_type1.c
index 3c082451ab1a,2c71508abdd8..000000000000
--- a/drivers/vfio/vfio_iommu_type1.c
+++ b/drivers/vfio/vfio_iommu_type1.c
@@@ -422,8 -434,8 +426,8 @@@ static long vfio_pin_pages_remote(struc
  	 * Reserved pages aren't counted against the user, externally pinned
  	 * pages are already counted against the user.
  	 */
 -	if (!vfio_find_vpfn(dma, iova)) {
 +	if (!rsvd && !vfio_find_vpfn(dma, iova)) {
- 		if (!lock_cap && current->mm->locked_vm + 1 > limit) {
+ 		if (!dma->lock_cap && current->mm->locked_vm + 1 > limit) {
  			put_pfn(*pfn_base, dma->prot);
  			pr_warn("%s: RLIMIT_MEMLOCK (%ld) exceeded\n", __func__,
  					limit << PAGE_SHIFT);
@@@ -448,8 -459,8 +452,8 @@@
  			break;
  		}
  
 -		if (!vfio_find_vpfn(dma, iova)) {
 +		if (!rsvd && !vfio_find_vpfn(dma, iova)) {
- 			if (!lock_cap &&
+ 			if (!dma->lock_cap &&
  			    current->mm->locked_vm + lock_acct + 1 > limit) {
  				put_pfn(pfn, dma->prot);
  				pr_warn("%s: RLIMIT_MEMLOCK (%ld) exceeded\n",

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

                 reply	other threads:[~2018-06-04  6:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20180604161518.4276f5f4@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=alex.williamson@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.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).