Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5121725pxj; Wed, 9 Jun 2021 09:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF8mTBvhUAefpD0quOetC8bouFfdjmsBAwtRbqK97yIu4eAhirUMdT344r+P5z5kL2zKyX X-Received: by 2002:a05:6402:40c3:: with SMTP id z3mr304754edb.187.1623256563769; Wed, 09 Jun 2021 09:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623256563; cv=none; d=google.com; s=arc-20160816; b=CFEKxqylmAWtMZ+KCK5C2gh3kFF+FZg/pGWJjbc59sUAYKFu5ZW0r6L7pP0T0B1sUZ m97a9AQP8v9zSwoEFfzq7tX0XafW9I+Mxwp84mOG1tXLZIJP+/lppBtf7XAjdFFdm7Ic MrBuz6a6c1QTZGDTXU2/mU3qdFcaElt4dAYbqFlD0T6TPMuVBNiY31nJyQZB74SkGT+B Zc3qJoYrJu7+J+DJLKIrQEvc8NHEM0qaLEpUoI4IrEwO6p2LrSZjxUEcyFNZ7fzF/sI4 lS55rtdpbEBt1rf05P2DW5/dbbDkylV5UYsNJFyyZcXwF3nxb3lm9QHlKYAmL7v4HEN7 161w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QFACyy0y7HrUHjJ9cPsUOZAld6dTw9TIGvy3FNUUEgI=; b=R1O3wGT+mTBtl7oXUKV/x+epaysqSJCJgF8gJxOZXVFCx1a0HRC12YGCBautBna5gb sy4zWWdM5SrltEP0gKEjyurkQuoLKvagZRAes0kC99NqB5CaVhTAoMMMAIpoKMBBrNuL mur8llsEa621NfbIl+CzgFnwux74lpLMVateNEj6h/OA5p7blNvf8ziGjxkpnq3t9HBT 02wqhyFWxcEQwdPeA4b84v4RtId+UyjmmWSdmxfuWbtgVAFAdVnokaKKTGhvemF1Fy1W 0ltjl+tPOAse+X2zjZFoykwBc+s9+/jRxB3vUvuoB6rG+xA5rgtMQMFumT+NbNQziYYL kWxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="ez+gR39/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si160552edp.360.2021.06.09.09.35.39; Wed, 09 Jun 2021 09:36:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="ez+gR39/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236674AbhFIQBo (ORCPT + 99 others); Wed, 9 Jun 2021 12:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232332AbhFIQBo (ORCPT ); Wed, 9 Jun 2021 12:01:44 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C44FC061574; Wed, 9 Jun 2021 08:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QFACyy0y7HrUHjJ9cPsUOZAld6dTw9TIGvy3FNUUEgI=; b=ez+gR39/yIG6DsvQX0y7KALGqu OMULMPUpfNufKUvUdlEHN9s2LEkIYgMxMfPfQeyQyt1wGMKGeUjcrWNkr7BLGGvaSSV7rC4R0cTtA byA46TmoajpBqD9QCw0smhbVGAyfuECZ9PZXPoFgfdwS4ZDlew+syrpxouv9W9pOhFcEi2ZVOfCpM Zvg1XsScqRW6Vnr1UcQMDERu1VKEejBJYgg0tsaBFC8rNIbU/TJIQvAxrAXuro5+TzC2mFXbiLv0X 89qLCoy/65c33llcaRR67OL30Tz3FXndfAlaBhPMJkPK+YIF5ltu0md10TfhTvsXYyvRXKKutc8Mq +/s34mJA==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lr0bt-000fa4-Ku; Wed, 09 Jun 2021 15:59:26 +0000 Date: Wed, 9 Jun 2021 16:59:17 +0100 From: Christoph Hellwig To: Claudio Imbrenda Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, frankja@linux.ibm.com, borntraeger@de.ibm.com, cohuck@redhat.com, david@redhat.com, linux-mm@kvack.org, Andrew Morton , Nicholas Piggin , Uladzislau Rezki , Catalin Marinas , Thomas Gleixner , Ingo Molnar , David Rientjes Subject: Re: [PATCH v2 1/2] mm/vmalloc: export __vmalloc_node_range Message-ID: References: <20210608180618.477766-1-imbrenda@linux.ibm.com> <20210608180618.477766-2-imbrenda@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210608180618.477766-2-imbrenda@linux.ibm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 08:06:17PM +0200, Claudio Imbrenda wrote: > The recent patches to add support for hugepage vmalloc mappings added a > flag for __vmalloc_node_range to allow to request small pages. > This flag is not accessible when calling vmalloc, the only option is to > call directly __vmalloc_node_range, which is not exported. > > This means that a module can't vmalloc memory with small pages. > > Case in point: KVM on s390x needs to vmalloc a large area, and it needs > to be mapped with small pages, because of a hardware limitation. > > This patch exports __vmalloc_node_range so it can be used in modules > too. No. I spent a lot of effort to mak sure such a low-level API is not exported.