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: 120484 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3920613qgn; Sun, 3 Dec 2017 18:56:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMYMbb4x+5IAF+L1h06Asqwq9WUIYn81mApncMYabuAO1i/QyrxKiwZyQsu4wIsX3wF7RdCQ X-Received: by 10.99.56.26 with SMTP id f26mr12616942pga.328.1512356203405; Sun, 03 Dec 2017 18:56:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512356203; cv=none; d=google.com; s=arc-20160816; b=CMHGX5uCPotT7pY/ySATi8+rnhzWFIgahdUxWGjdT+Jo0ZUAGNKtnkZ80c0pBpVlPd WsgFv/M4udpeBPeXc0BkWarO4gbpkN84SDGAfRMq28smrxlMYj3rxP6ruGr6xotWm3l/ likCoz/Jnq9+yR3VaekPFsOptuNwFkcCwEd4FQ5kPO7W7Fyfgu3YfpY0gIjwIRIPc5cI JC3LFeJhrYfbD5QHRofR3dDM/QUp4EjnW4J8gNZOru8G+fAd6vIOpiAWtsoursOCaQq2 DPe5Jew3DYKSz6WghZ6DbmENs3iePwXXcCyH0b2bw6Ul3JojPRaj5rxQcMKQMGuymNic jonA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=gIes1NT4TbQ+5KEpJOppBlHvlF5rX1DfbzTxeM6IGYw=; b=x4z1QgsOtu0Hn0QaW4FSRxVvBrC2imTWPHdUfwRZURbjQSQJiBC83qP7LKDoTu/oUp gaDkQz+t0f0MmsMdbOl+EltxYnAhr9Oi2h0olr9ZT3f8kEpzy/AtrAKqpHqpUR9/CcCM 5Vo2fwRf21uARFc4PE+Q/6i+8tdOIlmA8XP4WUbTZDT5OKboDNM35CnZgilXzWxUZ2k0 uyTw9WrsHHFM+Tbw/Dv/UhxWa+i74nCQ3I4MnUfE8w1TlgklXroFLbLZ0SjZGzMfZ6fe fFDl7WRxG/4W3d0/YOS1Jn7YO+hQHlc9acMej5IC8bi1t8fBHrTTiCc7tOszFZWjqbNZ GDeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AOWV/v/A; 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 y22si1141222pll.476.2017.12.03.18.56.42; Sun, 03 Dec 2017 18:56:43 -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=AOWV/v/A; 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 S1753324AbdLDC4l (ORCPT + 28 others); Sun, 3 Dec 2017 21:56:41 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:42721 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753210AbdLDCzS (ORCPT ); Sun, 3 Dec 2017 21:55:18 -0500 Received: by mail-pf0-f193.google.com with SMTP id d23so7463383pfe.9 for ; Sun, 03 Dec 2017 18:55:18 -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=nzVhMh1ro4pZ8QBTEqDLDyKcoy/tp2d+UmYYXMIZvhCxbeMIgWiv4JxBZotWp5nvkC VuETd65zdqfCjScBwtffC81ZWZttnU/SAugTwIKMzSPOl6P+SeL0j6FzFOzGc+M77tyB dSem2qiq3x9agmJhrJH4JBBHVUaL1pBpNs1rb3Ppx2AaxI3KgrMd9WdgQpcf2r69JzYN 4RkbeKBC/VaUiKnTGt0fk6XX37ytkLuDAPuNjVtnHQgB0RNPm945NRiA46PhO6DbS+RW dQlpnZVqCqmwSVZyAKB+Vcc/fTdRkNRBVT/xJNCftgmn6/Ox4EMF7yYXp0FCqTCHYU3/ Kb4A== X-Gm-Message-State: AJaThX5p3YXz3oafDFFVgFajr7WSnaTJWmsbKOlwDMAD/zMppV7C06hS 7VfrlANFoJqRRrTT2cGuRFFrcg== 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 Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.14.1 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