From nobody Mon Jun 8 20:53:43 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 676843655FF; Tue, 26 May 2026 15:32:56 +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=1779809577; cv=none; b=hpPjfUb+NOshVpj9RZXImjKe02zPQ6kakAaIjni0XtWW1QI2qsUzveEvh5jIqgBQK7rsYwQMRfRzLDCXs0NK0OB/K974WQZAuDhH8pWnu/macD/vsEjyHAPlawJBGQMjfJMWYvXORDXadgPyDxdWE741mJRLJag7wYMVslkTlyM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779809577; c=relaxed/simple; bh=/+t6Rdp9zG+Er1EXlMYG+e79sLahAyy8IPZMQQEBqv4=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=WVYBtOu0lax9BpujI5bn4/OA20amuglIMEWm6F+AK02J1D07u1VcSVxSJZVnL7S/Mk/DhjdhKQDd9l64rQ3cpXpbGHzp9mYTZtJ3k8h5+U7EphkB1HlfuOfHI6ghwpIlVgFDNQVdqgJTu4B85CT4A3Y9tFh7GRyGYkTZad2IDn8= 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=UL/oMTl3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=c7nKwk3g; 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="UL/oMTl3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="c7nKwk3g" Date: Tue, 26 May 2026 15:32:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1779809574; 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=6OexOyAXYuLEtqjS1Bs/xa9Ljr7P4Ndzxj8aVfVpCGc=; b=UL/oMTl3bbXZTIyPhzYAxYrwnGAhqM28W7j3iW+ctpfVQUJQQOxzMoKFcZA7HShQF+vDH1 YYQsbuRLTqDkVmFeqwghFGAGO6vGWezrKQ+zYrebMo/rN8lnsaDnszkHhj+a6qKZT8opxS Iv00Vsyhl3n6UG4z4d6wYrujyzKcmmGSGK0arBtiLD84/Wvm0Maf8PTGrOHRLtpLq7m6sF Q/4SDYTvxEAkuGUYVSYiS81vXaEDEHPlmIStCQ1Fom8ostQgm+MNj862SdfhxaxfyLyLiB +zpjNl2WPow9OnZFMEfZp8F/OYziJZp2MM1fBPk5wQ65fHk2+/teM6KEfHYpSg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1779809574; 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=6OexOyAXYuLEtqjS1Bs/xa9Ljr7P4Ndzxj8aVfVpCGc=; b=c7nKwk3gnEbJZgMzHq4M30l/yD5OxSybFSovidW+EsIAks3Gc6TzwKB+E2Tn9qAY/pR5JU dbR7Z2fkiOuGktAg== 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: <177980957278.1039918.15723783769713883948.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: d4516dcf9cd5d41238222a2a1b542a62ef7ed056 Gitweb: https://git.kernel.org/tip/d4516dcf9cd5d41238222a2a1b542a62e= f7ed056 Author: Chao Gao AuthorDate: Wed, 20 May 2026 15:29:13 -07:00 Committer: Dave Hansen CommitterDate: Tue, 26 May 2026 08:29:15 -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);