From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234AbcBOGJt (ORCPT ); Mon, 15 Feb 2016 01:09:49 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36565 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752210AbcBOGJq (ORCPT ); Mon, 15 Feb 2016 01:09:46 -0500 Message-ID: <1455516578.16012.27.camel@gmail.com> Subject: Re: [PATCH 01/33] mm: introduce get_user_pages_remote() From: Balbir Singh To: Dave Hansen , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, x86@kernel.org, torvalds@linux-foundation.org, dave.hansen@linux.intel.com, srikar@linux.vnet.ibm.com, vbabka@suse.cz, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, aarcange@redhat.com, n-horiguchi@ah.jp.nec.com, jack@suse.cz Date: Mon, 15 Feb 2016 17:09:38 +1100 In-Reply-To: <20160212210154.3F0E51EA@viggo.jf.intel.com> References: <20160212210152.9CAD15B0@viggo.jf.intel.com> <20160212210154.3F0E51EA@viggo.jf.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.4 (3.18.4-1.fc23) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-02-12 at 13:01 -0800, Dave Hansen wrote: > From: Dave Hansen > > For protection keys, we need to understand whether protections > should be enforced in software or not.  In general, we enforce > protections when working on our own task, but not when on others. > We call these "current" and "remote" operations. > > This patch introduces a new get_user_pages() variant: > >         get_user_pages_remote() > > Which is a replacement for when get_user_pages() is called on > non-current tsk/mm. > In summary then get_user_pages_remote() do not enforce protections? Balbir Singh.