From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77379C433EF for ; Wed, 8 Dec 2021 17:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mLUbt/to4HoejhxftwMbs0Pld7PgxmYV2C3MBI+D+Ns=; b=KZCmvDAgb/kjjA Hv+5ltWrNFZfOB4538TqdCVFmJotRdG+ur2YT9NNnkdYqzird2TNZtsebjYV3fJQBbEo5sFUcgg1W eDKtI/e7VSMzk8ly4P7lN9kU2RUoIFE9x+eGJorDS1472gMJV75G/mVKlT0CE3WfAsofK1zIiqxs0 fLmLj8X6klG1vSkofXU46gn1xzi5LzJaImTGIeVTcEeBfVQU+ZPxjrtmrWtdgpYvchNthFGtKO8o9 KBec76I1RYZO62OMx7TG7JmN4OvGjVpNRqrdggR78092Zak5Z0VvCJ7YCGLXr5TZW1oRb/EZctgqm RGQrfZfYVUX6VSu+gy+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mv0j8-00DirG-JZ; Wed, 08 Dec 2021 17:27:34 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mv0j4-00DiqN-I0 for linux-arm-kernel@lists.infradead.org; Wed, 08 Dec 2021 17:27:31 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id B2E2ECE227A; Wed, 8 Dec 2021 17:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 040C3C00446; Wed, 8 Dec 2021 17:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638984446; bh=lqbWSxTjq5h0nfPwj+YekiOXt9qpJedy5VZxJJntbss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y0hEJRnnfWShU9xbZCzZR2oAvbYFZ3QgMqGx/hEt9tUWvHY8//Icy5kr3pdvOMXro PuA8ULwyWbjne5qTr0AYnN4gu28TWPRnsea8DjZ4wwOT1JVQwv6tVKNDbO6itzMwjp 2Aok7RStqjFXUtOe4UeC+NAjXs6UWvhmEjNf+ufTkuMiAoct3fY+L0Fow1EABLlh5m kfA5Q0/aEciVFGcRDlAv4PdXi0OrpvRX2bEmKTjk5Ha5stIZdx+LLqsZ84DsxDlFEL +U6piotWHGcMzPK70srpc2BZ+qxXinBduw+DgkMjXWXOMxAU4d+OLYApv5qbUW9C0Q iHQRmVK7CMJoA== Date: Wed, 8 Dec 2021 17:27:21 +0000 From: Will Deacon To: Quentin Perret Cc: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 1/6] KVM: arm64: pkvm: Fix hyp_pool max order Message-ID: <20211208172720.GB820@willie-the-truck> References: <20211208152300.2478542-1-qperret@google.com> <20211208152300.2478542-2-qperret@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211208152300.2478542-2-qperret@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211208_092730_808458_478FAE0C X-CRM114-Status: GOOD ( 13.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Dec 08, 2021 at 03:22:54PM +0000, Quentin Perret wrote: > The EL2 page allocator in protected mode maintains a per-pool max order > value to optimize allocations when the memory region it covers is small. > However, the max order value is currently under-estimated whenever the > number of pages in the region is a power of two. Fix the estimation. > > Signed-off-by: Quentin Perret > --- > arch/arm64/kvm/hyp/nvhe/page_alloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel