From patchwork Fri Dec 8 19:01:01 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: 176009 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5657235vqy; Fri, 8 Dec 2023 11:01:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwNzFb2hWwM7nrPLwu/MxD2ioVAT969OawYg8FcHOO3xWQvgU6G/Lr7rk1culQ4zfIdjyZ X-Received: by 2002:a17:90b:24f:b0:286:b45c:f972 with SMTP id fz15-20020a17090b024f00b00286b45cf972mr1602537pjb.44.1702062090175; Fri, 08 Dec 2023 11:01:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702062090; cv=none; d=google.com; s=arc-20160816; b=DUuoPBg/V8BesjCy0b/8cWeppFlOhe88wWtousUFyZZvg0jAqvT+QIQHWj/cwy4l8O /jo7PnP03PFpnljFEcO8cwwBdUwQs+NHZWNlO60AN5glNQg7cFBNhelRPBYzITfsoZAP Sqxns3R3DHM7zD5b2Q6dBo9V8S8sjIGqlSacuX7tcO/qDt3L/aNoSREMMaOnN9P3WbXR rW72d1Q1+O2otfIqjjP2E7EI3f6vaf4cnCKT3m93LyOjujDMnaAxBkVwa4yzEUnTSSrT JqSB+NGCSqelrDfN1xtaDj23NXjFYft4YBvmhnKquxJqPZtIH8/uHnvYoKVCFm6s+LGu W/LQ== 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=e0J+xS1mZ0HHT3NUtIj/bIdGlok1FYUU5yuG+3+ws1Y=; fh=NfAJEwnP/0nI0On1N9rw51Gk0eEagE5Eqsruym4Jk+Y=; b=wbdnkxEPbG4vNIctVm+th7QWMzO9m6MpN3rDpRvEpCEhtbcv31ZTgfH9pJauo2sYct xBluYp27qpPzPKaHsKcnMfqLxBsWnNUVvEN5qp/QxdzlCr0K7J1y4ceKbUOop1KAwIhY nsIxZFvGhPGuFzhFzJIG5Y2lsaJiErxAsKVesyc8f6cdQf7KnHxGNXTsEXc4uHNIm3vw EIXFL2ouGruMWP2V2U+5RK/IfxkRzru1NoPZEhQ9FS2rxydU0MqQ3PJaTeV4l6ixiHBt 138W/dJ9lh873KGJPzq0tBHsihRolal/cCnRXPFrdJmjBtjq3t6oxb5EpWw6hkgQD9kg jf/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2FRlEOOu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1tBNGpYZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y8-20020a17090a86c800b0028a4fd5e0aesi303206pjv.63.2023.12.08.11.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 11:01:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2FRlEOOu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1tBNGpYZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id DABD783B2E6A; Fri, 8 Dec 2023 11:01:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233999AbjLHTBB (ORCPT + 99 others); Fri, 8 Dec 2023 14:01:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbjLHTA7 (ORCPT ); Fri, 8 Dec 2023 14:00:59 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4549910E0; Fri, 8 Dec 2023 11:01:05 -0800 (PST) Date: Fri, 08 Dec 2023 19:01:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702062063; 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=e0J+xS1mZ0HHT3NUtIj/bIdGlok1FYUU5yuG+3+ws1Y=; b=2FRlEOOua6dxLXIWPL2BsQyRzNLgEiDIs0o9g6S6VwVZ5SYUrHdnU751aMAwPyjE6jko0N 5TlI8H2LnQK88Fk5K7e5q3dP2i8oWZULat7Tn+zbsCk0ZMcd9xeIzxQux0M5FeP/UYbtRt XfCcSkpHd4YofnKWxcG95UTxv+4AOCu/B/WxKZgH/qpofqDsBoOXrffJvlWGFrp9wVhx99 Sh9Hna7UoYQyGPHPdSqUnB8Adnu2y7YMXalCEth7Z0YEpOeUl6Ygh6+LeCDwFPR6D9Y/e2 u/O0FYTZ4cn0+dW4Crt7rKLL2L2ag59k0k416J+o1y0Z50B2JuxpijJOwLURVA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702062063; 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=e0J+xS1mZ0HHT3NUtIj/bIdGlok1FYUU5yuG+3+ws1Y=; b=1tBNGpYZOfQeB3He5ncNiW468Fdaj/DB1IuvnBex6JRBIaPSoV4u8T0qCWfq5EGLZPrUxr WF2ldbPpFomeAJDg== 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: <170206206183.398.10384727190560172183.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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 11:01:25 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784734917563303454 X-GMAIL-MSGID: 1784741458177391469 The following commit has been merged into the x86/tdx branch of tip: Commit-ID: 1363d55c108dfb6280f55a7f5b149017879fe23b Gitweb: https://git.kernel.org/tip/1363d55c108dfb6280f55a7f5b149017879fe23b Author: Dave Hansen AuthorDate: Fri, 08 Dec 2023 09:07:40 -08:00 Committer: Dave Hansen CommitterDate: Fri, 08 Dec 2023 10:17:32 -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