From patchwork Mon Dec 4 02:57:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 10089575 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 194A460327 for ; Mon, 4 Dec 2017 03:11:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B97C212DB for ; Mon, 4 Dec 2017 03:11:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 002FA2855E; Mon, 4 Dec 2017 03:11:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, URIBL_DBL_ABUSE_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 048A2212DB for ; Mon, 4 Dec 2017 03:11:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pe2yvmR0tSRTzMOmrmNCsPj9mZp3zI1BgFX9h4RZQuo=; b=CEUhAAcOeU09MVywZE0Y4kDWL9 bBDdV76l0a/nWrst8akpQrxmPaoH9UUCO8P/AgP8VIfNMrDKUg3/Jqrn9F17LQ4YlDtJsONQB6uFR 7TmihVpguvXkmHqimiSZZ3HJmVCsZKL8Y7H/ew72OBe72MAZC3QTLm3UWC5z9EbKV+OSx+RHWYsIA LLCN3uOxWf60FUxJaHR+if5cGWAKrJGE/m9B5cf6K0ktknIRCl4vbXwjBJbP6/qGKItqiCt7ADQKt D0dvnmlS2hiq7N4K7HUVxkQN3yKJt03HZ3+1LRVOHGZaSmwj5OJf0ZSyVfaaPchOyiyDoi3CfdofX XLs3MGDQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eLhAQ-0003fJ-Di; Mon, 04 Dec 2017 03:11:38 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLhAK-0003RK-BB for linux-arm-kernel@bombadil.infradead.org; Mon, 04 Dec 2017 03:11:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gIes1NT4TbQ+5KEpJOppBlHvlF5rX1DfbzTxeM6IGYw=; b=EdocGz1M9XLYrAozr7qcGi5NP RKcVFuS/xKIFG1g9epEDuZYSSYUAX0Sknc8+g/So9R+AZGHvz5Q+qCP0PZtvOeAdXA+NkdC/c21kD ULRMFlnnUYKcC1YlnHvMM0aYLVTYYBow9YjR2gGOJbdpPMlhYKoqkloTSbaEMPoQYF9DeYOpxorDN xnt0WQMTxgOkTmjMF0oY5xdpYSgj9jXNb/0hfNjA6Ivib5p3+EoVS6ccbVLwD1s0s/PldD26nVLrv IKUfO0rJVtk0R0+lYmlPXMR/Ugf0xRw+NIDYecFNanezH/9WchmjdOgJnfQh+7lKHv/7Ym6L8Obz8 q1SOJ0jpg==; Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLguy-0007Mj-4n for linux-arm-kernel@lists.infradead.org; Mon, 04 Dec 2017 02:55:41 +0000 Received: by mail-pf0-x244.google.com with SMTP id u19so7469368pfa.12 for ; Sun, 03 Dec 2017 18:55:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gIes1NT4TbQ+5KEpJOppBlHvlF5rX1DfbzTxeM6IGYw=; b=AOWV/v/AQkaAGlJRLqOSD9v+95xayE3c2Pej59FJ0KanR0bQJN2VU8ycZDE/o8dhJH 9GKwSmC6zFu8g2EOkyLfq+3WQpyZ6Xss0GPdvaMuzT5eYQPbm6cGuxZLYeGsYwxrlNrJ uQgGU5kF5tU0aHsPJoKP7MMW9ABmC1W6R8vzE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gIes1NT4TbQ+5KEpJOppBlHvlF5rX1DfbzTxeM6IGYw=; b=lD6f6XDtXinVMNXss3xPvzIdYKIxX6IyBdQF+BxYp+fQQ1w7e+vCiXdAc3bh2j7qbz LCyQLXOn5+rnu/RRp2M0zmkvCoI2o9Z6m9IRwwvnWUfAZQcinCAPEXuxOVbTMC5SvwhS toJKlxbyJJIhECY06ifrSFjzSwHr3hMmev/i0k8HuSYhvHdJfSUYhVU8yLli3E5lvlBU kF08aAd4BG1r6p09ci/gvHm4YpU4HplPZ/YKcKr3PphoBSu9pi8+e7YbrQlxGSXtQpp+ cQWQEIDxebaR58W+OwFyot7Gyn/Y7hIOQzIVJGG5IJbXLfQTxl2vM/hcdzIvzL2ntnb4 jnrg== X-Gm-Message-State: AJaThX7hQdlFyt+6tQBe9z4WPjpdT4TQff7zvS/nRAg3b0/VuEcSP+8z 0OwXfqZcRCpHu/U1tqSVfPAxOQ== X-Google-Smtp-Source: AGs4zMY/UYhN/BtNa5stsiEe/AiMu5hLXdo5Qnl3qFO8duCfQKhVtwV7Bf7eo+gKEXWyV2Sf1jU/YQ== X-Received: by 10.159.231.22 with SMTP id w22mr12933077plq.125.1512356117972; Sun, 03 Dec 2017 18:55:17 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id s14sm23382113pfe.36.2017.12.03.18.55.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Dec 2017 18:55:17 -0800 (PST) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, bauerman@linux.vnet.ibm.com, dhowells@redhat.com, vgoyal@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, akpm@linux-foundation.org, mpe@ellerman.id.au, dyoung@redhat.com, bhe@redhat.com, arnd@arndb.de, ard.biesheuvel@linaro.org, julien.thierry@arm.com Subject: [PATCH v7 08/11] arm64: kexec_file: enable KEXEC_FILE config Date: Mon, 4 Dec 2017 11:57:58 +0900 Message-Id: <20171204025801.12161-9-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171204025801.12161-1-takahiro.akashi@linaro.org> References: <20171204025801.12161-1-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171204_025540_353192_ADE39E5A X-CRM114-Status: GOOD ( 12.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: AKASHI Takahiro , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Modify arm64/Kconfig and Makefile to enable kexec_file_load support. File-format specific hook functions to load a kernel image will follow this patch. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a93339f5178f..865d110809f9 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -794,6 +794,19 @@ 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 + ---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. + + In addition to this option, you need to enable a specific type + of image support. + config CRASH_DUMP bool "Build kdump crash kernel" help