linux-coco.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCHv5, REBASED 0/4] x86/tdx: Adjust TD settings on boot
@ 2024-08-09 13:09 Kirill A. Shutemov
  2024-08-09 13:09 ` [PATCHv5, REBASED 1/4] x86/tdx: Introduce wrappers to read and write TD metadata Kirill A. Shutemov
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Kirill A. Shutemov @ 2024-08-09 13:09 UTC (permalink / raw)
  To: Kirill A. Shutemov, Dave Hansen, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, x86, H. Peter Anvin
  Cc: linux-coco, linux-kernel

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-28  0:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 13:09 [PATCHv5, REBASED 0/4] x86/tdx: Adjust TD settings on boot Kirill A. Shutemov
2024-08-09 13:09 ` [PATCHv5, REBASED 1/4] x86/tdx: Introduce wrappers to read and write TD metadata Kirill A. Shutemov
2024-08-09 13:09 ` [PATCHv5, REBASED 2/4] x86/tdx: Rename tdx_parse_tdinfo() to tdx_setup() Kirill A. Shutemov
2024-08-09 13:09 ` [PATCHv5, REBASED 3/4] x86/tdx: Dynamically disable SEPT violations from causing #VEs Kirill A. Shutemov
2024-08-21  1:52   ` Huang, Kai
2024-08-27 10:04     ` Kirill A. Shutemov
2024-08-28  0:44       ` Huang, Kai
2024-08-09 13:09 ` [PATCHv5, REBASED 4/4] x86/tdx: Enable CPU topology enumeration Kirill A. Shutemov
2024-08-21  2:01   ` Huang, Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).