]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/tdx: Dump attributes and TD_CTLS on boot
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Mon, 2 Dec 2024 07:24:58 +0000 (09:24 +0200)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 5 Dec 2024 18:27:07 +0000 (10:27 -0800)
commit564ea84c8c14b007d7838bfb1327295b873573be
tree4c1bbe3b649f1eeb7916a490c702a9268e70eed7
parentcd9ce8217345bd13035a0d3edaaecec4244d0ddd
x86/tdx: Dump attributes and TD_CTLS on boot

Dump TD configuration on boot. Attributes and TD_CTLS define TD
behavior. This information is useful for tracking down bugs.

The output ends up looking like this in practice:

[    0.000000] tdx: Guest detected
[    0.000000] tdx: Attributes: SEPT_VE_DISABLE
[    0.000000] tdx: TD_CTLS: PENDING_VE_DISABLE ENUM_TOPOLOGY VIRT_CPUID2 REDUCE_VE

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/all/20241202072458.447455-1-kirill.shutemov%40linux.intel.com
arch/x86/coco/tdx/Makefile
arch/x86/coco/tdx/debug.c [new file with mode: 0644]
arch/x86/coco/tdx/tdx.c
arch/x86/include/asm/shared/tdx.h
arch/x86/include/asm/tdx.h