From patchwork Tue Dec 6 17:06:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 9462931 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 479ED60231 for ; Tue, 6 Dec 2016 17:09:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31DC32847E for ; Tue, 6 Dec 2016 17:09:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2642F28484; Tue, 6 Dec 2016 17:09:43 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A98642847E for ; Tue, 6 Dec 2016 17:09:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEJDu-00056K-8m; Tue, 06 Dec 2016 17:08:10 +0000 Received: from mail-wj0-f196.google.com ([209.85.210.196]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEJCm-000477-J9 for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 17:07:03 +0000 Received: by mail-wj0-f196.google.com with SMTP id kp2so45047069wjc.0 for ; Tue, 06 Dec 2016 09:06:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YXFsld/BhSSh+AcVYsYfWjP5exabStrQcjX7u3+eVuU=; b=J9hJlTItCTM5YM77nqae5qelYbKwuLulGvM3VYFGv5D6Uot2YgwPwhCPLEPIugY0xp NOj1DRYgbwP/ib2z46TV8tmB43ma68ZFDb7pRzuvrWM2aVbo4jYZe98t1WZ9+QzsRafA GL517kZt+eaZzwIfiXiNy8aAZnpsxQwvJLD70qX479t0D5naBvjxpVDymHnk9QFT6aD3 YE5uCB7IEk6pCurdJjHOIJKnAZfpw3KtBHFWbm6sdKficmRCFkAWgraBQ67s5JpSe+4w gZwc827fiCx4h/VDbweay25L1IZtpARLUoy2sHlSNwl2QZIODoHH4/Ul9I08X6T+Iqio 3csA== X-Gm-Message-State: AKaTC01EK1YZg2cGYGwBKTMFWpbhxtxVlYP7Q5sm7A4Wmjpkng/mJgEG+vpo0Ryff7DawA== X-Received: by 10.194.124.100 with SMTP id mh4mr62958499wjb.154.1481043991162; Tue, 06 Dec 2016 09:06:31 -0800 (PST) Received: from gce.c.kernel-work.internal (115.57.155.104.bc.googleusercontent.com. [104.155.57.115]) by smtp.gmail.com with ESMTPSA id l67sm4942458wmf.20.2016.12.06.09.06.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Dec 2016 09:06:30 -0800 (PST) From: Abel Vesa To: linux@armlinux.org.uk, jpoimboe@redhat.com, jeyu@redhat.com, jikos@kernel.org, mbenes@suse.cz, pmladek@suse.com Subject: [PATCH 7/7] arm: Add livepatch necessary arch selects into Kconfig Date: Tue, 6 Dec 2016 17:06:07 +0000 Message-Id: <1481043967-15602-8-git-send-email-abelvesa@linux.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481043967-15602-1-git-send-email-abelvesa@linux.com> References: <1481043967-15602-1-git-send-email-abelvesa@linux.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_090701_147960_33AC41AA X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, geert+renesas@glider.be, ard.biesheuvel@linaro.org, jean-philippe.brucker@arm.com, gregkh@linuxfoundation.org, stefano.stabellini@eu.citrix.com, emil.l.velikov@gmail.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, jens.wiklander@linaro.org, Abel Vesa , chris.brandt@renesas.com, mingo@redhat.com, viro@zeniv.linux.org.uk, live-patching@vger.kernel.org, akpm@linux-foundation.org, mchehab@kernel.org, davem@davemloft.net, linux@roeck-us.net 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 This adds HAVE_LIVEPATCH, MODULES_USE_ELF_RELA and HAVE_LIVEPATCH to arm Kconfig. Signed-off-by: Abel Vesa --- arch/arm/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 186c4c2..f4e9ace 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -50,6 +50,7 @@ config ARM select HAVE_DMA_API_DEBUG select HAVE_DMA_CONTIGUOUS if MMU select HAVE_DYNAMIC_FTRACE if (!XIP_KERNEL) && !CPU_ENDIAN_BE32 && MMU + select HAVE_DYNAMIC_FTRACE_WITH_REGS select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU select HAVE_EXIT_THREAD select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL) @@ -67,6 +68,7 @@ config ARM select HAVE_KERNEL_XZ select HAVE_KPROBES if !XIP_KERNEL && !CPU_ENDIAN_BE32 && !CPU_V7M select HAVE_KRETPROBES if (HAVE_KPROBES) + select HAVE_LIVEPATCH select HAVE_MEMBLOCK select HAVE_MOD_ARCH_SPECIFIC select HAVE_NMI @@ -82,6 +84,7 @@ config ARM select HAVE_VIRT_CPU_ACCOUNTING_GEN select IRQ_FORCED_THREADING select MODULES_USE_ELF_REL + select MODULES_USE_ELF_RELA select NO_BOOTMEM select OF_EARLY_FLATTREE if OF select OF_RESERVED_MEM if OF @@ -1841,6 +1844,7 @@ config XEN help Say Y if you want to run Linux in a Virtual Machine on Xen on ARM. +source "kernel/livepatch/Kconfig" endmenu menu "Boot options"