From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [RESEND PATCH v3 kernel 3/7] mm: add a function to get the max pfn Date: Mon, 24 Oct 2016 09:53:10 -0700 Message-ID: <580E3C76.3010205@intel.com> References: <1477031080-12616-1-git-send-email-liang.z.li@intel.com> <1477031080-12616-4-git-send-email-liang.z.li@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, quintela@redhat.com, dgilbert@redhat.com, pbonzini@redhat.com, cornelia.huck@de.ibm.com, amit.shah@redhat.com, Andrew Morton , Mel Gorman To: Liang Li , mst@redhat.com Return-path: Received: from mga09.intel.com ([134.134.136.24]:51726 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757733AbcJXQxL (ORCPT ); Mon, 24 Oct 2016 12:53:11 -0400 In-Reply-To: <1477031080-12616-4-git-send-email-liang.z.li@intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/20/2016 11:24 PM, Liang Li wrote: > Expose the function to get the max pfn, so it can be used in the > virtio-balloon device driver. Simply include the 'linux/bootmem.h' > is not enough, if the device driver is built to a module, directly > refer the max_pfn lead to build failed. I'm not sure the rest of the set is worth reviewing. I think a lot of it will change pretty fundamentally once you have those improved data structures in place.