From nobody Mon Jun 8 07:24:46 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 DB289481248; Fri, 5 Jun 2026 21:25:35 +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=1780694737; cv=none; b=KrWDqp5NDbN5npNA3z5kS73Wi2/vrTztw2asnwvYC7oxU8X0PBDigxkVqEz3ghI6tRxEtQDNty6wbbsV3iiH8z23CZ908VlQgc9z75as8RzHwo22yHD2G74w5qigw4d9JxBjGf5x4ChAb6WD5p5zM4zQM3uUdnCgiNMaPWB+whs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780694737; c=relaxed/simple; bh=3L/IzuIzqLFJLHdRQoVRdR3VUbBdOc8CeSLI5RC9swk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=f+3S/Dm/QsqjQVHwjnKEWxQY2mKcWWbOzzA226EeI+/aa01VVeq3U9A5WN9yzThVWhXSb2OQF+o/vgcV7ea4t7Jho2LgGP0xBqufTdU3XDBgrmFmIAekOwRp3ws8d9+wzQorjfxP5OxWtFZUvHfn/g+0oT8pjNSPJhO+aHoKg+c= 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=yyvnB51y; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=7H9Mm0eo; 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="yyvnB51y"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="7H9Mm0eo" Date: Fri, 05 Jun 2026 21:25:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780694733; 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=rMAm2Kl+0+yLGSfYDX62c82MvD9DI41/IZoYe2Xr2Cs=; b=yyvnB51yVIE2dfzqnBDNt7+Ou04Ln8HxThrhi1q19wT+M7spAjppZZOQ1RUFXvjy7Ci8ew dYhpIuCx5fnT02IZIERWepqq+nRSx07ZCDD5IH9/VfI4rFojUiBUh5lF84p6Nv5+SiUHH9 ctG6dh0Oyh5j9XFzF2uacnRcRyXYfQStYXKnqPwE2S5bv+8sw/OHKKp3sD96643/K8DEsq RhEfNDO2YtGwDk/UOC517y3KqM++CGRYvvF3dWWPsQQq1zAtQOVyH1Sz3PmTEIL+8/2qC3 znLOhFyOvm6zXmHCQtXrDhwXAK5z1/fj95jl2ZautcWRuQfcw5xldM8Gnylfaw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780694733; 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=rMAm2Kl+0+yLGSfYDX62c82MvD9DI41/IZoYe2Xr2Cs=; b=7H9Mm0eo0gf1yev2OneAsnsclWX6Jbd9swgFZd7lfSFnVJHAotREfYSqAdH75JQHbG8dAx uMTKbecTWaL5EnCA== 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: Move TDX_FEATURES0 bits to asm/tdx.h Cc: Chao Gao , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260520133909.409394-5-chao.gao@intel.com> References: <20260520133909.409394-5-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: <178069473244.710.16504903741182416299.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: 77525820de70afd11ad7652bda005ce0ec1343af Gitweb: https://git.kernel.org/tip/77525820de70afd11ad7652bda005ce0e= c1343af Author: Chao Gao AuthorDate: Wed, 20 May 2026 15:28:49 -07:00 Committer: Dave Hansen CommitterDate: Wed, 03 Jun 2026 08:14:51 -07:00 x86/virt/tdx: Move TDX_FEATURES0 bits to asm/tdx.h Future changes will add support for new TDX features exposed as TDX_FEATURES0 bits. The presence of these features will need to be checked outside of arch/x86/virt. The feature query helpers and the TDX_FEATURES0 defines they reference will need to live in the widely accessible asm/tdx.h header. Move the existing TDX_FEATURES0 to asm/tdx.h so that they can all be kept together. Opportunistically switch to BIT_ULL() since TDX_FEATURES0 is 64-bit. No functional change intended. [ dhansen: grammar fixups ] Signed-off-by: Chao Gao Signed-off-by: Dave Hansen Link: https://lore.kernel.org/kvm/20260427152854.101171-17-chao.gao@intel.c= om/ # [1] Link: https://lore.kernel.org/kvm/20251121005125.417831-16-rick.p.edgecombe= @intel.com/ # [2] Link: https://patch.msgid.link/20260520133909.409394-5-chao.gao@intel.com --- arch/x86/include/asm/tdx.h | 3 +++ arch/x86/virt/vmx/tdx/tdx.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/tdx.h b/arch/x86/include/asm/tdx.h index 15eac89..e2430dd 100644 --- a/arch/x86/include/asm/tdx.h +++ b/arch/x86/include/asm/tdx.h @@ -32,6 +32,9 @@ #define TDX_SUCCESS 0ULL #define TDX_RND_NO_ENTROPY 0x8000020300000000ULL =20 +/* Bit definitions of TDX_FEATURES0 metadata field */ +#define TDX_FEATURES0_NO_RBP_MOD BIT_ULL(18) + #ifndef __ASSEMBLER__ =20 #include diff --git a/arch/x86/virt/vmx/tdx/tdx.h b/arch/x86/virt/vmx/tdx/tdx.h index e2cf2dd..76c5fb1 100644 --- a/arch/x86/virt/vmx/tdx/tdx.h +++ b/arch/x86/virt/vmx/tdx/tdx.h @@ -85,9 +85,6 @@ struct tdmr_info { DECLARE_FLEX_ARRAY(struct tdmr_reserved_area, reserved_areas); } __packed __aligned(TDMR_INFO_ALIGNMENT); =20 -/* Bit definitions of TDX_FEATURES0 metadata field */ -#define TDX_FEATURES0_NO_RBP_MOD BIT(18) - /* * Do not put any hardware-defined TDX structure representations below * this comment!