From nobody Sun May 24 19:34:44 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22B6D86329; Fri, 22 May 2026 17:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779470770; cv=none; b=q5yHoMJk51xhBbAaFbdWdTt/2mt6RpTnSkk85Z1P8x+/HAoQ3KV31FxLkxR5l+tq7i+A0NTyCYjf8pw4ud84pxftpgbkk2LGCejrTt8IJ0F5oibP1IVbz7zBpPRLG3gpFT8pvDpM5edMeIYFXUdBLLNDr1aEDVmoKL89s7YViVA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779470770; c=relaxed/simple; bh=EgYygk0gwwKNafdHszZK2B3kNXU+6ixsFPWGYf4UEP8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=J9HKcVQaPCrqvRXh/UcExvqt80e6Xc4M03IJyhy+8Q6TPzMHTUxmhnQhLNwvGIM+qh5r0NfVHrKGmbFp0P+/64O+T9ykeUkba/jkNPGOUAIREY9h0Anzy1PFkdSxTSpnduIya7ZIw6xaPixaDfluJNRwnELfLc3OlU9YdEY4Lik= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XnNdzeGI; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=PuxdezIX; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XnNdzeGI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PuxdezIX" Date: Fri, 22 May 2026 17:26:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1779470766; 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: in-reply-to:in-reply-to:references:references; bh=mNHT2mNJJYI24PHuMkX6XgKcE7ZQg7HCx68ZZyWAOGw=; b=XnNdzeGIFRSGYCMsWEWp0hDZxhyFKKXD43jmcwsxxCbBIu8boKv+PAM6RFr8nl1bd0+f5N QmglTXf64DH4kzHzviuw/JdnXz0dg0KXaYLwr6hA5+bhEm1gQkOQ/LWrswdyfC8uMQB8Ow 4ie4yy0GbSs/rOM41MdTXOLTPLUWnJNrmaEbqfqn0lJyD9/XUtyNGpUiVkhjAvMlcb1ZCt tyEHDlDrgg7zVJ6gk6/O1C3lHGnyan1AmchfwaMKhX0Nv8rS85ut9w+at8u/FKoEsXvQYG jcGaSb3OFS3gR9Y5RjArGBwmJv7tUneZ7Lx5LusgWMxVub/pK6uDozdI5SxGOw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1779470766; 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: in-reply-to:in-reply-to:references:references; bh=mNHT2mNJJYI24PHuMkX6XgKcE7ZQg7HCx68ZZyWAOGw=; b=PuxdezIXrU4W2raZgz8GUnpHsuNy842VdSD17t6W2EvnE+pesLbaqylcwXQGnUgdZVZb4H FCxE3hlORbjTG+CQ== From: "tip-bot2 for Chao Gao" 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: Enable TDX module runtime updates Cc: Chao Gao , Dave Hansen , Xu Yilun , Tony Lindgren , "Kiryl Shutsemau (Meta)" , Rick Edgecombe , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260520222913.97EF4217@davehans-spike.ostc.intel.com> References: <20260520222913.97EF4217@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177947076521.711.4006085653511885931.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/tdx branch of tip: Commit-ID: b5862fedb97f53deff196fa9657597116e3086da Gitweb: https://git.kernel.org/tip/b5862fedb97f53deff196fa9657597116= e3086da Author: Chao Gao AuthorDate: Wed, 20 May 2026 15:29:13 -07:00 Committer: Dave Hansen CommitterDate: Fri, 22 May 2026 10:20:36 -07:00 x86/virt/tdx: Enable TDX module runtime updates All pieces of TDX module runtime updates are in place. Enable it if it is supported. Signed-off-by: Chao Gao Signed-off-by: Dave Hansen Reviewed-by: Xu Yilun Reviewed-by: Tony Lindgren Reviewed-by: Kiryl Shutsemau (Meta) Reviewed-by: Rick Edgecombe Link: https://patch.msgid.link/20260520133909.409394-24-chao.gao@intel.com Link: https://patch.msgid.link/20260520222913.97EF4217@davehans-spike.ostc.= intel.com --- arch/x86/include/asm/tdx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/tdx.h b/arch/x86/include/asm/tdx.h index 5d750fe..e5a9cf6 100644 --- a/arch/x86/include/asm/tdx.h +++ b/arch/x86/include/asm/tdx.h @@ -33,6 +33,7 @@ #define TDX_RND_NO_ENTROPY 0x8000020300000000ULL =20 /* Bit definitions of TDX_FEATURES0 metadata field */ +#define TDX_FEATURES0_TD_PRESERVING BIT_ULL(1) #define TDX_FEATURES0_NO_RBP_MOD BIT_ULL(18) =20 #ifndef __ASSEMBLER__ @@ -113,8 +114,7 @@ const struct tdx_sys_info *tdx_get_sysinfo(void); =20 static inline bool tdx_supports_runtime_update(const struct tdx_sys_info *= sysinfo) { - /* To be enabled when kernel is ready. */ - return false; + return sysinfo->features.tdx_features0 & TDX_FEATURES0_TD_PRESERVING; } =20 int tdx_guest_keyid_alloc(void);