Received: by 10.223.185.116 with SMTP id b49csp3640532wrg; Tue, 6 Mar 2018 02:29:09 -0800 (PST) X-Google-Smtp-Source: AG47ELvPYN1hwARwFWf9l+h7JBc8Q8o1IfO3YUDB9WiGrmWtAjXyf4NljCoP35oh8kHrvAOmCypE X-Received: by 2002:a17:902:529:: with SMTP id 38-v6mr16015869plf.327.1520332149318; Tue, 06 Mar 2018 02:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520332149; cv=none; d=google.com; s=arc-20160816; b=UPid15A+vm/QK/csr9f9CH7h6iHeMAbL/M1LMSkUTiS5VjzFIdunNYqVFGHFb4O/5t TpQNJiUiBCBsjRJi1OG2BSyK1H1PHCSNkWRkwZwFH4s+s5oO0crZyp8Z/PLlWaMHZXws nTmnhkCRve2pPs1kXysWeiZNbg87dPKdkaeHs12a1KlwGBZ3AEs+21TbFsO8+SfpMi5y wa4voFLzl7XJHWWZ2fKK/syDP+OepeEE5octvJkrvg4MGPM2RIUzcLk2ja6lJQn4McWU 8Byq5RKmFLVyHxUgxCMqqwE2Kskn7B5Ya5DTdPPRqrZ1nB292StlDYdnQmT8C122BFVs mX6w== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=uGs+1v5TgwkPSoT56lipKnJNOx9MNeu1R+EHSD+BHyY=; b=CiQIrBAiFet4YCus9qiYme9Sxvo+AEevHj77xYUAtOfNuJgbeSNL4/KycMkHwM7I3P T8pfJNKLaB0KUSGeLdGfEEIMUueUgSUi4ukcYFUbgI0BA315c0liFXxetJzfk0r+bryR 2qBlAOAlmQ4sE+67A5u/qXDMOaoUfdC/Odw7sN61TEHkHYufEQILjt/d0cxs8stx2EDS /lz+UUVUXG41F4Qb/SfcfTcCQwvD0NQU3tJTXAcGtHkImMVSWgbmxzCz1lNqPvUY7Gzo nW7AVPcEzrapyF8stbjkOLKN3ZzuWl6NdfutMt1iGeb8f22FtOzneqkcLYwAIfD6Fb/T HHMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fRH15hxC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6-v6si10711414plt.339.2018.03.06.02.28.55; Tue, 06 Mar 2018 02:29:09 -0800 (PST) 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=@linaro.org header.s=google header.b=fRH15hxC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251AbeCFK2G (ORCPT + 99 others); Tue, 6 Mar 2018 05:28:06 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:34294 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbeCFK2E (ORCPT ); Tue, 6 Mar 2018 05:28:04 -0500 Received: by mail-it0-f68.google.com with SMTP id n128so12242870ith.1 for ; Tue, 06 Mar 2018 02:28:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uGs+1v5TgwkPSoT56lipKnJNOx9MNeu1R+EHSD+BHyY=; b=fRH15hxCUfh0TgLRJvJcQwkojr/8wMHTfeOEu+uNDHsEEc3S8odrvDQVD988vapD1p 4C0js2iJ5LcPulAUC3yDdq7iqGvJGSP7hH8SLh91bRVosMzgdCCjZvtVICvQ50O60hIL Yd/PzP4F9ZXtURs9uFi549WTLGYNBZ4/HTgFM= 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 :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=uGs+1v5TgwkPSoT56lipKnJNOx9MNeu1R+EHSD+BHyY=; b=uXdLlt35KzcOPksze0EPxn71pe1h1jCTTCNhfEXgLkPhaVi9Fr4OUk7f274fPLq4fu iglJe4en1lMqLgCaoE5HFFSb43hJ6bwPydxcWNqXIUlT6m9vX3T6puY0blNgO+76GS/+ fnYjaLkfn6KRvyE1L6zsttmhr+LXgl3QHgsSSgwPMxK7ZM6lGegHFu/MdINs56NXnzdB ftERYCHtJ5pppecY9PgzI6D5K3RjaPJ5bQrSyfhv26dsE5XKYjzY7woqzo4cEuJ4SrOa cFOwlRZcqh4XuuwhGsIp/2CgovXucIpQoMKZGPJJEBL3tQOY/a9zrLCmZ8L/AqyIrkJR 8MIg== X-Gm-Message-State: AElRT7F+FZCrx1b/wd/Cl7TUqWXNtWYkvoh5R2fKU4hpEjcT8khwEuBH d9e0t3FJDKfQ5N78GErwtNz5YQ== X-Received: by 10.36.221.212 with SMTP id t203mr17057563itf.54.1520332084308; Tue, 06 Mar 2018 02:28:04 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id j88sm10033486iod.22.2018.03.06.02.28.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 02:28:03 -0800 (PST) Date: Tue, 6 Mar 2018 19:28:19 +0900 From: AKASHI Takahiro To: Dave Young Cc: vgoyal@redhat.com, bhe@redhat.com, mpe@ellerman.id.au, bauerman@linux.vnet.ibm.com, prudo@linux.vnet.ibm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 0/7] kexec_file: refactoring for other architecutres Message-ID: <20180306102818.GB25863@linaro.org> Mail-Followup-To: AKASHI Takahiro , Dave Young , vgoyal@redhat.com, bhe@redhat.com, mpe@ellerman.id.au, bauerman@linux.vnet.ibm.com, prudo@linux.vnet.ibm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org References: <20180227044814.24808-1-takahiro.akashi@linaro.org> <20180302055609.GA15422@dhcp-128-65.nay.redhat.com> <20180305023607.GA4185@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180305023607.GA4185@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dave, On Mon, Mar 05, 2018 at 10:36:07AM +0800, Dave Young wrote: > On 03/02/18 at 01:56pm, Dave Young wrote: > > Hi AKASHI, > > On 02/27/18 at 01:48pm, AKASHI Takahiro wrote: > > > subject: > > > > > > This is a preparatory patch set for adding kexec_file support on arm64. > > > > > > It was originally included in a arm64 patch set[1], but Philipp is also > > > working on their kexec_file support on s390[2] and some changes are now > > > conflicting. > > > > > > So these common part was extracted and put into a separate patch set for > > > better integration. What's more, my original patch#4 was split into a few > > > small chunks for easier review after Dave's comment. > > > > > > As such, the resulting code is basically identical with my original, and > > > the only difference is that kexec_file_loaders[] is now declared in kexec.h > > > after Phillipp's comment[3]. Other than that, this patch set doesn't > > > require any changes on the rest of my original patch set(#1, #6 to #13). > > > > > > Patch#1 allows making a use of purgatory optional, particularly useful > > > for arm64. > > > Patch#2 commonalizes arch_kexec_kernel_{image_probe, image_load, > > > verify_sig}() and arch_kimage_file_post_load_cleanup() across architectures. > > > Patch#3-#7 is also intended to generalize parse_elf64_headers(), along with > > > exclude_mem_range(), to be made best re-use of. > > > > > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-February/561182.html > > > [2] http://lkml.iu.edu//hypermail/linux/kernel/1802.1/02596.html > > > [3] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-February/562041.html > > > > > > AKASHI Takahiro (7): > > > kexec_file: make an use of purgatory optional > > > kexec_file,x86,powerpc: factor out kexec_file_ops functions > > > x86: kexec_file: purge system-ram walking from prepare_elf64_headers() > > > x86: kexec_file: remove X86_64 dependency from prepare_elf64_headers() > > > x86: kexec_file: lift CRASH_MAX_RANGES limit on crash_mem buffer > > > x86: kexec_file: clean up prepare_elf64_headers() > > > kexec_file, x86: move re-factored code to generic side > > > > > > arch/powerpc/Kconfig | 3 + > > > arch/powerpc/include/asm/kexec.h | 2 +- > > > arch/powerpc/kernel/kexec_elf_64.c | 2 +- > > > arch/powerpc/kernel/machine_kexec_file_64.c | 39 +--- > > > arch/x86/Kconfig | 3 + > > > arch/x86/include/asm/kexec-bzimage64.h | 2 +- > > > arch/x86/kernel/crash.c | 332 +++++----------------------- > > > arch/x86/kernel/kexec-bzimage64.c | 2 +- > > > arch/x86/kernel/machine_kexec_64.c | 45 +--- > > > include/linux/kexec.h | 36 ++- > > > kernel/kexec_file.c | 236 +++++++++++++++++++- > > > 11 files changed, 336 insertions(+), 366 deletions(-) > > > > > > -- > > > 2.16.2 > > > > > > > Reviewed them with eyes and provided some comments, but since it changed > > the elf header code, I would like to do some basic vmcore related test > > with crash tools. Will response later. > > Followup: I did some basic testing, did not find problems. Thank you very much. I have submitted a revised version now. My apologies for your duplicating test efforts. -Takahiro AKASHI > > > > Overall the cleanups looks good, thank you a lot for the cleanups! > > > > Thanks > > Dave > > Thanks > Dave