Received: by 10.213.65.68 with SMTP id h4csp11382imn; Fri, 16 Mar 2018 15:35:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELtV/HbaF9Ab1sA62a5gYzBYsX4eEPd5Be8aFuS3azwkoCsbWNp1zOe0lyDZZvmb4B9wRX19 X-Received: by 10.98.133.86 with SMTP id u83mr2994673pfd.172.1521239719393; Fri, 16 Mar 2018 15:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521239719; cv=none; d=google.com; s=arc-20160816; b=yVeCSxWLSnADO3qIO/tIDa0H9IloWVSeL921P4y0Z1QfNugjNPGvc++xRqjLwf8uz2 uaqapHwaZIqJAjsjznirTUa5lPceJmaYSXELLDUt9ujpg8uy1Gw8jdguVf0R1lnBt2Z3 7e8u2oMM0AwXVJh5JbSkpCW0PSs/J198nSl1+AVVSABIwDmwE9z7tBA/AO3KumVM9VAG 9cpSIyJ7CxFyCeMmEcUPe1uWiffJkW6Wf3Otrmv6hhmZfO0Vs69w00ZfBw+B3Mvwilrl R0KA0ZY1izES9LfGG7nyIvlukj+dWB458FaeR7ncsoW9k5hoBTM4Iv7kS/u0MRbM9s0i dX/g== 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:from:cc:references:to:subject:arc-authentication-results; bh=LF+NLsgj53g+b8tSuj1HGA7xtJwZDYBgfk2/1d7UDnY=; b=wOUUaD/hqXR4CzvDc5B9t5cr83DuK3RIXGNaEwOl6c+3HsKNuunBuNJ8Ct+/tmRBHg T56Wcwaj7QYcN/8Vd6DROiFfjCkZxMy5X151PIrDb7S+i8ao5VLO0EDTwflerTi9Kt2v SLXCU/UPeVy16Qr/+Hft87ZXbJs9FwMnNHhawdGOtW9gZiWkT0STvNGP3J508TEeKRuA ZCJz6y6kkhqXq+bNqjsrat76uxcGDeayG1FjdFLYl5RWoK2r3jk1NzoMij9bWfr0cblA Cx1Le3Ns0fm8Lqq/GzIucvcDFJ4bE55TeRpM57C0DwWDvuQ9scGfKNvmX++oFPlaGPAF KLdg== 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 u193si5653165pgc.352.2018.03.16.15.35.05; Fri, 16 Mar 2018 15:35:19 -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 S1752568AbeCPWeH (ORCPT + 99 others); Fri, 16 Mar 2018 18:34:07 -0400 Received: from mga03.intel.com ([134.134.136.65]:27546 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbeCPWeE (ORCPT ); Fri, 16 Mar 2018 18:34:04 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2018 15:34:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,317,1517904000"; d="scan'208";a="25373621" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga007.jf.intel.com with ESMTP; 16 Mar 2018 15:34:03 -0700 Subject: Re: [PATCH v12 21/22] selftests/vm: sub-page allocator To: Ram Pai , shuahkh@osg.samsung.com, linux-kselftest@vger.kernel.org References: <1519264541-7621-1-git-send-email-linuxram@us.ibm.com> <1519264541-7621-22-git-send-email-linuxram@us.ibm.com> Cc: mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, akpm@linux-foundation.org, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, arnd@arndb.de From: Dave Hansen Message-ID: Date: Fri, 16 Mar 2018 15:33:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519264541-7621-22-git-send-email-linuxram@us.ibm.com> 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 02/21/2018 05:55 PM, Ram Pai wrote: ... > @@ -888,6 +917,7 @@ void setup_hugetlbfs(void) > void *(*pkey_malloc[])(long size, int prot, u16 pkey) = { > > malloc_pkey_with_mprotect, > + malloc_pkey_with_mprotect_subpage, > malloc_pkey_anon_huge, > malloc_pkey_hugetlb > /* can not do direct with the pkey_mprotect() API: I think I'd rather have an #ifdef on the array entries than have the malloc entry do nothing on x86. Maybe have a ppc-specific section at the end?