Message ID | 20221124091246.4957-2-zelin.deng@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3282104wrr; Thu, 24 Nov 2022 01:19:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5g6QJOH4aQDL0wMHI2fInTqy8W3Eeh8atUU2KvMzbfuIX8BmcQvO0RA6AB6gtD+G/u950H X-Received: by 2002:a05:6402:4507:b0:467:205b:723d with SMTP id ez7-20020a056402450700b00467205b723dmr9361177edb.69.1669281555920; Thu, 24 Nov 2022 01:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669281555; cv=none; d=google.com; s=arc-20160816; b=nuuw17amaPLmgr+/ew2a+pR1ui9hGRjiR/0IbkWplXv+xWBI8BX4+oqIQCRFedAZ3h hG9t2ZEXB5vJrGaKWTJ1URQqND3EGSW6jmEQdKvcgyKkXNmmgdwXmHwyckzRp4IQBloO jux19cS+gRc/MbMk2KFFrH9PMHEs4Rh2XNUj7YyU3b7w4GQhwgl3Ely9M+6utdAqVne6 e92IzOsE5AbB8pJbZoa5ys+W09s3sIIGKgXR2obO3Gm4z6T+l2TzuP3V75ZcPlAG/LTq tDMFs4eMKMoIWDyDvJ1Lu7NsmMiwxvVmRkwW3oEVOs57Ep+JPvWMd4jLlXkPcI63Ju/U KcdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4BpTzz3AtH9NXcfx+6PJqvadOfKbReQbnT0hUtRmvxQ=; b=ngFpeIeowzyTS6XAzESmrQmm1esBbN0cT1RVS4zH/M1m6Wvy9mmWFRfW4Zky2EHQ8j 6WqUsgm637i3pLFixAOK204HI7RFp0m+ticwPljLPvugqJMGTzILvK/a4+u+0P0qcTd5 I1Fqagayg+387avEpVcG0I69PpYBd0Q3VNVVLjwauFItrMMiWXYaRHB/KxUDLm6ZnsyJ 38u2QN6l84JvbVrdOvtYa2XFsfDKD8N80KNrSC9S6cf75G9ME5SwwVMVYqfc2+E5B6Z4 3MdB/YixKW+edqD+R5oz8uiSfqZUxw2P0J2iw6RMN7H3H2v5EsR+hVnODdMtAZZeZ8X3 PxuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he44-20020a1709073dac00b00741688254f4si500691ejc.163.2022.11.24.01.18.52; Thu, 24 Nov 2022 01:19:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbiKXJNR (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Thu, 24 Nov 2022 04:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiKXJNN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 24 Nov 2022 04:13:13 -0500 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65E5B7E95 for <linux-kernel@vger.kernel.org>; Thu, 24 Nov 2022 01:13:09 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=zelin.deng@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VVaTOzC_1669281186; Received: from alinux-host.hz.ali.com(mailfrom:zelin.deng@linux.alibaba.com fp:SMTPD_---0VVaTOzC_1669281186) by smtp.aliyun-inc.com; Thu, 24 Nov 2022 17:13:07 +0800 From: Zelin Deng <zelin.deng@linux.alibaba.com> To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: Tom Lendacky <thomas.lendacky@amd.com>, Thomas Gleixner <tglx@linutronix.de>, Borislav Petkov <bp@alien8.de>, Zelin Deng <zelin.deng@linux.alibaba.com> Subject: [PATCH 1/2] mm/early_ioremap.c: Always build early_memremap_prot() in x86 Date: Thu, 24 Nov 2022 17:12:45 +0800 Message-Id: <20221124091246.4957-2-zelin.deng@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221124091246.4957-1-zelin.deng@linux.alibaba.com> References: <20221124091246.4957-1-zelin.deng@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750368576581188897?= X-GMAIL-MSGID: =?utf-8?q?1750368576581188897?= |
Series |
Map initrd as encrypted when relocating if SME is enabled
|
|
Commit Message
Zelin Deng
Nov. 24, 2022, 9:12 a.m. UTC
In some scenarios, we'd want to specify protection attributes when we
are doing early memory map. As early_memremap_prot() is also defined in
loongarch it's better to select ARCH_USE_MEMREMAP_PROT on X86 config to
avoid redefined error.
Signed-off-by: Zelin Deng <zelin.deng@linux.alibaba.com>
---
arch/x86/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 48d98a5fe06b..133d7d660b2e 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -97,6 +97,7 @@ config X86 select ARCH_HAS_SYNC_CORE_BEFORE_USERMODE select ARCH_HAS_SYSCALL_WRAPPER select ARCH_HAS_UBSAN_SANITIZE_ALL + select ARCH_USE_MEMREMAP_PROT select ARCH_HAS_DEBUG_WX select ARCH_HAS_ZONE_DMA_SET if EXPERT select ARCH_HAVE_NMI_SAFE_CMPXCHG