From patchwork Fri Dec 8 17:17:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 175956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5598101vqy; Fri, 8 Dec 2023 09:17:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+RytNac78XfwIsjo08p0cJrSlUdPnm4icTl2wuOiTlGyfePs1yGC74A5bfktG4vxuFCQx X-Received: by 2002:a05:6a20:1609:b0:18f:97c:8a1e with SMTP id l9-20020a056a20160900b0018f097c8a1emr447331pzj.73.1702055852208; Fri, 08 Dec 2023 09:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702055852; cv=none; d=google.com; s=arc-20160816; b=ADvqaujguTVX/umyAGURbIO7zdQpCwwTk6FVG6cP6NUxzt7VtWrtUvF5yspp//G+Oa MAHDSQJ70G+Liod8sVvdzSfLCofGcYXBxLQ/im5ISjwN6JMli7J5BGl6RfgkiZS1dxUj rjHq6koRtBSjadeAMnNAUz7ynum4DfxIoKr37sIQ3lLtdiv0e+KBUpg3qOFu0oqJZni5 koT0/p0eL18D9rs5G5JJCjhPeIgfehPrVmqIYENDGPjozNZc2yBj7Yv7zuNOkHSMq85Q 0eMvo6fJa3hoedNflhdydYsyEsSfmvoEecPcezIP7oFNvWEMD7jkmpBS5vWU7UdTIWiS o8CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=/Yn6+t3whdJaatWtaZyPqOxlM5qqFAMKPg+fW99uUtk=; fh=NfAJEwnP/0nI0On1N9rw51Gk0eEagE5Eqsruym4Jk+Y=; b=Anf24xQrIkwtLpv58to+NYV+qUMOFC/AP9ZECceh09Gpuqr9gWNQU0kLj87sgj1mUy uHIFHJLxyhZEBOu3kROpfeRN2ggYztnyvBYP5UnX1Rhd8D3s4ZJpkWODQea11sU2YW6L oYvQHdCiiLdmH+bS5qzjQZ1Vd2xQVaylAyQcBo+7gdaf/U/nK+lUdE7iuLxS5ueetD0F kvs8Qpf7oL16/czVBR04S9q5yTUJo/ciLtL50uKjyYuZnAUqpviJgAMauOVaTYzQqlmH 3kvG4ca16duYiE/YVK7HJRTBGvnvHPqKOWQSaJypkHugIJyl669N39giYPfFMj6lUX1x 1DwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Q/63yIW4"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f20-20020a631014000000b005c2185da898si1753889pgl.832.2023.12.08.09.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:17:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Q/63yIW4"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7F54F81C0C82; Fri, 8 Dec 2023 09:17:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233537AbjLHRRO (ORCPT + 99 others); Fri, 8 Dec 2023 12:17:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232481AbjLHRRN (ORCPT ); Fri, 8 Dec 2023 12:17:13 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B14AD; Fri, 8 Dec 2023 09:17:19 -0800 (PST) Date: Fri, 08 Dec 2023 17:17:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702055837; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/Yn6+t3whdJaatWtaZyPqOxlM5qqFAMKPg+fW99uUtk=; b=Q/63yIW4XWtHFFz7HFR5EdHtbeQqJzr3WUeNSWbuP66EjWSDsV7yRIBM6/6xTXt9NgJ2Nc Scgt4sTAHGtW/SG2hms5N2u/gIBdbTtSNyfCrtba/yeqikQRqVKDuf8hKCUUW3Dv3VgYSb 6R03MQsWRtO68jHTelyzjgRO/DwDFa9hAhCl6bFKj0Pky6QOVY1e5j/QrY30lETI7tZivL w93LYPRVlu57uN3GieNdMeefwLiAv6cm31i+vJ/G5AJNG4qOBJXZQfP7MzbZ3GHtWI5oMC UCg6VcYwAL1ajbHo5kMUn8D+3Nha5qNxvzcfYUAauwXcnuIb3XAPZ5VYrlSLoA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702055837; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/Yn6+t3whdJaatWtaZyPqOxlM5qqFAMKPg+fW99uUtk=; b=K4JxApCAWVCs843dX1yawpt/OPiaDt+dQIMCgWXKpweuq8GVwtwoaptbrPnOj8nkf8YfX5 /32lRxyk1ridAjCA== From: "tip-bot2 for Dave Hansen" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/tdx] x86/virt/tdx: Disable TDX host support when kexec is enabled Cc: Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205583649.398.11856254981576868481.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 09:17:24 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784734917563303454 X-GMAIL-MSGID: 1784734917563303454 The following commit has been merged into the x86/tdx branch of tip: Commit-ID: 7ba6ac73f8981bd5ae463108757d0d25388affc4 Gitweb: https://git.kernel.org/tip/7ba6ac73f8981bd5ae463108757d0d25388affc4 Author: Dave Hansen AuthorDate: Fri, 08 Dec 2023 09:07:40 -08:00 Committer: Dave Hansen CommitterDate: Fri, 08 Dec 2023 09:12:56 -08:00 x86/virt/tdx: Disable TDX host support when kexec is enabled TDX host support currently lacks the ability to handle kexec. Disable TDX when kexec is enabled. Signed-off-by: Dave Hansen Link: https://lore.kernel.org/all/20231208170740.53979-20-dave.hansen%40intel.com --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index e255d8a..01cdb16 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1973,6 +1973,7 @@ config INTEL_TDX_HOST depends on X86_X2APIC select ARCH_KEEP_MEMBLOCK depends on CONTIG_ALLOC + depends on !KEXEC_CORE help Intel Trust Domain Extensions (TDX) protects guest VMs from malicious host and certain physical attacks. This option enables necessary TDX