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 X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E90BC47089 for ; Thu, 27 May 2021 17:37:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4A2A0613BE for ; Thu, 27 May 2021 17:37:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234554AbhE0RjR (ORCPT ); Thu, 27 May 2021 13:39:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:60926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbhE0RjP (ORCPT ); Thu, 27 May 2021 13:39:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9638610A5; Thu, 27 May 2021 17:37:39 +0000 (UTC) Date: Thu, 27 May 2021 18:37:37 +0100 From: Catalin Marinas To: Marc Zyngier Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , Ard Biesheuvel , Mark Rutland , James Morse , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Eric Biederman , Bhupesh SHARMA , AKASHI Takahiro , Dave Young , Moritz Fischer , kernel-team@android.com Subject: Re: [PATCH 4/4] arm64: kexec_image: Implement arch_kexec_locate_mem_hole() Message-ID: <20210527173736.GG8661@arm.com> References: <20210526190531.62751-1-maz@kernel.org> <20210526190531.62751-5-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210526190531.62751-5-maz@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 08:05:31PM +0100, Marc Zyngier wrote: > Provide an arm64-specific implementation for arch_kexec_locate_mem_hole(), > using the resource tree instead of memblock, and respecting > the reservations added by EFI. > > This ensures that kexec_file is finally reliable. > > Reported-by: Moritz Fischer > Signed-off-by: Marc Zyngier It would have been clearer if __walk_iomem_res_desc() was able to do such child res excluding callback (if asked via a new flag/arg) directly but it's too late in the day to figure out if it's possible. It would save us from another callback in the arch code. But if it's not possible or you want to stick to this approach, fine by me: Reviewed-by: Catalin Marinas -- Catalin