Received: by 10.192.165.148 with SMTP id m20csp4526289imm; Tue, 8 May 2018 09:48:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrXFsGx2omS/pPq9NzpipI8z4ZmsarcCJB/QvyOQ6SmarrS5xc0mRs3uYGD0QassaNssMCU X-Received: by 2002:a17:902:1aa:: with SMTP id b39-v6mr42487153plb.120.1525798107883; Tue, 08 May 2018 09:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525798107; cv=none; d=google.com; s=arc-20160816; b=NIxTN0uEza3JN2Qzn8sIgTnJPQ8rPVq2pDh1/5yTNoiV0DZjVU/ht6qI66TkIA+I6i q5/3il1PbVJ4tkZzgs40PUJ8wufOIOsSxCvCxaV+IIGPX9uEV7YDUuLUCe8qjYZMX05k B6ixQEZuDBptjdizaEja1CDzRqGvx9AU+ORNpwXXeLPY2z8c8irVHqJCZ6CbLNK4JWYt 1nU5O/n2rcV3jGM/YikDwza7WrwBtIskMT5gM06XK2Xs89mUcAwMjvjAO2Xh5DqyZmR+ yze0/FzLDkDYpcV+bu4dEvDgu6/F+YjHdVhjw19o5WrWenX9IpQ8UpYoh1+0LK9k3vhy rxjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:cc:references:to:subject :arc-authentication-results; bh=yyitYOBU8hBCKPnRXJ4gBfOGclygP4p+DGCcjHmWiys=; b=NKsmd2R+/kNmWNSKb2j8NSw7x1xTMA2I4LF+nhJLHz6LAGAaj0DfdNqR1LIwRud2LR nOXnTNoL6aUevqreGIptzy3iJslKPWOIWdeE5vLRD/2/GiMrX9JPnDUEsBSUTF+Jih8M vp5qkSBs/b4Mb81YhuGVEJD60OOlBXM2sUHcWLw9Fh9uBs2izLGCeJSRUgVippVED/my Lgsr8ieWnG+yi6+ZCy0Ys4D31vVgW7eUWAf8BbEaNzE6102CD9Cw925VvTf9sXe1ceL0 hjeH8rq0yz/LbWFkgnW1Gs6OjtLM8gHL5Z6s7aT+98odOk9Ephm2TNzERlHM+QRoTImj v3Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si24574035pfr.242.2018.05.08.09.48.13; Tue, 08 May 2018 09:48:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933055AbeEHQr2 (ORCPT + 99 others); Tue, 8 May 2018 12:47:28 -0400 Received: from mga04.intel.com ([192.55.52.120]:18669 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932634AbeEHQr1 (ORCPT ); Tue, 8 May 2018 12:47:27 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 May 2018 09:47:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,379,1520924400"; d="scan'208";a="39658497" Received: from unknown (HELO [10.7.201.133]) ([10.7.201.133]) by orsmga008.jf.intel.com with ESMTP; 08 May 2018 09:47:17 -0700 Subject: Re: [PATCH 8/8] mm/pkeys, x86, powerpc: Display pkey in smaps if arch supports pkeys To: Michael Ellerman , linuxram@us.ibm.com References: <20180508145948.9492-1-mpe@ellerman.id.au> <20180508145948.9492-9-mpe@ellerman.id.au> Cc: mingo@redhat.com, linuxppc-dev@ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-kernel@vger.kernel.org From: Dave Hansen Openpgp: preference=signencrypt Message-ID: Date: Tue, 8 May 2018 09:47:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180508145948.9492-9-mpe@ellerman.id.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/2018 07:59 AM, Michael Ellerman wrote: > Currently the architecture specific code is expected to display the > protection keys in smap for a given vma. This can lead to redundant > code and possibly to divergent formats in which the key gets > displayed. > > This patch changes the implementation. It displays the pkey only if > the architecture support pkeys, i.e arch_pkeys_enabled() returns true. For this, along with 6/8 and 7/8: Reviewed-by: Dave Hansen