From nobody Mon Jun 8 06:36:57 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 BC4D43D3309; Fri, 5 Jun 2026 21:25: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=1780694709; cv=none; b=Z+tqRSD6uPjMTVlsEzbljfsmxnhls8oVQQ5bNGsN6DEyh8/x/z3gmbuoilBxK/INhEH6GQhhh12AwKysebj6YmoYZRD8n4/D5pCof6pGvlyZvsojIfoiAgpm99Y3XyUtcF035qUjohi9qn8VXi0W6SvvDKAtKYRcc01WqPa3otM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780694709; c=relaxed/simple; bh=NnZPg9RN4GyLDmDZfOzAoYZgGOsydDxGFThLq3w1ZXc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=SZK53IM/F5Mn4NnF1Ftwhvgd6qVfaeOhVlatilJHhwgwwB4RMpzanBjwJF5oB21JcU7XWDr4BUJo7B/9A0uSYitycbHbIT8WF0Xsc9sESI3N8RDH+laAQYPQ6VqG7iOJsb+KTOp65Mp1XPDComhrgVQm0i1u2FoOShQ+d9iZlAA= 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=qc3wPP2x; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=33hCT0BB; 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="qc3wPP2x"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="33hCT0BB" Date: Fri, 05 Jun 2026 21:25:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780694707; 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=pbYxKhBKMhhmcSp4jlF/AtwDp5Og+VkRNzbUt+8aXa0=; b=qc3wPP2xnuKvMFtnbNa/F+iHvwFqG37m2w9UKMtmD/GGPiwZDt0HQSbvN4wkGsBodQ0QiT 3JHP5gAAgUDeqJW0aNmNmDDX+tA7DLn9tBXGBFhy6gZx4CXq6y41DPOUghsXlf38aGW8Rb kLndbIpbN+pS8mWQG9vFkkXHlSwPThUKWt79DkDxGb2gMF2rc+N/wTfZSZRT2gCnoKfXKu 1hYxvKDoTbBryWYqHO7jfZ4dii+yCE5YJlJCO+NPgqBJR4/k9TEPtGoymEWA5AijY2XS6e QBPl2gnMTPDDlWS3GRgOe0F0QxV9kLtYa+i8M+85x8TkRKQN7RWNQRuy/ntX3w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780694707; 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=pbYxKhBKMhhmcSp4jlF/AtwDp5Og+VkRNzbUt+8aXa0=; b=33hCT0BB8MUEDuZcNIHLwkZngVQhfzhzWqKrOXssSPWN6i+5gYcmVKaB0Jzhar9uz9c/jW fhCO83eop8z2CfDQ== 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: <20260520133909.409394-24-chao.gao@intel.com> References: <20260520133909.409394-24-chao.gao@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178069470587.710.8821896789202591627.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: 1e35f5945db9630c0602d9a9a7bbd146a96d13cc Gitweb: https://git.kernel.org/tip/1e35f5945db9630c0602d9a9a7bbd146a= 96d13cc Author: Chao Gao AuthorDate: Wed, 20 May 2026 15:29:13 -07:00 Committer: Dave Hansen CommitterDate: Wed, 03 Jun 2026 08:59:44 -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 --- 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);