[PATCHv2 0/4] x86/tdx: Adjust TD settings on boot

From: Kirill A. Shutemov
Date: Mon Mar 25 2024 - 10:40:11 EST


Adjust TD setting on boot:

- Disable EPT violation #VE on private memory if TD can
control it;

- Enable virtualization of topology-related CPUID leafs
X2APIC_APICID MSR;

v2:
- Rebased;
- Allow write to TDCS_TD_CTLS to fail;
- Adjust commit messages;

Kirill A. Shutemov (4):
x86/tdx: Introduce tdg_vm_wr()
x86/tdx: Rename tdx_parse_tdinfo() to tdx_setup()
x86/tdx: Handle PENDING_EPT_VIOLATION_V2
x86/tdx: Enable ENUM_TOPOLOGY

arch/x86/coco/tdx/tdx.c | 125 ++++++++++++++++++++++++++----
arch/x86/include/asm/shared/tdx.h | 21 ++++-
2 files changed, 131 insertions(+), 15 deletions(-)

--
2.43.0