x86/tdx: Adjust TD settings on boot
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest posting 2/24 patches 0 repliesNew
- v6 posting 1/24 patches 5 repliesSuperseded
- v5 posting 2/24 patches 4 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 posting 1/2 | 4 patches | 9 replies | Superseded | |
| v4 | 4 patches | 5 replies | Superseded | |
| v3 | 4 patches | 0 replies | Superseded | |
| v2 | 4 patches | 12 replies | Superseded | |
| v1 | 4 patches | 5 replies | Superseded |
v5 from the cover letter
- Rebased to current tip tree;
Patches in v6 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | x86/tdx: Introduce wrappers to read and write TD metadataarch/ arch/ | +28 | 0 replies | |
| 2/4 | x86/tdx: Rename tdx_parse_tdinfo() to tdx_setup()arch/ | +8 | 0 replies | |
| 3/4 | x86/tdx: Dynamically disable SEPT violations from causing #VEsarch/ arch/ | +69 | 0 replies | |
| 4/4 | x86/tdx: Enable CPU topology enumerationarch/ arch/ | +29 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Kai Huang | Kuppuswamy Sathyanarayanan |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | R-b |
| 3/4 | A-b | |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHv6, RESEND 0/4] x86/tdx: Adjust TD settings on boot
The patchset adjusts a few TD settings on boot for the optimal functioning of the system:
- Disable EPT violation #VE on private memory if TD can control it
The newer TDX module allows the guest to control whether it wants to see #VE on EPT violation on private memory. The Linux kernel does not want such #VEs and needs to disable them.
- Enable virtualization of topology-related CPUID leafs X2APIC_APICID MSR;
The ENUM_TOPOLOGY feature allows the VMM to provide topology information to the guest. Enabling the feature eliminates topology-related #VEs: the TDX module virtualizes accesses to the CPUID leafs and the MSR.
It allows TDX guest to run with non-trivial topology configuration.
v5:
- Rebased to current tip tree;
v4:
- Drop unnecessary enumeration;
- Drop TDG.SYS.RD wrapper;
- CC stable@ for SEPT disable patch;
- Update commit messages;
v3:
- Update commit messages;
- Rework patches 3/4 and 4/4;
v2:
- Rebased;
- Allow write to TDCS_TD_CTLS to fail;
- Adjust commit messages;
Kirill A. Shutemov (4):
x86/tdx: Introduce wrappers to read and write TD metadata x86/tdx: Rename tdx_parse_tdinfo() to tdx_setup() x86/tdx: Dynamically disable SEPT violations from causing #VEs x86/tdx: Enable CPU topology enumeration
arch/x86/coco/tdx/tdx.c | 140 +++++++++++++++++++++++++----- arch/x86/include/asm/shared/tdx.h | 13 ++- 2 files changed, 130 insertions(+), 23 deletions(-)
Signature · 1 line
2.45.2