mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02: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 <chao.gao@intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/kvm/20260427152854.101171-17-chao.gao@intel.com/ # [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
This commit is contained in:
parent
451735bf90
commit
77525820de
|
|
@ -32,6 +32,9 @@
|
|||
#define TDX_SUCCESS 0ULL
|
||||
#define TDX_RND_NO_ENTROPY 0x8000020300000000ULL
|
||||
|
||||
/* Bit definitions of TDX_FEATURES0 metadata field */
|
||||
#define TDX_FEATURES0_NO_RBP_MOD BIT_ULL(18)
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include <uapi/asm/mce.h>
|
||||
|
|
|
|||
|
|
@ -85,9 +85,6 @@ struct tdmr_info {
|
|||
DECLARE_FLEX_ARRAY(struct tdmr_reserved_area, reserved_areas);
|
||||
} __packed __aligned(TDMR_INFO_ALIGNMENT);
|
||||
|
||||
/* 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!
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user