Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1897494ybn; Thu, 26 Sep 2019 04:00:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEA8YluFFxHzwpkCc/PONMYZmaM4q47Ec6oE7tf7BWKQNA2VBGg8a955+IicGJe0qA5Vl3 X-Received: by 2002:aa7:c897:: with SMTP id p23mr2842700eds.199.1569495616065; Thu, 26 Sep 2019 04:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569495616; cv=none; d=google.com; s=arc-20160816; b=fMDdOZjfGfmd43vmGZMX8Rs5/Z8nGpCqyG/P4jXlQpkg5hUnPWda+ShAqSHp93V5z8 ZjmIbXn5LYPZP1waOwjRz/BnlyknVUgYGQjhoamMLsZ70kskMaCrREmVtx9lL+IbKJUQ dSbfuo8orI5z3tPZkC9RwqyhPJLyo007G3yndIoLYv1IvvlAAWXgALBa07Kabxk/TKBF CfoBWgYLOEgauhP95Uc3zsv/94ycuWjP7OZXrgxSP0LaxoAY5f2zTdhbuJiJjho/LFwr saTZO233gvbWgM8IvgtGE87wgoz2kWQAx5SZnGxyU3dz4hzCErh+ONgS8mavJ+9matxK HFDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9nVK/nJtOcV+sZhmR12a3Q1eiclcyZVkWGk+yvC3nOQ=; b=XBHIC7DInvQk3lgzSy1qCsZPQSFmdaJc3HEmhIyeytl7i1foCudkP6vE87KChIfvFH b+uvHE9R89g1OgaAifg11pHkU26sLUA02QDXj1yBhyUWtch+t7lEl1r+mi4yCYell9u9 NHVDrsgVH9zchR3JKzhxaRtNkjGU+VIU1R5/J45mACaoyOESEaLfOSd96fP+v80nFWUS SqfRRTTM+3zblYvln8WBC34ICa/GpBGuY5unbwaJrZb6Y64c6LYsr5P4GD6CfElggkTF AGjGqSjb0h2CD6NPngxDLE53JX95oBH5MZaCZShRL0K7J+q7mGu99txVo9woKk4VOiI5 w5Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b="u/3he9Ee"; 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 x22si1165045edi.382.2019.09.26.03.59.52; Thu, 26 Sep 2019 04:00:16 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b="u/3he9Ee"; 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 S1726309AbfIZKXi (ORCPT + 99 others); Thu, 26 Sep 2019 06:23:38 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42345 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbfIZKXi (ORCPT ); Thu, 26 Sep 2019 06:23:38 -0400 Received: by mail-ed1-f68.google.com with SMTP id y91so1457228ede.9 for ; Thu, 26 Sep 2019 03:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9nVK/nJtOcV+sZhmR12a3Q1eiclcyZVkWGk+yvC3nOQ=; b=u/3he9EefTJa3RjrVyPZ2G2QCe6PmWaeWyzhIveVMIZtZtAO5bBrHnDfG2cBvW0ZrX 9ss9GzL1jj9vFbjiYEIsUPhnoKQ7MA/ZqAgsHgwgrl9Ahz1OTd65OJUPGBOb3CdI/tpT DjjtFnGk+MliapAVoTVrwWZZq5kVjrTAf+9IyVPpXuCFhsIK8d9qlWAGRdrOGMI2VBk1 mJh7IzSatm3XKDxGxrpVEf/tj1uJDEvFtO5OndhbLCxcNFfXCRcGWNe48WwZjHgmMi6I tHBFtY8lV+tDJhmCFSwIP15z5L04WersVH4ML/DcTZu7848qnMSxJ54WhBaOTt24Dywv n0HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9nVK/nJtOcV+sZhmR12a3Q1eiclcyZVkWGk+yvC3nOQ=; b=Pmu7t9gOrc4iKyBS6gmZLG4f5jph6gy3e7vjvTjWT81ypTX5NEHBIsbUQYfzd4Yeq0 xzv2+/2HWpMpKKsd925c8U/67KY58JQWonb0jW+EXK7cw95cyOyUD5bsaKCu6day9Z36 U9i8OxckvGPKc/jt/c2Qm/AmJlib2z+z6cd4NTf9xzMmWmkX2lTlSvvM41M9G8HbCP+D vKgOeStPu2TUhXSRpJjbWheltqy6UXF8hCsDWeMr/LzoMKA0ma2JUu7CYw49px14O8Wt KJ9ymkNvC02um9VOMG2GlbrWuaflB7eoLPm9j7WVAzkMAd/MLrXeKgkTFRWBlVpoqfKm Xlaw== X-Gm-Message-State: APjAAAUJ4q9qili4BjMZN25LLbJMIRRcQMLgj90lBc6mpuR/Khp/v46p WMMSIBtpa2OoZ6cuS/zqGOhpyg== X-Received: by 2002:a17:906:6848:: with SMTP id a8mr2413780ejs.104.1569493416937; Thu, 26 Sep 2019 03:23:36 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id e44sm384559ede.34.2019.09.26.03.23.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 03:23:36 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 2CFF31004E0; Thu, 26 Sep 2019 13:23:39 +0300 (+03) Date: Thu, 26 Sep 2019 13:23:39 +0300 From: "Kirill A. Shutemov" To: Steve Wahl Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Juergen Gross , Brijesh Singh , Jordan Borgner , Feng Tang , linux-kernel@vger.kernel.org, Zhenzhong Duan , Dave Hansen , Baoquan He , russ.anderson@hpe.com, dimitri.sivanich@hpe.com, mike.travis@hpe.com Subject: Re: [PATCH v3 2/2] x86/boot/64: round memory hole size up to next PMD page. Message-ID: <20190926102339.owzlugs6sro6rodn@box> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 24, 2019 at 04:04:31PM -0500, Steve Wahl wrote: > The kernel image map is created using PMD pages, which can include > some extra space beyond what's actually needed. Round the size of the > memory hole we search for up to the next PMD boundary, to be certain > all of the space to be mapped is usable RAM and includes no reserved > areas. > > Signed-off-by: Steve Wahl > Cc: stable@vger.kernel.org Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov