Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1709554imm; Wed, 23 May 2018 23:01:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoUWQzRtwbPBo3MotGVMQN2mCA0dKgTBddpQBDUyoxceOdlnVeqdPSeSBCHqCcf/0h2lkv1 X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr5908911plk.41.1527141660177; Wed, 23 May 2018 23:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527141660; cv=none; d=google.com; s=arc-20160816; b=H8+AsSjniENL6lAsmM1klzEp/CEdpY9Bb9lhtNXLECegiVv1qo98u3hLcOe0+NyVUd Jwa97CfsBbCQhghy2HwLKG41tDN/y4Myf503yHNmkZFTgiwXBcQg4QprmFbl98VqxcIZ mvo4EXMuY+WJWDg+CsU9bg7EEY5ATyW6iGSUZxjryCgN5XXpoPTbFCHUmEEXM1ra/1Fb wxqLJuN9uJ9kZd/nZKn9iCIotkKM8Ng0zcmP02N+AqDx4rw9wMXax/FK1dWOlxqfHcvu 4gWHdpQPJPznmjuKnD1CkW+4nH7v4Bq1Qu+zV8r7+CX9wegnfrdnHujFzVNur8TpuLHn F27Q== 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:organization:from:references:cc:to:subject :arc-authentication-results; bh=yUo5GrnYz8qTtWUIb9iFRYbl7IIk8zgTwmDUeoJ7KMw=; b=TbLjBDtS8iRMADoG3q35laW0h4w8k/iZE4HUfWHvP/I8+K/j0Kx6YZB3FWGztfJtAv TM6tsCthUeiajBbw/w9if0Y1mA6F1AJnp7sKYzFX4tqEqnMA0S1/ht3PUWeXPZm3bMz0 mQ6TYX10vEY+BHcVecnYC6n2NDusHJaFlCrgBcA0hDiTROZb9mdUz/kX87Pa6VZIjR4g jCN7FXA+ZGKDQa5xKXluvO7Hv4rBKVLxDbU+lbxddYPOrXO+PG1kS2H+In+mfOLIVAFt f/YYKTbOTXx+3cI4WUq8TOB2fOeB1BkZNCwu/WE3zTsV7W9BlftYVEVCk6KgKbRgPS3f Uhpg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v199-v6si737091pgb.87.2018.05.23.23.00.45; Wed, 23 May 2018 23:01:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935588AbeEXF7Y (ORCPT + 99 others); Thu, 24 May 2018 01:59:24 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56996 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935530AbeEXF7T (ORCPT ); Thu, 24 May 2018 01:59:19 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 289F44022407; Thu, 24 May 2018 05:59:19 +0000 (UTC) Received: from [10.36.116.171] (ovpn-116-171.ams2.redhat.com [10.36.116.171]) by smtp.corp.redhat.com (Postfix) with ESMTP id F1FE02026DEF; Thu, 24 May 2018 05:59:15 +0000 (UTC) Subject: Re: [PATCH v1 10/10] mm/memory_hotplug: allow online/offline memory by a kernel module To: Christoph Hellwig Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Andrew Morton , Vlastimil Babka , Michal Hocko , Dan Williams , Pavel Tatashin , Joonsoo Kim , Thomas Gleixner References: <20180523151151.6730-1-david@redhat.com> <20180523151151.6730-11-david@redhat.com> <20180523195119.GA20852@infradead.org> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <73b34d6e-9726-e0a5-0418-65ef13f87198@redhat.com> Date: Thu, 24 May 2018 07:59:15 +0200 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: <20180523195119.GA20852@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 24 May 2018 05:59:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 24 May 2018 05:59:19 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.05.2018 21:51, Christoph Hellwig wrote: > On Wed, May 23, 2018 at 05:11:51PM +0200, David Hildenbrand wrote: >> Kernel modules that want to control how/when memory is onlined/offlined >> need a proper interface to these functions. Also, for adding memory >> properly, memory_block_size_bytes is required. > > Which module? Please send it along with the enabling code. Hi, as indicated in the cover letter, it is called "virtio-mem". I sent it yesterday as a separate series (RFC). Cover letter: https://lkml.org/lkml/2018/5/23/800 Relevant patch: https://lkml.org/lkml/2018/5/23/803 > >> --- a/drivers/base/memory.c >> +++ b/drivers/base/memory.c >> @@ -88,6 +88,7 @@ unsigned long __weak memory_block_size_bytes(void) >> { >> return MIN_MEMORY_BLOCK_SIZE; >> } >> +EXPORT_SYMBOL(memory_block_size_bytes); > >> +EXPORT_SYMBOL(mem_hotplug_begin); > >> +EXPORT_SYMBOL(mem_hotplug_done); > > EXPORT_SYMBOL_GPL for any deep down VM internals, please. > I continued using what was being used for symbols in this file. If there are not other opinions, I'll switch to EXPORT_SYMBOL_GPL. Thanks! -- Thanks, David / dhildenb