From patchwork Wed Apr 25 06:26:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 10361747 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 860236032C for ; Wed, 25 Apr 2018 06:35:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7680028F37 for ; Wed, 25 Apr 2018 06:35:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B23928F60; Wed, 25 Apr 2018 06:35:44 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 A459428F37 for ; Wed, 25 Apr 2018 06:35:43 +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=enRhSpmoArGS4j3EWBlM3uwkC+iDnmL71xGYwIIJ+Mw=; b=hLuKuKu2gUZwpdo+47uxJmI8Rw N7q0ar5kVMY8oESonyHcslajSRzjfRugTNondGUKaRt+RTssTMVeqUnRRME+b9cWvfPp88ji7Mcjh l7TWcL3pZl7DTn2JXPnI13P81NzAjaHMujzOQgpUsIfIs9OMlvpNVlQcpdK6i0DxfCZ29ECwYa+Os HX2p73FBw2wxHn/ejdv0zjvip/q1f5m9Zzz5TUHHZ/QTMpWoe/fYaZd94ngw+5KybByTEXyMrz7tI 552zKFNnN0K9t6ud6obCIdK5lT2/JexU7W9/2Y1kMT1f6QC92DbiiI3uIafsyMqNmvwP60XmriS5+ cMM0eaAA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBE1e-0003e5-Vz; Wed, 25 Apr 2018 06:35:35 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBDtu-0006U5-Ul for linux-arm-kernel@lists.infradead.org; Wed, 25 Apr 2018 06:27:38 +0000 Received: by mail-pf0-x244.google.com with SMTP id l27so14308439pfk.12 for ; Tue, 24 Apr 2018 23:27:24 -0700 (PDT) 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=GkSdrpqMLsrzG/RGdV+Y7IpVgMY9NzEc/8I04UUjrT0=; b=VOjZm36SRXzXbYO/8KyRlUoZEFFYYCnpYbfOU7Bz6S2w1Ssye66FD7SyMosILFkx60 vqZIcRIY3Ad5zAq9j6DH1QWk0z3jMjvF6MO9MiP9R982kwZ9i40RrGOkv1Y5Q30qBxyV 1swZT65iu9NnA9rJvMaD5YxyaKoUHv1C+25EM= 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=GkSdrpqMLsrzG/RGdV+Y7IpVgMY9NzEc/8I04UUjrT0=; b=M2AR76xEAQKjf2ZjxuSoEQcQQdKrJbp+11XVPIkQIhL45/67nOlwJ+ixyedCRy2P+y FRJJIhl2q/X//8dzutWDLZ/WvslBZmjvk9p2D58FNvrm0ZrC/TYKKbyvYEKTYjOoXVlh gEBGoIpwO1XIGEmogrC6vaJIfrKxcDdNjk1QjwUP/QfUas60KqCzYoBZ2Vn8+rVtbLHC 5cr6Jw8agfcg6ftZJ/FijuAkRIhd5vJyueTwS40Z5WN92j/TiiLPh5fWgXKtm3Pf4Y0x rGIrRAREDBwjewBiqBQE5arF6/Th/CKxATBQJ4T2AKMeZ+jXgRGO5VcfxGH2cMvOdvtE cxxw== X-Gm-Message-State: ALQs6tB/9pNCgszp9F41evTgew/86eL6KvVlIPRQsTwkDPYIUPqG7KT3 fueisis0Dc7k+WEhElEQvElwmw== X-Google-Smtp-Source: AIpwx4+gjcNHcAtf9K4zNDP15bdpIpFrhrYcuaCzpqIWy2mezDsDFqFysISPGniLyPbMdTKzkyRJOg== X-Received: by 2002:a17:902:ea:: with SMTP id a97-v6mr27213387pla.28.1524637643726; Tue, 24 Apr 2018 23:27:23 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id h2sm32673918pfd.119.2018.04.24.23.27.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 23:27:23 -0700 (PDT) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, dhowells@redhat.com, vgoyal@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, dyoung@redhat.com, bhe@redhat.com, arnd@arndb.de Subject: [PATCH v9 08/11] arm64: enable KEXEC_FILE config Date: Wed, 25 Apr 2018 15:26:26 +0900 Message-Id: <20180425062629.29404-9-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425062629.29404-1-takahiro.akashi@linaro.org> References: <20180425062629.29404-1-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180424_232735_056867_32133AFC X-CRM114-Status: GOOD ( 11.08 ) 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: ard.biesheuvel@linaro.org, bhsharma@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro , james.morse@arm.com, 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 to enable kexec_file_load support. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index eb2cf4938f6d..d8f0dcdb8b96 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -847,6 +847,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 + 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