Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965919AbcKJRt2 (ORCPT ); Thu, 10 Nov 2016 12:49:28 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:18103 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965135AbcKJRtZ (ORCPT ); Thu, 10 Nov 2016 12:49:25 -0500 X-IronPort-AV: E=Sophos;i="5.31,619,1473120000"; d="scan'208";a="397543372" Subject: Re: [Xen-devel] [PATCH RESEND] xen/gntdev: Grant maps should not be subject to NUMA balancing To: Olaf Hering , Boris Ostrovsky References: <1447186233-3194-1-git-send-email-boris.ostrovsky@oracle.com> <20161110162633.GA5301@aepfle.de> <0c993a89-83a1-d8a8-4927-d36660179256@oracle.com> <20161110164226.GA5937@aepfle.de> <085299df-0d6e-2e1b-02b8-34f33c3d4fa6@oracle.com> <20161110174734.GB5937@aepfle.de> CC: , , , From: David Vrabel Message-ID: <9c5d23e9-cb02-5f83-0422-2bbf55fb7779@citrix.com> Date: Thu, 10 Nov 2016 17:49:21 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161110174734.GB5937@aepfle.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 749 Lines: 23 On 10/11/16 17:47, Olaf Hering wrote: > On Thu, Nov 10, Boris Ostrovsky wrote: > >> Are you sure it's this patch that causes the failure? >> >> I commented out '| VM_IO' and still unable to boot with this option. > > Yes, this works for me, sles12sp2 dom0+domU, which is linux-4.4 based: > > +++ b/drivers/xen/gntdev.c > @@ -804,7 +804,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) > > vma->vm_ops = &gntdev_vmops; > > - vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP | VM_IO; > + vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP /*| VM_IO*/; > > if (use_ptemod) > vma->vm_flags |= VM_DONTCOPY; I think we need a custom policy for this VMA with MPOL_F_MOF cleared. David