From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcPhA-00050E-Nu for kexec@lists.infradead.org; Mon, 09 Jul 2018 06:30:50 +0000 Received: by mail-pf0-x243.google.com with SMTP id x13-v6so2981430pfh.5 for ; Sun, 08 Jul 2018 23:30:38 -0700 (PDT) Date: Mon, 9 Jul 2018 15:31:56 +0900 From: AKASHI Takahiro Subject: Re: [PATCH v10 07/14] arm64: enable KEXEC_FILE config Message-ID: <20180709063136.GS28220@linaro.org> References: <20180623022058.10935-1-takahiro.akashi@linaro.org> <20180623022058.10935-8-takahiro.akashi@linaro.org> <9545cb7f-9648-660a-f034-a94f186a8224@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <9545cb7f-9648-660a-f034-a94f186a8224@arm.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: James Morse Cc: herbert@gondor.apana.org.au, bhe@redhat.com, ard.biesheuvel@linaro.org, catalin.marinas@arm.com, bhsharma@redhat.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, dhowells@redhat.com, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, kexec@lists.infradead.org, dyoung@redhat.com, davem@davemloft.net, vgoyal@redhat.com James, On Tue, Jul 03, 2018 at 05:33:20PM +0100, James Morse wrote: > Hi Akashi, > > On 23/06/18 03:20, AKASHI Takahiro wrote: > > Modify arm64/Kconfig to enable kexec_file_load support. > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > index 42c090cf0292..f68318f61c85 100644 > > --- a/arch/arm64/Kconfig > > +++ b/arch/arm64/Kconfig > > @@ -835,6 +835,16 @@ config KEXEC > > but it is independent of the system firmware. And like a reboot > > you can start any kernel with it, not just Linux. > > > > +config KEXEC_FILE > > + bool "kexec file based system call" > > + select KEXEC_CORE > > + select BUILD_BIN2C > > Wasn't BIN2C only needed for purgatory? Right. Will remove it. > x86/powerpc/s390 all select CRYPTO_SHA256 here, presumably for arch-specific > verification mechanisms. I assume we're using SIGNED_PE_FILE_VERIFICATION instead. To be clear, hash check (sha256) will be done at reboot (in purgatory), while binary verification will be done at load. > > > + help > > + This is new version of kexec system call. This system call is > > + file based and takes file descriptors as system call argument > > + for kernel and initramfs as opposed to list of segments as > > + accepted by previous system call. > > + > > config CRASH_DUMP > > bool "Build kdump crash kernel" > > help > > > Acked-by: James Morse Thanks! -Takahiro AKASHI > > Thanks, > > James _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec